depot/third_party/nixpkgs/pkgs/os-specific/darwin/apple-sdk-12.3/CLTools_Executables.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

27 lines
445 B
Nix

{
stdenvNoCC,
fetchurl,
cpio,
pbzx,
version,
}:
let
releases = builtins.fromJSON (builtins.readFile ./apple-sdk-releases.json);
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "CLTools_Executables";
inherit version;
src = fetchurl releases.${version}.${finalAttrs.pname};
nativeBuildInputs = [
cpio
pbzx
];
buildCommand = ''
pbzx $src | cpio -idm
mv Library/Developer/CommandLineTools $out
'';
})