Merge pull request #21274 from LnL7/darwin-gyp
python-gyp: fix darwin build without xcode
This commit is contained in:
commit
51beb935c3
|
@ -12412,6 +12412,10 @@ in {
|
|||
sha256 = "1imgxsl4mr1662vsj2mlnpvvrbz71yk00w8p85vi5bkgmc6awgiz";
|
||||
};
|
||||
|
||||
prePatch = optionals pkgs.stdenv.isDarwin ''
|
||||
sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' pylib/gyp/xcode_emulation.py
|
||||
'';
|
||||
|
||||
patches = optionals pkgs.stdenv.isDarwin [
|
||||
../development/python-modules/gyp/no-darwin-cflags.patch
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue