mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
82a2469a8a
https://github.com/apple-oss-distributions/developer_cmds/compare/developer_cmds-62...developer_cmds-79
36 lines
670 B
Nix
36 lines
670 B
Nix
{
|
|
lib,
|
|
clang,
|
|
mkAppleDerivation,
|
|
buildPackages,
|
|
shell_cmds,
|
|
}:
|
|
|
|
mkAppleDerivation {
|
|
releaseName = "developer_cmds";
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
xcodeHash = "sha256-oE1GJF/M4vXLTM7BBjezKqrMu9iTUlEKDBKgwyFqu3k=";
|
|
|
|
postPatch = ''
|
|
substituteInPlace rpcgen/rpc_main.c \
|
|
--replace-fail '/usr/bin/cpp' '${lib.getBin buildPackages.clang}/bin/${buildPackages.clang.targetPrefix}cpp'
|
|
'';
|
|
|
|
postInstall = ''
|
|
HOST_PATH='${lib.getBin shell_cmds}/bin' patchShebangs --host "$out/bin"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Developer commands for Darwin";
|
|
license = [
|
|
lib.licenses.bsd3
|
|
lib.licenses.bsdOriginal
|
|
];
|
|
};
|
|
}
|