mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-01-08 06:47:22 +08:00
initial commit
This commit is contained in:
parent
123e584cb5
commit
30cfc01fcb
1 changed files with 27 additions and 0 deletions
27
source/recipes/devshell/non-flake/flake.nix
Normal file
27
source/recipes/devshell/non-flake/flake.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
hello-nix = {
|
||||
url = "git+https://codeberg.org/mhwombat/hello-nix";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, hello-nix }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
devShells = rec {
|
||||
default = pkgs.mkShell {
|
||||
shellHook =
|
||||
''
|
||||
PATH=${hello-nix}:$PATH
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue