adv_cmds: add custom install phase

This commit is contained in:
Matthew Bauer 2016-11-07 21:55:31 -06:00
parent 78c3acc2ee
commit 1ee8685ee7
No known key found for this signature in database
GPG Key ID: E04D0AD9469141C3
2 changed files with 16 additions and 1 deletions

View File

@ -21,7 +21,9 @@ xcbuildInstallPhase () {
if [ -z "$dontUseXcbuild" ]; then if [ -z "$dontUseXcbuild" ]; then
buildPhase=xcbuildBuildPhase buildPhase=xcbuildBuildPhase
if [ -z "$installPhase" ]; then
installPhase=xcbuildInstallPhase installPhase=xcbuildInstallPhase
fi
fi fi
# if [ -d "*.xcodeproj" ]; then # if [ -d "*.xcodeproj" ]; then

View File

@ -8,12 +8,25 @@ stdenv.mkDerivation {
sha256 = "12gbv35i09aij9g90p6b3x2f3ramw43qcb2gjrg8lzkzmwvcyw9q"; sha256 = "12gbv35i09aij9g90p6b3x2f3ramw43qcb2gjrg8lzkzmwvcyw9q";
}; };
# remove pkill from build
patchPhase = '' patchPhase = ''
substituteInPlace adv_cmds.xcodeproj/project.pbxproj \ substituteInPlace adv_cmds.xcodeproj/project.pbxproj \
--replace "FD201DC214369B4200906237 /* pkill.c in Sources */," "" --replace "FD201DC214369B4200906237 /* pkill.c in Sources */," ""
''; '';
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/bin/
for cmd in cap_mkdb finger fingerd gencat last locale lsvfs ps stty tabs tty whois
do
install adv_cmds-*/Build/Products/Release-*/$cmd $out/bin/$cmd
done
'';
buildInputs = [ xcbuild libcxx ]; buildInputs = [ xcbuild libcxx ];
# temporary fix for iostream issue
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1"; NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
meta = { meta = {