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:
parent
78c3acc2ee
commit
1ee8685ee7
|
@ -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
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue