add a wrapper for nix-gc
This commit is contained in:
parent
d0b8013497
commit
a2a94368c6
|
@ -19,6 +19,7 @@ stdenv.mkDerivation rec {
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp $src/rebuild $out/bin
|
cp $src/rebuild $out/bin
|
||||||
cp $src/git-rebuild $out/bin
|
cp $src/git-rebuild $out/bin
|
||||||
|
cp $src/nix-sanitation $out/bin
|
||||||
wrapProgram $out/bin/rebuild --prefix PATH : ${lib.makeBinPath [ bash ]}
|
wrapProgram $out/bin/rebuild --prefix PATH : ${lib.makeBinPath [ bash ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
printf "clearing out nix caches\n"
|
||||||
|
|
||||||
|
sudo nix-collect-garbage -d
|
||||||
|
nix-collect-garbage -d
|
||||||
|
sudo nix-store --optimize
|
Loading…
Reference in New Issue