Skip to content

Commit

Permalink
dpkg: add CoreServices to fix Darwin build
Browse files Browse the repository at this point in the history
Signed-off-by: Sirio Balmelli <[email protected]>
  • Loading branch information
siriobalmelli committed Aug 6, 2024
1 parent 8e8f5b9 commit e13e593
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/tools/package-management/dpkg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
, pkg-config
, diffutils
, glibc ? !stdenv.isDarwin
, darwin
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit e13e593

Please sign in to comment.