added deno overlay, modified flake name
This commit is contained in:
11
flake.nix
11
flake.nix
@ -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";
|
||||
};
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user