Skip to content
Snippets Groups Projects
  1. Mar 07, 2013
  2. Feb 05, 2013
  3. Dec 20, 2012
  4. Nov 23, 2012
  5. Oct 17, 2012
  6. Oct 10, 2012
  7. Sep 19, 2012
  8. Sep 13, 2012
  9. Aug 27, 2012
  10. Jul 30, 2012
  11. 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
  12. Jul 11, 2012
  13. Jul 09, 2012
  14. Jul 02, 2012
  15. 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
  16. May 10, 2012
  17. May 05, 2012
  18. May 04, 2012
  19. Apr 13, 2012
  20. Apr 10, 2012
  21. 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
  22. Mar 05, 2012
  23. Jan 18, 2012
  24. Jan 12, 2012
  25. Jan 11, 2012
  26. Jan 05, 2012
  27. Jan 03, 2012
  28. Dec 02, 2011
  29. Nov 29, 2011
Loading