Skip to content
Snippets Groups Projects
  1. Sep 06, 2013
  2. Jun 20, 2013
    • Eelco Dolstra's avatar
      Don't keep "disabled" substituters running · 22144afa
      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.
      22144afa
  3. May 10, 2013
  4. May 03, 2013
  5. Mar 08, 2013
  6. Mar 07, 2013
  7. Feb 05, 2013
  8. Dec 20, 2012
  9. Nov 23, 2012
  10. Oct 17, 2012
  11. Oct 10, 2012
  12. Sep 19, 2012
  13. Sep 13, 2012
  14. Aug 27, 2012
  15. Jul 30, 2012
  16. Jul 17, 2012
    • Eelco Dolstra's avatar
      Add function queryPathFromHashPart() · ccc52adf
      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.
      ccc52adf
    • Eelco Dolstra's avatar
      queryPathInfo(): return hash in base-32 if desired · 220818f7
      Eelco Dolstra authored
      Cherry-picked from the no-manifests branch.
      220818f7
  17. Jul 11, 2012
  18. Jul 09, 2012
  19. Jul 02, 2012
  20. 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
  21. May 10, 2012
  22. May 05, 2012
  23. May 04, 2012
  24. Apr 13, 2012
  25. Apr 10, 2012
  26. 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
  27. Mar 05, 2012
  28. Jan 18, 2012
  29. Jan 12, 2012
Loading