diff --git a/pkgs/development/libraries/cctz/default.nix b/pkgs/development/libraries/cctz/default.nix index aff977edd912..f1c1a272b5f9 100644 --- a/pkgs/development/libraries/cctz/default.nix +++ b/pkgs/development/libraries/cctz/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, darwin }: +{ lib, stdenv, fetchFromGitHub, Foundation }: stdenv.mkDerivation rec { pname = "cctz"; @@ -13,9 +13,11 @@ stdenv.mkDerivation rec { makeFlags = [ "PREFIX=$(out)" ]; - buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Foundation; + buildInputs = lib.optional stdenv.isDarwin Foundation; - installTargets = [ "install_hdrs" "install_shared_lib" ]; + installTargets = [ "install_hdrs" ] + ++ lib.optional (!stdenv.targetPlatform.isStatic) "install_shared_lib" + ++ lib.optional stdenv.targetPlatform.isStatic "install_lib"; postInstall = lib.optionalString stdenv.isDarwin '' install_name_tool -id $out/lib/libcctz.so $out/lib/libcctz.so diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 21e7c3b437ac..49ff24cd1a79 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17857,7 +17857,9 @@ with pkgs; ccrtp = callPackage ../development/libraries/ccrtp { }; - cctz = callPackage ../development/libraries/cctz { }; + cctz = callPackage ../development/libraries/cctz { + inherit (darwin.apple_sdk.frameworks) Foundation; + }; celt = callPackage ../development/libraries/celt {}; celt_0_7 = callPackage ../development/libraries/celt/0.7.nix {};