swift-corefoundation: some cleanup
I upstreamed some patches so I'm using those now
This commit is contained in:
parent
4705a9a6c1
commit
ea34fe82bc
pkgs/os-specific/darwin/swift-corefoundation
|
@ -6,28 +6,22 @@ stdenv.mkDerivation {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "apple";
|
owner = "apple";
|
||||||
repo = "swift-corelibs-foundation";
|
repo = "swift-corelibs-foundation";
|
||||||
rev = "87d1a97d6af07fec568765c47daddff0aaa0d59c";
|
rev = "dce4233f583ec15190b240d6116396bf9641cd57";
|
||||||
sha256 = "05cmqwzqqxb489g9hq7hhj2yva12pi488iblbpnvyk1y4nx077cw";
|
sha256 = "0i2ldvy14x05k2vgl5z0g5l2i5llifdfbij5zwfdwb8jmmq215qr";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ninja python libxml2 ];
|
buildInputs = [ ninja python libxml2 ];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
HACK=$PWD/hack
|
|
||||||
mkdir -p $HACK/CoreFoundation
|
|
||||||
cp CoreFoundation/Base.subproj/CFAsmMacros.h $HACK/CoreFoundation
|
|
||||||
|
|
||||||
substituteInPlace CoreFoundation/build.py \
|
substituteInPlace CoreFoundation/build.py \
|
||||||
--replace "','" "'," \
|
|
||||||
--replace '-I''${SYSROOT}/usr/include/libxml2' '-I${libxml2.dev}/include/libxml2' \
|
--replace '-I''${SYSROOT}/usr/include/libxml2' '-I${libxml2.dev}/include/libxml2' \
|
||||||
--replace 'cf.ASFLAGS = " ".join([' "cf.ASFLAGS = ' '.join([ '-I$HACK', " \
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = "--sysroot unused";
|
configurePhase = ":";
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cd CoreFoundation
|
cd CoreFoundation
|
||||||
../configure --sysroot foo
|
../configure --sysroot unused
|
||||||
ninja
|
ninja
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue