Add helper scripts via Nix

This commit is contained in:
Luc Perkins 2022-07-29 00:42:22 +02:00
parent 35ae8135a0
commit 127ed335af
No known key found for this signature in database
GPG key ID: 4F102D0C16E232F2
17 changed files with 164 additions and 96 deletions

View file

@ -1 +1,2 @@
use flake .
use flake .

6
nix/flake.lock generated
View file

@ -17,11 +17,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1659047146,
"narHash": "sha256-2qZemVRDR5oCw0Hd32LQSWC7FaEy5sUp5ih9OxqE3yU=",
"lastModified": 1659047633,
"narHash": "sha256-zeI+NkJOa665fRrKGpjscfy3Hs4K316q1q7394xbRbw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "68716026a095a765c09ec29f06ba234a0298418c",
"rev": "496caa738a16d2bb3607243d9127df718bb50513",
"type": "github"
},
"original": {

View file

@ -14,18 +14,20 @@
nix = pkgs.nixUnstable;
dhallNix = pkgs.haskellPackages.dhall-nix;
helpers = with pkgs; [ cachix dhallNix lorri niv nixfmt nixpkgs-fmt statix ];
nixRelatedTools = with pkgs; [
cachix
dhallNix
lorri
niv
nixfmt
nixpkgs-fmt
statix
];
inherit (pkgs) mkShell;
in {
devShells = {
default = pkgs.mkShell {
buildInputs = [ nix ] ++ helpers;
shellHook = ''
${nix}/bin/nix --version
'';
};
default = pkgs.mkShell { buildInputs = [ nix ] ++ nixRelatedTools; };
};
});
}