Commit 54244430 authored by Paul Meyer's avatar Paul Meyer Committed by Anderson Torres
Browse files

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: default avatarPaul Meyer <49727155+katexochen@users.noreply.github.com>
parent 49f76fea
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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\"
  '';