python3Packages.pywikibot: init at 9.5.0 (#333068)
[NixPkgs.git] / pkgs / os-specific / darwin / apple-source-releases / developer_cmds / package.nix
blobadb16f58652caec432f581c2755ce2fca1aa71b9
2   lib,
3   clang,
4   mkAppleDerivation,
5   buildPackages,
6   shell_cmds,
7 }:
9 mkAppleDerivation {
10   releaseName = "developer_cmds";
12   outputs = [
13     "out"
14     "man"
15   ];
17   xcodeHash = "sha256-oE1GJF/M4vXLTM7BBjezKqrMu9iTUlEKDBKgwyFqu3k=";
19   postPatch = ''
20     substituteInPlace rpcgen/rpc_main.c \
21       --replace-fail '/usr/bin/cpp' '${lib.getBin buildPackages.clang}/bin/${buildPackages.clang.targetPrefix}cpp'
22   '';
24   postInstall = ''
25     HOST_PATH='${lib.getBin shell_cmds}/bin' patchShebangs --host "$out/bin"
26   '';
28   meta = {
29     description = "Developer commands for Darwin";
30     license = [
31       lib.licenses.bsd3
32       lib.licenses.bsdOriginal
33     ];
34   };