From 542444304f027de80efcfebcf4691b8ccfd2c463 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Wed, 23 Aug 2023 10:53:09 +0200 Subject: [PATCH] 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> --- pkgs/tools/package-management/dpkg/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/package-management/dpkg/default.nix b/pkgs/tools/package-management/dpkg/default.nix index 11437c624c1f..9e9d76b6a495 100644 --- a/pkgs/tools/package-management/dpkg/default.nix +++ b/pkgs/tools/package-management/dpkg/default.nix @@ -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\" '';