summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/apple-source-releases/adv_cmds
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2016-11-09 22:24:59 -0600
committerMatthew Bauer <mjbauer95@gmail.com>2016-11-15 18:58:11 -0600
commita35b330f30d0138ff5e4a86c7afdcc7c7e311fea (patch)
tree4073352b489f3a5aadefbcb3b5e784b2c3128ff0 /pkgs/os-specific/darwin/apple-source-releases/adv_cmds
parent1ee8685ee73b8867810e9a309d106019f11be0f7 (diff)
downloadnixpkgs-a35b330f30d0138ff5e4a86c7afdcc7c7e311fea.tar
nixpkgs-a35b330f30d0138ff5e4a86c7afdcc7c7e311fea.tar.gz
nixpkgs-a35b330f30d0138ff5e4a86c7afdcc7c7e311fea.tar.bz2
nixpkgs-a35b330f30d0138ff5e4a86c7afdcc7c7e311fea.tar.lz
nixpkgs-a35b330f30d0138ff5e4a86c7afdcc7c7e311fea.tar.xz
nixpkgs-a35b330f30d0138ff5e4a86c7afdcc7c7e311fea.tar.zst
nixpkgs-a35b330f30d0138ff5e4a86c7afdcc7c7e311fea.zip
adv_cmds: move from all-packages
Use the old way with pkgs/os-specific/darwin/apple-source-releases/defuault.nix.
Diffstat (limited to 'pkgs/os-specific/darwin/apple-source-releases/adv_cmds')
-rw-r--r--pkgs/os-specific/darwin/apple-source-releases/adv_cmds/xcode.nix27
1 files changed, 14 insertions, 13 deletions
diff --git a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/xcode.nix b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/xcode.nix
index 7857a59161c..15160e02e14 100644
--- a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/xcode.nix
+++ b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/xcode.nix
@@ -1,14 +1,7 @@
-{ stdenv, fetchurl, xcbuild, libcxx }:
+{ stdenv, appleDerivation, fetchurl, xcbuild, libcxx }:
 
-stdenv.mkDerivation {
-  name = "adv_cmds";
-
-  src = fetchurl {
-    url = "https://opensource.apple.com/tarballs/adv_cmds/adv_cmds-163.tar.gz";
-    sha256 = "12gbv35i09aij9g90p6b3x2f3ramw43qcb2gjrg8lzkzmwvcyw9q";
-  };
-
-  # remove pkill from build
+appleDerivation {
+  # disable pkill from build
   patchPhase = ''
     substituteInPlace adv_cmds.xcodeproj/project.pbxproj \
       --replace "FD201DC214369B4200906237 /* pkill.c in Sources */," ""
@@ -17,11 +10,19 @@ stdenv.mkDerivation {
   # temporary install phase until xcodebuild has "install" support
   installPhase = ''
     mkdir -p $out/bin/
+    install adv_cmds-*/Build/Products/Release-*/* $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
+    for n in 1 8; do
+      mkdir -p $out/share/man/man$n
+      install */*.$n $out/share/man/man$n
     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
   '';
 
   buildInputs = [ xcbuild libcxx ];