Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This includes adding a new xcbuild-based libutil build to test the waters a bit there. We'll need to get xcbuild into the stdenv bootstrap before we can make the main build, but it's nice to see that it can work. (cherry picked from commit e86991e)
- Loading branch information
Showing
6 changed files
with
75 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
pkgs/os-specific/darwin/apple-source-releases/libutil/new.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ stdenv, appleDerivation, xcbuild }: | ||
|
||
# TODO: make this the official libutil expression once we've integrated xcbuild in the bootstrap | ||
appleDerivation { | ||
buildInputs = [ xcbuild ]; | ||
|
||
dontUseXcbuild = true; | ||
|
||
prePatch = '' | ||
substituteInPlace tzlink.c \ | ||
--replace '#include <xpc/xpc.h>' "" | ||
''; | ||
|
||
buildPhase = '' | ||
xcodebuild -target util | ||
''; | ||
|
||
installPhase = '' | ||
mkdir -p $out/lib $out/include | ||
cp libutil-*/Build/Products/Release/*.dylib $out/lib | ||
cp libutil-*/Build/Products/Release/*.h $out/include | ||
# TODO: figure out how to get this to be right the first time around | ||
install_name_tool -id $out/lib/libutil.dylib $out/lib/libutil.dylib | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
maintainers = with maintainers; [ copumpkin ]; | ||
platforms = platforms.darwin; | ||
license = licenses.apsl20; | ||
}; | ||
} |