darwin.architecture: correctly install headers
I’m not going to fix all of them but this is the best way to do this in Apple things. Just add ‘EXPORT_DSTDIR’ to the installFlags & set ‘DSTDIR’ to $(out). Please do this instead of the patching!
This commit is contained in:
parent
108cf05ff0
commit
d000198ab7
@ -3,17 +3,9 @@
|
|||||||
appleDerivation {
|
appleDerivation {
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
postPatch = ''
|
installFlags = [ "EXPORT_DSTDIR=/include/architecture" ];
|
||||||
substituteInPlace $sourceRoot/Makefile \
|
|
||||||
--replace "/usr/include" "/include" \
|
|
||||||
--replace "/usr/bin/" "" \
|
|
||||||
--replace "/bin/" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
DSTROOT = "$(out)";
|
||||||
export DSTROOT=$out
|
|
||||||
make install
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
maintainers = with maintainers; [ copumpkin ];
|
maintainers = with maintainers; [ copumpkin ];
|
||||||
|
Loading…
Reference in New Issue
Block a user