mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
6c1858a93d
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!
24 lines
675 B
Nix
24 lines
675 B
Nix
{ stdenv, 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";
|
|
};
|
|
|
|
patchPhase = ''
|
|
substituteInPlace adv_cmds.xcodeproj/project.pbxproj \
|
|
--replace "FD201DC214369B4200906237 /* pkill.c in Sources */," ""
|
|
'';
|
|
|
|
buildInputs = [ xcbuild libcxx ];
|
|
#NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
|
|
|
|
meta = {
|
|
platforms = stdenv.lib.platforms.darwin;
|
|
maintainers = with stdenv.lib.maintainers; [ matthewbauer ];
|
|
};
|
|
}
|