git.iko.soy/typeable/nixpkgs
on master help sign in
xcbuild: fix sdk dir name issue

Previously, this error was coming up in xcbuild: ld: malformed 32-bit x.y.z version number: 1068638 It’s an interesting error because it only happens with certain hashes for the nixpkgs sdk. For instance, on latest nixpkgs unstable channel, the hash for the xcbuild sdk is: /nix/store/w6mwbdaz9calyii0fyxspl51f1068638-nix.nixpkgs.sdk that is an issue we pass -isysroot ${sdk} to clang where it will interpret that hanging "1068638". It would probably go away as soon as the hash changes but this hacky fix will solve the problem.

commitf8f338463882f0f7a026de9f862eacfebd0e4e86 authorMatthew Bauer <mjbauer95@gmail.com> dateFri 1 Sep 2017, 15:11 (9 years ago) parent0175612
1 file changed+1−1
pkgs/development/tools/xcbuild/platform.nix+1−1
pkgs/development/tools/xcbuild/platform.nix+1−1
@@ -228,6 +228,6 @@ stdenv.mkDerivation {
228228
229229 mkdir -p $out/Developer/SDKs/
230230 cd $out/Developer/SDKs/
231− ln -s ${sdk}
231+ cp -r ${sdk} nix.nixpkgs.sdk
232232 '';
233233}