diff --git a/pkgs/stdenv/generic/setup-repeatable.sh b/pkgs/stdenv/generic/setup-repeatable.sh index 8247ede3e46f..3b2e01519320 100644 --- a/pkgs/stdenv/generic/setup-repeatable.sh +++ b/pkgs/stdenv/generic/setup-repeatable.sh @@ -724,12 +724,12 @@ fixupPhase() { if [ -z "$dontStrip" ]; then stripDebugList=${stripDebugList:-lib lib32 lib64 libexec bin sbin} if [ -n "$stripDebugList" ]; then - stripDirs "$stripDebugList" "${stripDebugFlags:--S}" + stripDirs "$stripDebugList" "${stripDebugFlags:--S --enable-deterministic-archives}" fi stripAllList=${stripAllList:-} if [ -n "$stripAllList" ]; then - stripDirs "$stripAllList" "${stripAllFlags:--s}" + stripDirs "$stripAllList" "${stripAllFlags:--s --enable-deterministic-archives}" fi fi