darwin.CF: fix sandboxed build
Had to abandon the use of sourceRoot primarily because it prevents stdenv from chmod'ing the ../configure into a writable file.
This commit is contained in:
parent
798f7b136c
commit
684963881b
@ -23,9 +23,9 @@ stdenv.mkDerivation {
|
|||||||
nativeBuildInputs = [ ninja python3 ];
|
nativeBuildInputs = [ ninja python3 ];
|
||||||
buildInputs = [ curl libxml2 objc4 ICU ];
|
buildInputs = [ curl libxml2 objc4 ICU ];
|
||||||
|
|
||||||
sourceRoot = "source/CoreFoundation";
|
postPatch = ''
|
||||||
|
cd CoreFoundation
|
||||||
|
|
||||||
patchPhase = ''
|
|
||||||
cp ${sysdir-free-system-directories} Base.subproj/CFSystemDirectories.c
|
cp ${sysdir-free-system-directories} Base.subproj/CFSystemDirectories.c
|
||||||
|
|
||||||
# In order, since I can't comment individual lines:
|
# In order, since I can't comment individual lines:
|
||||||
@ -39,6 +39,7 @@ stdenv.mkDerivation {
|
|||||||
# Fix sandbox impurities.
|
# Fix sandbox impurities.
|
||||||
substituteInPlace ../lib/script.py \
|
substituteInPlace ../lib/script.py \
|
||||||
--replace '/bin/cp' cp
|
--replace '/bin/cp' cp
|
||||||
|
patchShebangs --build ../configure
|
||||||
|
|
||||||
# Includes xpc for some initialization routine that they don't define anyway, so no harm here
|
# Includes xpc for some initialization routine that they don't define anyway, so no harm here
|
||||||
substituteInPlace PlugIn.subproj/CFBundlePriv.h \
|
substituteInPlace PlugIn.subproj/CFBundlePriv.h \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user