templates: basicShell inherits packages and not buildInputs. Default package is hello

This commit is contained in:
Giulio De Pasquale 2023-02-18 20:30:40 +01:00
parent aa6dd43783
commit 9827b88f34

View File

@ -11,14 +11,13 @@
inherit system;
config.allowUnfree = true;
};
lib = pkgs.lib;
shellWithPkgs = buildInputs: pkgs.mkShell {
inherit buildInputs;
shellWithPkgs = packages: pkgs.mkShell {
inherit packages;
};
in
{
devShells.default = shellWithPkgs (lib.singleton pkgs.codeql);
devShells.default = shellWithPkgs [ pkgs.hello ];
});
}