adv_cmds: add custom install phase
This commit is contained in:
parent
78c3acc2ee
commit
1ee8685ee7
@ -21,7 +21,9 @@ xcbuildInstallPhase () {
|
|||||||
|
|
||||||
if [ -z "$dontUseXcbuild" ]; then
|
if [ -z "$dontUseXcbuild" ]; then
|
||||||
buildPhase=xcbuildBuildPhase
|
buildPhase=xcbuildBuildPhase
|
||||||
installPhase=xcbuildInstallPhase
|
if [ -z "$installPhase" ]; then
|
||||||
|
installPhase=xcbuildInstallPhase
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if [ -d "*.xcodeproj" ]; then
|
# if [ -d "*.xcodeproj" ]; then
|
||||||
|
@ -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 = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user