From 483a3d6d6515be0217c0f7eae42430f0036e4774 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Fri, 17 Feb 2023 09:02:16 -0800 Subject: [PATCH] flake: Added basicShell template --- templates/basicShell/flake.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 templates/basicShell/flake.nix 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); + }); +} + +