mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #260544 from reckenrode/darwintools-cross
DarwinTools: fix Darwin cross-compilation
This commit is contained in:
commit
83cb70d8c1
@ -13,17 +13,17 @@ stdenv.mkDerivation rec {
|
||||
./sw_vers-CFPriv.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace gcc cc
|
||||
'';
|
||||
|
||||
configurePhase = ''
|
||||
export SRCROOT=.
|
||||
export SYMROOT=.
|
||||
export DSTROOT=$out
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
"STRIP=${stdenv.cc.targetPrefix}strip"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/usr/* $out
|
||||
rmdir $out/usr
|
||||
|
Loading…
Reference in New Issue
Block a user