ec92d4d331
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
21 lines
464 B
Nix
21 lines
464 B
Nix
{ stdenvNoCC, MacOSX-SDK, libcharset }:
|
|
|
|
let self = stdenvNoCC.mkDerivation {
|
|
pname = "libobjc";
|
|
version = MacOSX-SDK.version;
|
|
|
|
dontUnpack = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/{include,lib}
|
|
cp -r ${MacOSX-SDK}/usr/include/objc $out/include
|
|
cp ${MacOSX-SDK}/usr/lib/libobjc* $out/lib
|
|
'';
|
|
|
|
passthru = {
|
|
tbdRewrites = {
|
|
const."/usr/lib/libobjc.A.dylib" = "${self}/lib/libobjc.A.dylib";
|
|
};
|
|
};
|
|
}; in self
|