From 8e301fab5021a0b9d93934ea36183fd249b21f76 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Thu, 20 Oct 2016 03:17:24 -0500 Subject: [PATCH] adv_cmds: add xcode derivation --- .../apple-source-releases/adv_cmds/xcode.nix | 22 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/os-specific/darwin/apple-source-releases/adv_cmds/xcode.nix 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 new file mode 100644 index 000000000000..ca041dfa4003 --- /dev/null +++ b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/xcode.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, xcbuild, xpc }: + +stdenv.mkDerivation { + name = "adv_cmds"; + + src = fetchurl { + url = "https://opensource.apple.com/tarballs/adv_cmds/adv_cmds-163.tar.gz"; + sha256 = "12gbv35i09aij9g90p6b3x2f3ramw43qcb2gjrg8lzkzmwvcyw9q"; + }; + + patchPhase = '' + substituteInPlace pkill/pkill.c \ + --replace '#include ' "" + ''; + + buildInputs = [ xcbuild xpc ]; + + meta = { + platforms = stdenv.lib.platforms.darwin; + maintainers = with stdenv.lib.maintainers; [ matthewbauer ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 11153d889d7e..5775d9c33b30 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17377,4 +17377,6 @@ in xulrunner = firefox-unwrapped; nitrokey-app = callPackage ../tools/security/nitrokey-app { }; + + adv_cmds = callPackage ../os-specific/darwin/apple-source-releases/adv_cmds/xcode.nix {}; }