diff --git a/pkgs/tools/package-management/dpkg/default.nix b/pkgs/tools/package-management/dpkg/default.nix index 811155dff91ba..db095e59c4891 100644 --- a/pkgs/tools/package-management/dpkg/default.nix +++ b/pkgs/tools/package-management/dpkg/default.nix @@ -14,6 +14,7 @@ , pkg-config , diffutils , glibc ? !stdenv.isDarwin +, darwin }: stdenv.mkDerivation rec { @@ -71,7 +72,8 @@ stdenv.mkDerivation rec { --replace '"ldconfig"' \"${glibc.bin}/bin/ldconfig\" ''; - buildInputs = [ perl zlib bzip2 xz zstd libmd ]; + buildInputs = [ perl zlib bzip2 xz zstd libmd ] + ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreServices ]; nativeBuildInputs = [ makeWrapper perl autoreconfHook pkg-config ]; postInstall =