dpkg: fix glibc issue on darwin

Was introduced in #249311, there is no glibc on darwin (and the
replacement isn't needed).

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-08-23 10:53:09 +02:00 committed by Anderson Torres
parent 49f76fea56
commit 542444304f

View File

@ -13,7 +13,7 @@
, autoreconfHook
, pkg-config
, diffutils
, glibc
, glibc ? !stdenv.isDarwin
}:
stdenv.mkDerivation rec {
@ -66,6 +66,7 @@ stdenv.mkDerivation rec {
--replace '"rm"' \"${coreutils}/bin/rm\" \
--replace '"cat"' \"${coreutils}/bin/cat\" \
--replace '"diff"' \"${diffutils}/bin/diff\"
'' + lib.optionalString (!stdenv.isDarwin) ''
substituteInPlace src/main/help.c \
--replace '"ldconfig"' \"${glibc.bin}/bin/ldconfig\"
'';