nix-book/source/recipes/devshell/non-flake/flake.nix
Amy de Buitléir 30cfc01fcb initial commit
2025-09-05 20:38:39 +01:00

27 lines
601 B
Nix

{
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
'';
};
};
}
);
}