- Sep 06, 2013
-
-
Eelco Dolstra authored
As discovered by Todd Veldhuizen, the shell started by nix-shell has its affinity set to a single CPU. This is because nix-shell connects to the Nix daemon, which causes the affinity hack to be applied. So we turn this off for Perl programs.
-
- Jun 20, 2013
-
-
Eelco Dolstra authored
For instance, it's pointless to keep copy-from-other-stores running if there are no other stores, or download-using-manifests if there are no manifests. This also speeds things up because we don't send queries to those substituters.
-
- May 10, 2013
-
-
Eelco Dolstra authored
-
- May 03, 2013
-
-
Lluís Batlle i Rossell authored
Problem noticed by niksnut.
-
Lluís Batlle i Rossell authored
Based on https://github.com/NixOS/nix/pull/6 from shlevy
-
- Mar 08, 2013
-
-
Eelco Dolstra authored
This reverts commit 28bba8c4.
-
- Mar 07, 2013
-
-
Eelco Dolstra authored
I.e. Subroutine Nix::Store::isValidPath redefined at /nix/store/clfzsf6gi7qh5i9c0vks1ifjam47rijn-perl-5.16.2/lib/perl5/5.16.2/XSLoader.pm line 92. and so on.
-
Eelco Dolstra authored
-
- Feb 05, 2013
-
-
Eelco Dolstra authored
-
- Dec 20, 2012
-
-
Eelco Dolstra authored
-
- Nov 23, 2012
-
-
Eelco Dolstra authored
-
- Oct 17, 2012
-
-
Eelco Dolstra authored
This prevents unnecessary and slow rebuilds of NARs that already exist in the binary cache.
-
- Oct 10, 2012
-
-
Mats Erik Andersson authored
-
- Sep 19, 2012
-
-
Eelco Dolstra authored
-
- Sep 13, 2012
-
-
Eelco Dolstra authored
-
- Aug 27, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
-
- Jul 30, 2012
-
-
Eelco Dolstra authored
Put all Nix configuration flags in a Settings object.
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Previously substituters could read nix.conf themselves, but this didn't take --option flags into account.
-
- Jul 17, 2012
-
-
Eelco Dolstra authored
To implement binary caches efficiently, Hydra needs to be able to map the hash part of a store path (e.g. "gbg...zr7") to the full store path (e.g. "/nix/store/gbg...kzr7-subversion-1.7.5"). (The binary cache mechanism uses hash parts as a key for looking up store paths to ensure privacy.) However, doing a search in the Nix store for /nix/store/<hash>* is expensive since it requires reading the entire directory. queryPathFromHashPart() prevents this by doing a cheap database lookup.
-
Eelco Dolstra authored
Cherry-picked from the no-manifests branch.
-
- Jul 11, 2012
-
-
Eelco Dolstra authored
-
- Jul 09, 2012
-
-
Eelco Dolstra authored
-
- Jul 02, 2012
-
-
Eelco Dolstra authored
-
- Jun 29, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
XZ compresses significantly better than bzip2. Here are the compression ratios and execution times (using 4 cores in parallel) on my /var/run/current-system (3.1 GiB): bzip2: total compressed size 849.56 MiB, 30.8% [2m08] xz -6: total compressed size 641.84 MiB, 23.4% [6m53] xz -7: total compressed size 621.82 MiB, 22.6% [7m19] xz -8: total compressed size 599.33 MiB, 21.8% [7m18] xz -9: total compressed size 588.18 MiB, 21.4% [7m40] Note that compression takes much longer. More importantly, however, decompression is much faster: bzip2: 1m47.274s xz -6: 0m55.446s xz -7: 0m54.119s xz -8: 0m52.388s xz -9: 0m51.842s The only downside to using -9 is that decompression takes a fair amount (~65 MB) of memory.
-
- May 10, 2012
-
-
Eelco Dolstra authored
Since the Perl bindings require shared libraries, this is required on platforms such as Cygwin where we do a static build.
-
Eelco Dolstra authored
-
- May 05, 2012
-
-
Eelco Dolstra authored
Perl on some 32-bit systems needs -D_FILE_OFFSET_BITS=64. See also commit 02f1363e.
-
- May 04, 2012
-
-
Eelco Dolstra authored
This fixes the Darwin build (http://hydra.nixos.org/build/2517380). Hopefully it doesn't break other builds.
-
- Apr 13, 2012
- Apr 10, 2012
-
-
Eelco Dolstra authored
-
- Mar 19, 2012
-
-
Eelco Dolstra authored
This command builds or fetches all dependencies of the given derivation, then starts a shell with the environment variables from the derivation. This shell also sources $stdenv/setup to initialise the environment further. The current directory is not changed. Thus this is a convenient way to reproduce a build environment in an existing working tree. Existing environment variables are left untouched (unless the derivation overrides them). As a special hack, the original value of $PATH is appended to the $PATH produced by $stdenv/setup. Example session: $ nix-build --run-env '<nixpkgs>' -A xterm (the dependencies of xterm are built/fetched...) $ tar xf $src $ ./configure $ make $ emacs (... hack source ...) $ make $ ./xterm
-
- Mar 05, 2012
-
-
Eelco Dolstra authored
We're already printing progress on stderr, so printing them on stdout afterwards is kind of useless.
-
Eelco Dolstra authored
-
- Jan 18, 2012
-
-
Eelco Dolstra authored
-
Eelco Dolstra authored
Without these, Nix fails on 32-bit Linux with Perl 5.14, with a rather unhelpful error message: Not a CODE reference at /nix/store/n6kpbacn6nn7i3i735v8j3di8aqyl07v-perl-5.14.2/lib/perl5/5.14.2/i686-linux-thread-multi/DynaLoader.pm This is likely because the lack of -D_FILE_OFFSET_BITS=64 causes various Perl structures to not match what the Perl interpreter expects.
-
- Jan 12, 2012
-
-
Eelco Dolstra authored
Mac OS X instead of .dylib, so don't do that.
-