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:
parent
49f76fea56
commit
542444304f
@ -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\"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user