depot/third_party/nixpkgs/pkgs/os-specific/darwin/apple-sdk-11.0/libcompression.nix

21 lines
427 B
Nix
Raw Normal View History

{ stdenvNoCC, buildPackages, MacOSX-SDK }:
let self = stdenvNoCC.mkDerivation {
pname = "libcompression";
version = MacOSX-SDK.version;
dontUnpack = true;
dontBuild = true;
installPhase = ''
mkdir -p $out/lib
cp ${MacOSX-SDK}/usr/lib/libcompression* $out/lib
'';
passthru = {
tbdRewrites = {
const."/usr/lib/libcompression.dylib" = "${self}/lib/libcompression.dylib";
};
};
}; in self