nixpkgs/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/xcode.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, appleDerivation, fetchurl, xcbuild, libcxx }:
2016-10-20 01:17:24 -07:00
appleDerivation {
# disable pkill from build
2016-10-20 01:17:24 -07:00
patchPhase = ''
substituteInPlace adv_cmds.xcodeproj/project.pbxproj \
--replace "FD201DC214369B4200906237 /* pkill.c in Sources */," ""
2016-10-20 01:17:24 -07:00
'';
2016-11-07 19:55:31 -08:00
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/bin/
2016-11-09 21:07:24 -08:00
install adv_cmds-*/Build/Products/Release/* $out/bin/
2016-11-07 19:55:31 -08:00
for n in 1 8; do
mkdir -p $out/share/man/man$n
install */*.$n $out/share/man/man$n
2016-11-07 19:55:31 -08:00
done
mkdir -p $out/System/Library/LaunchDaemons
install fingerd/finger.plist $out/System/Library/LaunchDaemons
# from variant_links.sh
# ln -s $out/bin/pkill $out/bin/pgrep
# ln -s $out/share/man/man1/pkill.1 $out/share/man/man1/pgrep.1
2016-11-07 19:55:31 -08:00
'';
buildInputs = [ xcbuild libcxx ];
2016-11-07 19:55:31 -08:00
# temporary fix for iostream issue
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
2016-10-20 01:17:24 -07:00
meta = {
platforms = stdenv.lib.platforms.darwin;
maintainers = with stdenv.lib.maintainers; [ matthewbauer ];
};
}