about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/stdenv/cygwin/rebase-i686.sh3
-rw-r--r--pkgs/stdenv/cygwin/rebase-x86_64.sh3
2 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/stdenv/cygwin/rebase-i686.sh b/pkgs/stdenv/cygwin/rebase-i686.sh
index e5695c75a967..e97dc66c0ad6 100644
--- a/pkgs/stdenv/cygwin/rebase-i686.sh
+++ b/pkgs/stdenv/cygwin/rebase-i686.sh
@@ -1,6 +1,9 @@
 postFixupHooks+=(_cygwinFixAutoImageBase)
 
 _cygwinFixAutoImageBase() {
+    if [ "$dontRebase" == 1 ]; then
+        return
+    fi
     find $out -name "*.dll" | while read DLL; do
         if [ -f /etc/rebasenix.nextbase ]; then
             NEXTBASE="$(</etc/rebasenix.nextbase)"
diff --git a/pkgs/stdenv/cygwin/rebase-x86_64.sh b/pkgs/stdenv/cygwin/rebase-x86_64.sh
index f782f18dfd15..a79c62574606 100644
--- a/pkgs/stdenv/cygwin/rebase-x86_64.sh
+++ b/pkgs/stdenv/cygwin/rebase-x86_64.sh
@@ -1,6 +1,9 @@
 postFixupHooks+=(_cygwinFixAutoImageBase)
 
 _cygwinFixAutoImageBase() {
+    if [ "$dontRebase" == 1 ]; then
+        return
+    fi
     find $out -name "*.dll" | while read DLL; do
         if [ -f /etc/rebasenix.nextbase ]; then
             NEXTBASE="$(</etc/rebasenix.nextbase)"