Skip to content
Snippets Groups Projects
  1. Jul 30, 2017
  2. Jul 28, 2017
  3. Jul 27, 2017
  4. Jul 26, 2017
    • Eelco Dolstra's avatar
      nix search: Add a cache · 57b95057
      Eelco Dolstra authored
      The package list is now cached in
      ~/.cache/nix/package-search.json. This gives a substantial speedup to
      "nix search" queries. For example (on an SSD):
      
      First run: (no package search cache, cold page cache)
      
        $ time nix search blender
        Attribute name: nixpkgs.blender
        Package name: blender
        Version: 2.78c
        Description: 3D Creation/Animation/Publishing System
      
        real    0m6.516s
      
      Second run: (package search cache populated)
      
        $ time nix search blender
        Attribute name: nixpkgs.blender
        Package name: blender
        Version: 2.78c
        Description: 3D Creation/Animation/Publishing System
      
        real    0m0.143s
      57b95057
    • Eelco Dolstra's avatar
      nix-build/nix-shell: Eliminate call to nix-instantiate / nix-store · 4c9ff89c
      Eelco Dolstra authored
      Note that this removes the need for a derivation symlink, so the
      --drv-path and --add-drv-link flags now do nothing.
      4c9ff89c
  5. Jul 20, 2017
  6. Jul 18, 2017
  7. Jul 17, 2017
  8. Jul 14, 2017
  9. Jul 11, 2017
  10. Jul 09, 2017
  11. Jul 07, 2017
  12. Jul 04, 2017
    • Eelco Dolstra's avatar
      Add X32 to the seccomp filter · a3dc1e65
      Eelco Dolstra authored
      Fixes #1432.
      a3dc1e65
    • Eelco Dolstra's avatar
      Sort substituters by priority · 42c5774e
      Eelco Dolstra authored
      Fixes #1438.
      42c5774e
    • Eelco Dolstra's avatar
      getDefaultSubstituters(): Simplify initialisation · b7203e85
      Eelco Dolstra authored
      As shlevy pointed out, static variables in C++11 have thread-safe
      initialisation.
      b7203e85
    • Eelco Dolstra's avatar
      Add allow-new-privileges option · 6cf23c3e
      Eelco Dolstra authored
      This allows builds to call setuid binaries. This was previously
      possible until we started using seccomp. Turns out that seccomp by
      default disallows processes from acquiring new privileges. Generally,
      any use of setuid binaries (except those created by the builder
      itself) is by definition impure, but some people were relying on this
      ability for certain tests.
      
      Example:
      
        $ nix build '(with import <nixpkgs> {}; runCommand "foo" {} "/run/wrappers/bin/ping -c 1 8.8.8.8; exit 1")' --no-allow-new-privileges
        builder for ‘/nix/store/j0nd8kv85hd6r4kxgnwzvr0k65ykf6fv-foo.drv’ failed with exit code 1; last 2 log lines:
          cannot raise the capability into the Ambient set
          : Operation not permitted
      
        $ nix build '(with import <nixpkgs> {}; runCommand "foo" {} "/run/wrappers/bin/ping -c 1 8.8.8.8; exit 1")' --allow-new-privileges
        builder for ‘/nix/store/j0nd8kv85hd6r4kxgnwzvr0k65ykf6fv-foo.drv’ failed with exit code 1; last 6 log lines:
          PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
          64 bytes from 8.8.8.8: icmp_seq=1 ttl=46 time=15.2 ms
      
      Fixes #1429.
      6cf23c3e
    • Eelco Dolstra's avatar
    • Eelco Dolstra's avatar
      Support base-64 hashes · c0015e87
      Eelco Dolstra authored
      Also simplify the Hash API.
      
      Fixes #1437.
      c0015e87
  13. Jul 03, 2017
  14. Jun 24, 2017
  15. Jun 20, 2017
    • David McFarland's avatar
      Call SetDllDirectory("") after sqlite3 init on cygwin · 596b0e0a
      David McFarland authored
      Cygwin sqlite3 is patched to call SetDllDirectory("/usr/bin") on init, which
      affects the current process and is inherited by child processes.  It causes
      DLLs to be loaded from /usr/bin/ before $PATH, which breaks all sorts of
      things.  A typical failures would be header/lib version mismatches (e.g.
      openssl when running checkPhase on openssh).  We'll just set it back to the
      default value.
      
      Note that this is a problem with the cygwin version of sqlite3 (currently
      3.18.0).  nixpkgs doesn't have the problematic patch.
      596b0e0a
    • Eelco Dolstra's avatar
      Restore thunks on any exception · c7346a27
      Eelco Dolstra authored
      There's no reason to restrict this to Error exceptions. This shouldn't
      matter to #1407 since the repl doesn't catch non-Error exceptions
      anyway, but you never know...
      c7346a27
Loading