Add helper scripts via Nix
This commit is contained in:
parent
35ae8135a0
commit
127ed335af
17 changed files with 164 additions and 96 deletions
|
@ -1 +1,2 @@
|
|||
use flake .
|
||||
use flake .
|
||||
|
|
6
nix/flake.lock
generated
6
nix/flake.lock
generated
|
@ -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": {
|
||||
|
|
|
@ -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; };
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue