mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
28 lines
445 B
Nix
28 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
|
|
'';
|
|
})
|