Adding in clean script
parent
683ad67214
commit
a6aab6fa2d
15
flake.nix
15
flake.nix
|
@ -55,6 +55,18 @@
|
|||
Chart-cairo
|
||||
]
|
||||
);
|
||||
|
||||
clean = pkgs.writeShellScriptBin "clean" ''
|
||||
# Delete executables
|
||||
find . -type f -executable -not -path '*/.git/*' -delete
|
||||
|
||||
# Delete all Haskell IR files
|
||||
find . -type f -name '*.hi' -delete
|
||||
find . -type f -name '*.o' -delete
|
||||
|
||||
# Delete any test graphs created
|
||||
find . -type f -name 'test.png' -delete
|
||||
'';
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs.haskellPackages; [
|
||||
|
@ -63,6 +75,9 @@
|
|||
haskell-language-server
|
||||
ghcid
|
||||
hlint
|
||||
|
||||
# Scripts
|
||||
clean
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
|
|
Loading…
Reference in New Issue