Merge pull request #102251 from andir/random-seed
stdenv: introduce -frandom-seed
This commit is contained in:
commit
278b273d9a
4
pkgs/build-support/setup-hooks/reproducible-builds.sh
Normal file
4
pkgs/build-support/setup-hooks/reproducible-builds.sh
Normal file
@ -0,0 +1,4 @@
|
||||
# Use the last part of the out path as hash input for the build.
|
||||
# This should ensure that it is deterministic across rebuilds of the same
|
||||
# derivation and not easily collide with other builds.
|
||||
export NIX_CFLAGS_COMPILE+=" -frandom-seed=${out##*/}"
|
@ -70,6 +70,7 @@ let
|
||||
../../build-support/setup-hooks/move-sbin.sh
|
||||
../../build-support/setup-hooks/move-lib64.sh
|
||||
../../build-support/setup-hooks/set-source-date-epoch-to-latest.sh
|
||||
../../build-support/setup-hooks/reproducible-builds.sh
|
||||
# TODO use lib.optional instead
|
||||
(if hasCC then cc else null)
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user