blob: 7af2c48cc08195b06b6c535a020890395a96ec4f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{
lib,
stdenvNoCC,
fetchurl,
cpio,
pbzx,
version,
}:
let
releases = builtins.fromJSON (builtins.readFile ./apple-sdk-releases.json);
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "CLTools_macOSNMOS_SDK";
inherit version;
src = fetchurl releases.${version}.${finalAttrs.pname};
nativeBuildInputs = [
cpio
pbzx
];
buildCommand = ''
pbzx $src | cpio -idm
mv Library/Developer/CommandLineTools/SDKs/MacOSX${lib.versions.majorMinor version}.sdk $out
'';
})
|