1 { lib, appleDerivation, xcbuildHook }:
4 nativeBuildInputs = [ xcbuildHook ];
6 # These PBXcp calls should be patched in xcbuild to allow them to
7 # automatically be prefixed.
9 substituteInPlace basic_cmds.xcodeproj/project.pbxproj \
10 --replace "dstPath = /usr/share/man/man1;" "dstPath = $out/share/man/man1;" \
11 --replace "dstPath = /usr/share/man/man5;" "dstPath = $out/share/man/man5;"
14 # temporary install phase until xcodebuild has "install" support
16 for f in Products/Release/*; do
18 install -D $f $out/bin/$(basename $f)
23 mkdir -p $out/share/man/man$n
24 install */*.$n $out/share/man/man$n
29 platforms = lib.platforms.darwin;
30 maintainers = with lib.maintainers; [ matthewbauer ];