From 6ef672d390d342b5a3db2591a648ff7c76c295a2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 30 Jul 2012 22:53:19 +0000 Subject: [PATCH] * Generate nix-cache-info. git-svn-id: https://nixos.org/repos/nix/release/trunk/channels@34595 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb --- convert-to-binary-channel.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/convert-to-binary-channel.pl b/convert-to-binary-channel.pl index e066ad3..e4ae4eb 100755 --- a/convert-to-binary-channel.pl +++ b/convert-to-binary-channel.pl @@ -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");