Adding in clean script
parent
683ad67214
commit
a6aab6fa2d
15
flake.nix
15
flake.nix
|
@ -55,6 +55,18 @@
|
||||||
Chart-cairo
|
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
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
buildInputs = with pkgs.haskellPackages; [
|
buildInputs = with pkgs.haskellPackages; [
|
||||||
|
@ -63,6 +75,9 @@
|
||||||
haskell-language-server
|
haskell-language-server
|
||||||
ghcid
|
ghcid
|
||||||
hlint
|
hlint
|
||||||
|
|
||||||
|
# Scripts
|
||||||
|
clean
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
|
Loading…
Reference in New Issue