Skip to content

Commit

Permalink
Merge pull request #216016 from amjoseph-nixpkgs/pr/setup/NIX_OUTPATH…
Browse files Browse the repository at this point in the history
…_USED_AS_RANDOM_SEED

setup-hooks/reproducible-builds.sh: NIX_OUTPATH_USED_AS_RANDOM_SEED
  • Loading branch information
trofi authored Feb 18, 2023
2 parents b371d35 + 07942cd commit c8ca871
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/build-support/setup-hooks/reproducible-builds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
)"
Expand Down

0 comments on commit c8ca871

Please sign in to comment.