nix-book/source/shell-recipes/shell-with-flake/shell.nix
2023-06-13 20:33:24 +01:00

11 lines
387 B
Nix

with (import <nixpkgs> {});
let
hello = (builtins.getFlake git+https://codeberg.org/mhwombat/hello-flake).packages.${builtins.currentSystem}.default;
# For older flakes, you might need an expression like this...
# hello = (builtins.getFlake git+https://codeberg.org/mhwombat/hello-flake).defaultPackage.${builtins.currentSystem};
in
mkShell {
buildInputs = [
hello
];
}