1
0

Adding in clean script

This commit is contained in:
2023-09-18 19:40:42 -04:00
parent 683ad67214
commit a6aab6fa2d

View File

@@ -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 = ''