Skip to content
Snippets Groups Projects
  1. Jul 02, 2012
  2. Jun 29, 2012
    • Eelco Dolstra's avatar
      37f70984
    • Eelco Dolstra's avatar
      Use XZ compression in binary caches · 4911a10a
      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.
      4911a10a
  3. May 10, 2012
  4. May 05, 2012
  5. May 04, 2012
  6. Apr 13, 2012
  7. Apr 10, 2012
  8. Mar 19, 2012
    • Eelco Dolstra's avatar
      Add a command "nix-build --run-env" to reproduce the environment of a derivation · 7f38087f
      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
      7f38087f
  9. Mar 05, 2012
  10. Jan 18, 2012
  11. Jan 12, 2012
  12. Jan 11, 2012
  13. Jan 05, 2012
  14. Jan 03, 2012
  15. Dec 02, 2011
  16. Nov 29, 2011
  17. Nov 23, 2011
    • Eelco Dolstra's avatar
      * Add an API function exportPaths() that provides the functionality of · 5bbd693c
      Eelco Dolstra authored
        ‘nix-store --export’.
      * Add a Perl module that provides the functionality of
        ‘nix-copy-closure --to’.  This is used by build-remote.pl so it no
        longer needs to start a separate nix-copy-closure process.  Also, it
        uses the Perl API to do the export, so it doesn't need to start a
        separate nix-store process either.  As a result, nix-copy-closure
        and build-remote.pl should no longer fail on very large closures due
        to an "Argument list too long" error.  (Note that having very many
        dependencies in a single derivation can still fail because the
        environment can become too large.  Can't be helped though.)
      5bbd693c
    • Eelco Dolstra's avatar
  18. Nov 22, 2011
  19. Nov 16, 2011
  20. Oct 11, 2011
  21. Oct 10, 2011
Loading