mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
setup-hooks/reproducible-builds.sh: NIX_OUTPATH_USED_AS_RANDOM_SEED (take 2) (#216967)
This time the change targets `staging`.
This reverts commit e1f1c7eb79
.
This commit is contained in:
parent
aaa6cd4e04
commit
f488b617ab
@ -3,7 +3,8 @@
|
||||
# derivation and not easily collide with other builds.
|
||||
# We also truncate the hash so that it cannot cause reference cycles.
|
||||
NIX_CFLAGS_COMPILE="${NIX_CFLAGS_COMPILE:-} -frandom-seed=$(
|
||||
outbase="${out##*/}"
|
||||
randSeed=${NIX_OUTPATH_USED_AS_RANDOM_SEED:-$out}
|
||||
outbase="${randSeed##*/}"
|
||||
randomseed="${outbase:0:10}"
|
||||
echo $randomseed
|
||||
)"
|
||||
|
Loading…
Reference in New Issue
Block a user