git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
36 lines
689 B
Nix
36 lines
689 B
Nix
{
|
|
lib,
|
|
apple-sdk,
|
|
libbsd,
|
|
libutil,
|
|
mkAppleDerivation,
|
|
pkg-config,
|
|
}:
|
|
|
|
mkAppleDerivation {
|
|
releaseName = "patch_cmds";
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
xcodeHash = "sha256-FLCJY40l74ExO0WTaA8hb9guhOBXeui2GqWL/7QeJJk=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs =
|
|
[ libutil ]
|
|
# diff, patch, and sdiff need `strtonum`, which requires the 11.0 SDK.
|
|
++ lib.optionals (lib.versionOlder (lib.getVersion apple-sdk) "11.0") [ libbsd ];
|
|
|
|
meta = {
|
|
description = "BSD patch commands for Darwin";
|
|
license = [
|
|
lib.licenses.apple-psl10
|
|
lib.licenses.bsd2 # -freebsd
|
|
lib.licenses.bsd3
|
|
lib.licenses.bsdOriginal
|
|
];
|
|
};
|
|
}
|