8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
23 lines
599 B
Nix
23 lines
599 B
Nix
{ appleDerivation }:
|
|
|
|
appleDerivation {
|
|
patches = [ ./clang-5.patch ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace makefile \
|
|
--replace /usr/bin/ "" \
|
|
--replace '$(ISYSROOT)' "" \
|
|
--replace 'shell xcodebuild -version -sdk' 'shell true' \
|
|
--replace 'shell xcrun -sdk $(SDKPATH) -find' 'shell echo' \
|
|
--replace '-install_name $(libdir)' "-install_name $out/lib/" \
|
|
--replace /usr/local/bin/ /bin/ \
|
|
--replace /usr/lib/ /lib/ \
|
|
'';
|
|
|
|
makeFlags = [ "DSTROOT=$(out)" ];
|
|
|
|
postInstall = ''
|
|
mv $out/usr/local/include $out/include
|
|
rm -rf $out/usr
|
|
'';
|
|
}
|