1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-05-01 09:37:02 +00:00

adv_cmds: Disable pkill.

pkill isn't building because of some missing headers:

- xpc/xpc.h
- os/base_private.h
- _simple.h

They are all available somewhere but not set up correctly in the Darwin
stdenv.

TODO: add pkill back in!
This commit is contained in:
Matthew Bauer 2016-11-07 16:09:10 -06:00
parent ebf963ac6c
commit 6c1858a93d
No known key found for this signature in database
GPG key ID: E04D0AD9469141C3
2 changed files with 6 additions and 7 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, xcbuild, xpc }: { stdenv, fetchurl, xcbuild, libcxx }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "adv_cmds"; name = "adv_cmds";
@ -9,11 +9,12 @@ stdenv.mkDerivation {
}; };
patchPhase = '' patchPhase = ''
substituteInPlace pkill/pkill.c \ substituteInPlace adv_cmds.xcodeproj/project.pbxproj \
--replace '#include <xpc/xpc.h>' "" --replace "FD201DC214369B4200906237 /* pkill.c in Sources */," ""
''; '';
buildInputs = [ xcbuild xpc ]; buildInputs = [ xcbuild libcxx ];
#NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
meta = { meta = {
platforms = stdenv.lib.platforms.darwin; platforms = stdenv.lib.platforms.darwin;

View file

@ -17378,7 +17378,5 @@ in
nitrokey-app = callPackage ../tools/security/nitrokey-app { }; nitrokey-app = callPackage ../tools/security/nitrokey-app { };
adv_cmds = callPackage ../os-specific/darwin/apple-source-releases/adv_cmds/xcode.nix { adv_cmds = callPackage ../os-specific/darwin/apple-source-releases/adv_cmds/xcode.nix {};
inherit (darwin.apple_sdk.libs) xpc;
};
} }