diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2016-11-09 22:30:32 -0600 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2016-11-15 18:58:13 -0600 |
commit | 9f46587841448decbb1ec8e46076e36838f82c93 (patch) | |
tree | 98440f80e3804d0e0623ea6bf31c970b39e3f790 /pkgs/os-specific/darwin/apple-source-releases/network_cmds | |
parent | 3b17d9e35e04885859d27024c75954d212a40b8a (diff) | |
download | nixlib-9f46587841448decbb1ec8e46076e36838f82c93.tar nixlib-9f46587841448decbb1ec8e46076e36838f82c93.tar.gz nixlib-9f46587841448decbb1ec8e46076e36838f82c93.tar.bz2 nixlib-9f46587841448decbb1ec8e46076e36838f82c93.tar.lz nixlib-9f46587841448decbb1ec8e46076e36838f82c93.tar.xz nixlib-9f46587841448decbb1ec8e46076e36838f82c93.tar.zst nixlib-9f46587841448decbb1ec8e46076e36838f82c93.zip |
network_cmds: init at 481.20.1
Fixes #16764
Diffstat (limited to 'pkgs/os-specific/darwin/apple-source-releases/network_cmds')
-rw-r--r-- | pkgs/os-specific/darwin/apple-source-releases/network_cmds/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/apple-source-releases/network_cmds/default.nix b/pkgs/os-specific/darwin/apple-source-releases/network_cmds/default.nix new file mode 100644 index 000000000000..fe4d60e7ebe9 --- /dev/null +++ b/pkgs/os-specific/darwin/apple-source-releases/network_cmds/default.nix @@ -0,0 +1,39 @@ +{ stdenv, appleDerivation, xcbuild, openssl, Librpcsvc, xnu, libpcap, developer_cmds }: + +appleDerivation rec { + buildInputs = [ xcbuild openssl xnu Librpcsvc libpcap developer_cmds ]; + + NIX_CFLAGS_COMPILE = " -I./unbound -I${xnu}/Library/Frameworks/System.framework/Headers/ -D__APPLE_USE_RFC_2292 -DIPV6_DONTFRAG=14 -DINET6"; + + patchPhase = '' + # disable spray, rtadvd + substituteInPlace network_cmds.xcodeproj/project.pbxproj \ + --replace "7294F0EA0EE8BAC80052EC88 /* PBXTargetDependency */," "" \ + --replace "7216D34D0EE89FEC00AE70E4 /* PBXTargetDependency */," "" + ''; + + # temporary install phase until xcodebuild has "install" support + installPhase = '' + mkdir -p $out/bin/ + install network_cmds-*/Build/Products/Release-*/* $out/bin/ + + for n in 1 5; do + mkdir -p $out/share/man/man$n + install */*.$n $out/share/man/man$n + done + + mkdir -p $out/etc/ + install rtadvd.tproj/rtadvd.conf ip6addrctl.tproj/ip6addrctl.conf $out/etc/ + + mkdir -p $out/local/OpenSourceVersions/ + install network_cmds.plist $out/local/OpenSourceVersions/ + + mkdir -p $out/System/Library/LaunchDaemons + install kdumpd.tproj/com.apple.kdumpd.plist $out/System/Library/LaunchDaemons + ''; + + meta = { + platforms = stdenv.lib.platforms.darwin; + maintainers = with stdenv.lib.maintainers; [ matthewbauer ]; + }; +} |