From 9827b88f34e1152481c335c7370b184c3e900cd9 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Sat, 18 Feb 2023 20:30:40 +0100 Subject: [PATCH] templates: basicShell inherits packages and not buildInputs. Default package is hello --- templates/basicShell/flake.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/basicShell/flake.nix b/templates/basicShell/flake.nix index 19f1672..0ca43fb 100644 --- a/templates/basicShell/flake.nix +++ b/templates/basicShell/flake.nix @@ -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 ]; }); }