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"
}
},
"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": {
"locked": {
"lastModified": 1725001927,
@ -31,6 +51,7 @@
"root": {
"inputs": {
"flake-schemas": "flake-schemas",
"nix-deno": "nix-deno",
"nixpkgs": "nixpkgs",
"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)
{
# A helpful description of your flake
description = "A Gitea command line application";
description = "My personal website v2";
# Flake inputs
inputs = {
@ -13,6 +13,11 @@
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-deno = {
url = "github:nekowinston/nix-deno";
inputs.nixpkgs.follows = "nixpkgs";
};
};
# Flake outputs that other flakes can use
@ -21,9 +26,11 @@
flake-schemas,
nixpkgs,
rust-overlay,
nix-deno,
}: let
# Nixpkgs overlays
overlays = [
nix-deno.overlays.default
rust-overlay.overlays.default
(final: prev: {
rustToolchain = final.rust-bin.stable.latest.default.override {extensions = ["rust-src"];};
@ -54,6 +61,7 @@
wget
nixpkgs-fmt
openssl
patchelf
deno
sqlx-cli
];
@ -62,6 +70,7 @@
env = {
RUST_BACKTRACE = "1";
RUST_SRC_PATH = "${pkgs.rustToolchain}/lib/rustlib/src/rust/library";
# PATH = "$PATH:$HOME/.local/share/nvim/mason/bin/deno";
};
};
});