about summary refs log tree commit diff
path: root/nixpkgs/pkgs/build-support/setup-hooks/reproducible-builds.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/build-support/setup-hooks/reproducible-builds.sh')
-rw-r--r--nixpkgs/pkgs/build-support/setup-hooks/reproducible-builds.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/build-support/setup-hooks/reproducible-builds.sh b/nixpkgs/pkgs/build-support/setup-hooks/reproducible-builds.sh
index 5b01c213fe4a..7b52f84df67b 100644
--- a/nixpkgs/pkgs/build-support/setup-hooks/reproducible-builds.sh
+++ b/nixpkgs/pkgs/build-support/setup-hooks/reproducible-builds.sh
@@ -2,8 +2,9 @@
 # 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=$(
+NIX_CFLAGS_COMPILE="${NIX_CFLAGS_COMPILE:-} -frandom-seed=$(
     outbase="${out##*/}"
     randomseed="${outbase:0:10}"
     echo $randomseed
 )"
+export NIX_CFLAGS_COMPILE