Add nixredo-gc
parent
bc0989e0b7
commit
8f4aa0fcb3
|
@ -7,7 +7,7 @@ stdenv.mkDerivation {
|
||||||
buildernix = ./builder.nix;
|
buildernix = ./builder.nix;
|
||||||
libnix = ./lib.nix;
|
libnix = ./lib.nix;
|
||||||
|
|
||||||
files = [ ./nixredo ./nixredo-deps ./nixredo-whichdo ];
|
files = [ ./nixredo ./nixredo-deps ./nixredo-whichdo ./nixredo-gc ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
[ "${NIXREDO_ROOT+x}" = x ] || { printf "$0 only runs for private a nix store. Set NIXREDO_ROOT to a non-empty value\n"; exit 127; }
|
||||||
|
nix-store --store "${NIXREDO_ROOT}" --gc
|
Loading…
Reference in New Issue