diff options
Diffstat (limited to 'pkgs/os-specific/darwin/apple-sdk-12.3/libnetwork.nix')
-rw-r--r-- | pkgs/os-specific/darwin/apple-sdk-12.3/libnetwork.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libnetwork.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libnetwork.nix new file mode 100644 index 0000000000000..e7bae2fc77a08 --- /dev/null +++ b/pkgs/os-specific/darwin/apple-sdk-12.3/libnetwork.nix @@ -0,0 +1,16 @@ +{ stdenvNoCC, darwin-stubs }: + +let + self = stdenvNoCC.mkDerivation { + pname = "libnetwork"; + inherit (darwin-stubs) version; + + buildCommand = '' + mkdir -p $out/lib + cp ${darwin-stubs}/usr/lib/libnetwork* $out/lib + ''; + + passthru.tbdRewrites.const."/usr/lib/libnetwork.dylib" = "${self}/lib/libnetwork.dylib"; + }; +in +self |