about summary refs log tree commit diff
path: root/scripts/copy-from-other-stores.pl.in
AgeCommit message (Collapse)AuthorFilesLines
2012-10-02 Add operation ‘nix-store --repair-path’Eelco Dolstra1-2/+3
This operation allows fixing corrupted or accidentally deleted store paths by redownloading them using substituters, if available. Since the corrupted path cannot be replaced atomically, there is a very small time window (one system call) during which neither the old (corrupted) nor the new (repaired) contents are available. So repairing should be used with some care on critical packages like Glibc.
2012-07-27 Let build.cc verify the expected hash of a substituter's outputEelco Dolstra1-2/+3
Since SubstitutionGoal::finished() in build.cc computes the hash anyway, we can prevent the inefficiency of computing the hash twice by letting the substituter tell Nix about the expected hash, which can then verify it.
2012-07-11 Update the other substitutersEelco Dolstra1-29/+32
2012-01-05 * Add a -I flag to the Perl bindings to nix-build and some otherEelco Dolstra1-1/+1
scripts. * Include the version and architecture in the -I flag so that there is at least a chance that a Nix binary built for one Perl version will run on another version.
2011-10-10 * Set the executable bit on scripts.Eelco Dolstra1-0/+0
2010-11-17 * Before a build, show the disk space that the downloaded store pathsEelco Dolstra1-1/+6
will approximately require.
2010-04-26 * Fix the copy-from-other-stores substituter.Eelco Dolstra1-34/+24
2008-11-20 * Urgh.Eelco Dolstra1-1/+4
2008-08-04 * Doh.Eelco Dolstra1-0/+1
2008-08-02 * Make nix-env --dry-run print the paths to be substituted correctlyEelco Dolstra1-32/+39
again. (After the previous substituter mechanism refactoring I didn't update the code that obtains the references of substitutable paths.) This required some refactoring: the substituter programs are now kept running and receive/respond to info requests via stdin/stdout.
2008-07-18 * Use the copy-from-other-stores substituter by default. Of course,Eelco Dolstra1-8/+13
it only does something if $NIX_OTHER_STORES (not really a good name...) is set. * Do globbing on the elements of $NIX_OTHER_STORES. E.g. you could set it to /mnts/*/nix or something. * Install substituters in libexec/nix/substituters.
2008-07-12 * Quick prototype of a substituter that copies paths from other NixEelco Dolstra1-0/+82
stores (typically remote Nix stores mounted via e.g. NFS, or the Nix store on the NixOS installation CD). Example use: $ sshfs foo@example.org:/ /mnt $ NIX_OTHER_STORES=/mnt/nix \ NIX_SUBSTITUTERS=.../copy-from-other-stores.pl \ nix-env -i foo This will be especially useful for the installation CD since it doesn't require a manifest for the CD contents.