added deno overlay, modified flake name

This commit is contained in:
Wyatt J. Miller 2024-09-29 21:16:20 -04:00
parent 646121d1cb
commit 59d8273498
2 changed files with 31 additions and 1 deletions

View File

@ -14,6 +14,26 @@
"url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%2A.tar.gz" "url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%2A.tar.gz"
} }
}, },
"nix-deno": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1713992202,
"narHash": "sha256-+sxjCORBeqOX4lgVGeoCiMRidLh8qpi21+NiOfiPr4k=",
"owner": "nekowinston",
"repo": "nix-deno",
"rev": "bb43316eb233e0cea0719a68b92cc797e4829169",
"type": "github"
},
"original": {
"owner": "nekowinston",
"repo": "nix-deno",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1725001927, "lastModified": 1725001927,
@ -31,6 +51,7 @@
"root": { "root": {
"inputs": { "inputs": {
"flake-schemas": "flake-schemas", "flake-schemas": "flake-schemas",
"nix-deno": "nix-deno",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
} }

View File

@ -1,7 +1,7 @@
# This flake was initially generated by fh, the CLI for FlakeHub (version 0.1.10) # This flake was initially generated by fh, the CLI for FlakeHub (version 0.1.10)
{ {
# A helpful description of your flake # A helpful description of your flake
description = "A Gitea command line application"; description = "My personal website v2";
# Flake inputs # Flake inputs
inputs = { inputs = {
@ -13,6 +13,11 @@
url = "github:oxalica/rust-overlay"; url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-deno = {
url = "github:nekowinston/nix-deno";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
# Flake outputs that other flakes can use # Flake outputs that other flakes can use
@ -21,9 +26,11 @@
flake-schemas, flake-schemas,
nixpkgs, nixpkgs,
rust-overlay, rust-overlay,
nix-deno,
}: let }: let
# Nixpkgs overlays # Nixpkgs overlays
overlays = [ overlays = [
nix-deno.overlays.default
rust-overlay.overlays.default rust-overlay.overlays.default
(final: prev: { (final: prev: {
rustToolchain = final.rust-bin.stable.latest.default.override {extensions = ["rust-src"];}; rustToolchain = final.rust-bin.stable.latest.default.override {extensions = ["rust-src"];};
@ -54,6 +61,7 @@
wget wget
nixpkgs-fmt nixpkgs-fmt
openssl openssl
patchelf
deno deno
sqlx-cli sqlx-cli
]; ];
@ -62,6 +70,7 @@
env = { env = {
RUST_BACKTRACE = "1"; RUST_BACKTRACE = "1";
RUST_SRC_PATH = "${pkgs.rustToolchain}/lib/rustlib/src/rust/library"; RUST_SRC_PATH = "${pkgs.rustToolchain}/lib/rustlib/src/rust/library";
# PATH = "$PATH:$HOME/.local/share/nvim/mason/bin/deno";
}; };
}; };
}); });