treewide: cleanup phases from last commit

The last commit broken Darwin stdenv. We still need to skip some
phases when Apple provides a Makefile that shouldn’t be used.
This commit is contained in:
Matthew Bauer 2018-05-06 16:07:55 -05:00
parent 295815bec7
commit 9811bf2258
5 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,8 @@
{ stdenv, appleDerivation }: { stdenv, appleDerivation }:
appleDerivation { appleDerivation {
dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p $out/include mkdir -p $out/include
cp MacTypes.h $out/include cp MacTypes.h $out/include

View File

@ -1,12 +1,7 @@
{ stdenv, appleDerivation }: { stdenv, appleDerivation }:
appleDerivation { appleDerivation {
postPatch = '' dontBuild = true;
substituteInPlace $sourceRoot/Makefile \
--replace "/usr/include" "/include" \
--replace "/usr/bin/" "" \
--replace "/bin/" ""
'';
installPhase = '' installPhase = ''
export DSTROOT=$out export DSTROOT=$out

View File

@ -1,6 +1,7 @@
{ stdenv, appleDerivation }: { stdenv, appleDerivation }:
appleDerivation { appleDerivation {
dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p $out/include/ mkdir -p $out/include/
cp copyfile.h $out/include/ cp copyfile.h $out/include/

View File

@ -1,6 +1,7 @@
{ stdenv, appleDerivation }: { stdenv, appleDerivation }:
appleDerivation { appleDerivation {
dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p $out/Library/Frameworks/EAP8021X.framework/Headers mkdir -p $out/Library/Frameworks/EAP8021X.framework/Headers

View File

@ -1,6 +1,8 @@
{ stdenv, appleDerivation }: { stdenv, appleDerivation }:
appleDerivation { appleDerivation {
dontConfigure = true;
dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p $out/include/dispatch $out/include/os mkdir -p $out/include/dispatch $out/include/os