1
0
Fork 0

Add nixredo-gc

master
Michael Raitza 2021-02-17 10:44:08 +01:00
parent bc0989e0b7
commit 8f4aa0fcb3
2 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,7 @@ stdenv.mkDerivation {
buildernix = ./builder.nix;
libnix = ./lib.nix;
files = [ ./nixredo ./nixredo-deps ./nixredo-whichdo ];
files = [ ./nixredo ./nixredo-deps ./nixredo-whichdo ./nixredo-gc ];
installPhase = ''
mkdir -p $out/bin

3
nixredo-gc Normal file
View File

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