1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00

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
buildPhase=xcbuildBuildPhase
installPhase=xcbuildInstallPhase
if [ -z "$installPhase" ]; then
installPhase=xcbuildInstallPhase
fi
fi
# if [ -d "*.xcodeproj" ]; then

View file

@ -8,12 +8,25 @@ stdenv.mkDerivation {
sha256 = "12gbv35i09aij9g90p6b3x2f3ramw43qcb2gjrg8lzkzmwvcyw9q";
};
# remove pkill from build
patchPhase = ''
substituteInPlace adv_cmds.xcodeproj/project.pbxproj \
--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 ];
# temporary fix for iostream issue
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
meta = {