git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #38932 from svanderburg/cygwin-fixes

Fix stdenv-native and fix rebasing on cygwin

commit204b73ffba3408b11c91ae5679e634690e83ade5 authorJohn Ericson <Ericson2314@yahoo.com> dateWed 18 Apr 2018, 11:05 (9 years ago) parent76a43d7a7adffd
2 files changed+14−5
pkgs/stdenv/cygwin/rebase-x86_64.sh+1−1 pkgs/stdenv/native/default.nix+13−4
pkgs/stdenv/cygwin/rebase-x86_64.sh+1−1
@@ -8,7 +8,7 @@ _cygwinFixAutoImageBase() {
88 if [ -f /etc/rebasenix.nextbase ]; then
99 NEXTBASE="$(</etc/rebasenix.nextbase)"
1010 fi
11− NEXTBASE=${NEXTBASE:-0x200000000}
11+ NEXTBASE=${NEXTBASE:-0x200000001}
1212
1313 REBASE=(`/bin/rebase -i $DLL`)
1414 BASE=${REBASE[2]}
pkgs/stdenv/native/default.nix+13−4
@@ -119,14 +119,23 @@ in
119119 };
120120 stdenvNoCC = stdenv;
121121
122− cc = import ../../build-support/cc-wrapper {
123− name = "cc-native";
124− nativeTools = true;
125− nativeLibc = true;
122+ cc = let
126123 nativePrefix = { # switch
127124 "i686-solaris" = "/usr/gnu";
128125 "x86_64-solaris" = "/opt/local/gcc47";
129126 }.${system} or "/usr";
127+ in
128+ import ../../build-support/cc-wrapper {
129+ name = "cc-native";
130+ nativeTools = true;
131+ nativeLibc = true;
132+ inherit nativePrefix;
133+ bintools = import ../../build-support/bintools-wrapper {
134+ name = "bintools";
135+ inherit stdenvNoCC nativePrefix;
136+ nativeTools = true;
137+ nativeLibc = true;
138+ };
130139 inherit stdenvNoCC;
131140 };
132141