nix-book/source/shell-recipes/0200-shell-with-flake.nix
Amy de Buitléir 78fd4cc737 initial commit
2023-06-11 20:42:36 +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
];
}