mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
4bd38c330f
At least for now. Such changes are risky (we have very many packages),
and apparently it needs more testing/review without blocking other
changes.
This reverts the whole range 4d0e3984918^..8752c327377,
except for one commit that got reverted in 6f239d7309
already.
(that MR didn't even get its merge commit)
10 lines
392 B
Bash
10 lines
392 B
Bash
# 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.
|
|
# We also truncate the hash so that it cannot cause reference cycles.
|
|
export NIX_CFLAGS_COMPILE+=" -frandom-seed=$(
|
|
outbase="${out##*/}"
|
|
randomseed="${outbase:0:10}"
|
|
echo $randomseed
|
|
)"
|