mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
21 lines
411 B
Nix
21 lines
411 B
Nix
{ stdenvNoCC, buildPackages, MacOSX-SDK }:
|
|
|
|
let self = stdenvNoCC.mkDerivation {
|
|
pname = "libnetwork";
|
|
version = MacOSX-SDK.version;
|
|
|
|
dontUnpack = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib
|
|
cp ${MacOSX-SDK}/usr/lib/libnetwork* $out/lib
|
|
'';
|
|
|
|
passthru = {
|
|
tbdRewrites = {
|
|
const."/usr/lib/libnetwork.dylib" = "${self}/lib/libnetwork.dylib";
|
|
};
|
|
};
|
|
}; in self
|