diff --git a/pkgs/build-support/setup-hooks/reproducible-builds.sh b/pkgs/build-support/setup-hooks/reproducible-builds.sh index 5e27ce8a25fec..7b52f84df67b4 100644 --- a/pkgs/build-support/setup-hooks/reproducible-builds.sh +++ b/pkgs/build-support/setup-hooks/reproducible-builds.sh @@ -3,8 +3,7 @@ # 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=$( - randSeed=${NIX_OUTPATH_USED_AS_RANDOM_SEED:-$out} - outbase="${randSeed##*/}" + outbase="${out##*/}" randomseed="${outbase:0:10}" echo $randomseed )"