[Nix-commits] [NixOS/nix] fe97c6: : Support sha512 argument

2017-07-04 Thread Eelco Dolstra via nix-commits
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nix
  Commit: fe97c6989841460efca37f0f3b9b470c98229283
  
https://github.com/NixOS/nix/commit/fe97c6989841460efca37f0f3b9b470c98229283
  Author: Eelco Dolstra 
  Date:   2017-07-04 (Tue, 04 Jul 2017)

  Changed paths:
M corepkgs/fetchurl.nix

  Log Message:
  ---
  : Support sha512 argument


  Commit: c0015e87af70f539f24d2aa2bc224a9d8b84276b
  
https://github.com/NixOS/nix/commit/c0015e87af70f539f24d2aa2bc224a9d8b84276b
  Author: Eelco Dolstra 
  Date:   2017-07-04 (Tue, 04 Jul 2017)

  Changed paths:
M perl/lib/Nix/Store.xs
M src/libexpr/primops.cc
M src/libstore/binary-cache-store.cc
M src/libstore/build.cc
M src/libstore/derivations.cc
M src/libstore/download.cc
M src/libstore/export-import.cc
M src/libstore/gc.cc
M src/libstore/local-store.cc
M src/libstore/nar-info-disk-cache.cc
M src/libstore/nar-info.cc
M src/libstore/optimise-store.cc
M src/libstore/remote-store.cc
M src/libstore/store-api.cc
M src/libutil/hash.cc
M src/libutil/hash.hh
M src/nix-daemon/nix-daemon.cc
M src/nix-prefetch-url/nix-prefetch-url.cc
M src/nix-store/nix-store.cc
M src/nix/hash.cc
M src/nix/verify.cc
M tests/fetchurl.sh
M tests/hash.sh

  Log Message:
  ---
  Support base-64 hashes

Also simplify the Hash API.

Fixes #1437.


Compare: https://github.com/NixOS/nix/compare/0a5a86775828...c0015e87af70___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nix] ad8b96: Fix handling of expression installables with a / i...

2017-07-04 Thread Eelco Dolstra via nix-commits
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nix
  Commit: ad8b96f1f2c80bf3f91ceab4d955aa368b7c85d4
  
https://github.com/NixOS/nix/commit/ad8b96f1f2c80bf3f91ceab4d955aa368b7c85d4
  Author: Eelco Dolstra 
  Date:   2017-07-04 (Tue, 04 Jul 2017)

  Changed paths:
M src/nix/installables.cc

  Log Message:
  ---
  Fix handling of expression installables with a / in them


  Commit: 6cf23c3e8fa12e6bf297ca87d1b47889bf115d52
  
https://github.com/NixOS/nix/commit/6cf23c3e8fa12e6bf297ca87d1b47889bf115d52
  Author: Eelco Dolstra 
  Date:   2017-07-04 (Tue, 04 Jul 2017)

  Changed paths:
M doc/manual/command-ref/conf-file.xml
M src/libstore/build.cc
M src/libstore/globals.hh

  Log Message:
  ---
  Add allow-new-privileges option

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  {}; 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  {}; 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.


Compare: https://github.com/NixOS/nix/compare/c0015e87af70...6cf23c3e8fa1___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nix] b7203e: getDefaultSubstituters(): Simplify initialisation

2017-07-04 Thread Eelco Dolstra via nix-commits
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nix
  Commit: b7203e853e3b928e1a7fb081fce379f023e935bb
  
https://github.com/NixOS/nix/commit/b7203e853e3b928e1a7fb081fce379f023e935bb
  Author: Eelco Dolstra 
  Date:   2017-07-04 (Tue, 04 Jul 2017)

  Changed paths:
M src/libstore/store-api.cc

  Log Message:
  ---
  getDefaultSubstituters(): Simplify initialisation

As shlevy pointed out, static variables in C++11 have thread-safe
initialisation.


  Commit: 42c5774e78a9f1422dee9c35adb9c056aa994d3b
  
https://github.com/NixOS/nix/commit/42c5774e78a9f1422dee9c35adb9c056aa994d3b
  Author: Eelco Dolstra 
  Date:   2017-07-04 (Tue, 04 Jul 2017)

  Changed paths:
M src/libstore/binary-cache-store.hh
M src/libstore/store-api.cc
M src/libstore/store-api.hh

  Log Message:
  ---
  Sort substituters by priority

Fixes #1438.


Compare: https://github.com/NixOS/nix/compare/6cf23c3e8fa1...42c5774e78a9___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 07176e: gcc: 6.3.0 -> 6.4.0

2017-07-04 Thread Eelco Dolstra via nix-commits
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 07176ed6f14c606b1f724dd05157fa187c7fdf50
  
https://github.com/NixOS/nixpkgs/commit/07176ed6f14c606b1f724dd05157fa187c7fdf50
  Author: Eelco Dolstra 
  Date:   2017-07-04 (Tue, 04 Jul 2017)

  Changed paths:
R pkgs/development/compilers/gcc/6/darwin-const-correct.patch
M pkgs/development/compilers/gcc/6/default.nix

  Log Message:
  ---
  gcc: 6.3.0 -> 6.4.0


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nix] a3dc1e: Add X32 to the seccomp filter

2017-07-04 Thread Eelco Dolstra via nix-commits
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nix
  Commit: a3dc1e65abe29f9d0528d3b5ea45812f4dcd63ed
  
https://github.com/NixOS/nix/commit/a3dc1e65abe29f9d0528d3b5ea45812f4dcd63ed
  Author: Eelco Dolstra 
  Date:   2017-07-04 (Tue, 04 Jul 2017)

  Changed paths:
M src/libstore/build.cc

  Log Message:
  ---
  Add X32 to the seccomp filter

Fixes #1432.


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-commits