depot/pkgs/os-specific/darwin/apple-source-releases/patch_cmds/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

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
];
};
}