forked from the-distro/channel-scripts
* Generate nix-cache-info.
git-svn-id: https://nixos.org/repos/nix/release/trunk/channels@34595 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
This commit is contained in:
parent
616b63a54d
commit
6ef672d390
1 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,13 @@ use File::Basename;
|
|||
|
||||
my $cacheDir = "/data/releases/binary-cache";
|
||||
|
||||
if (! -e "$cacheDir/nix-cache-info") {
|
||||
open FILE, ">$cacheDir/nix-cache-info" or die;
|
||||
print FILE "StoreDir: /nix/store\n";
|
||||
print FILE "WantMassQuery: 1\n";
|
||||
close FILE;
|
||||
}
|
||||
|
||||
my @manifests = split " ", `find /data/releases/{nixos,nixpkgs,nix,patchelf} -name MANIFEST | grep -v '.tmp' | sort`;
|
||||
die if $? != 0;
|
||||
#my @manifests = ("/data/releases/nixpkgs/nixpkgs-0.5/MANIFEST");
|
||||
|
|
Loading…
Reference in a new issue