mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
23 lines
522 B
Nix
23 lines
522 B
Nix
{ 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 <xpc/xpc.h>' ""
|
|
'';
|
|
|
|
buildInputs = [ xcbuild xpc ];
|
|
|
|
meta = {
|
|
platforms = stdenv.lib.platforms.darwin;
|
|
maintainers = with stdenv.lib.maintainers; [ matthewbauer ];
|
|
};
|
|
}
|