diff --git a/templates/basicShell/flake.nix b/templates/basicShell/flake.nix new file mode 100644 index 0000000..19f1672 --- /dev/null +++ b/templates/basicShell/flake.nix @@ -0,0 +1,25 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; + lib = pkgs.lib; + + shellWithPkgs = buildInputs: pkgs.mkShell { + inherit buildInputs; + }; + in + { + devShells.default = shellWithPkgs (lib.singleton pkgs.codeql); + }); +} + +