summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Meyer <49727155+katexochen@users.noreply.github.com>2023-08-23 10:53:09 +0200
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-08-23 23:00:04 +0000
commit542444304f027de80efcfebcf4691b8ccfd2c463 (patch)
tree337da5d6444bb2aae48264178f718445babd5643
parent49f76fea56b505da7837466b7e54ffddea9dcd06 (diff)
downloadnixpkgs-542444304f027de80efcfebcf4691b8ccfd2c463.tar
nixpkgs-542444304f027de80efcfebcf4691b8ccfd2c463.tar.gz
nixpkgs-542444304f027de80efcfebcf4691b8ccfd2c463.tar.bz2
nixpkgs-542444304f027de80efcfebcf4691b8ccfd2c463.tar.lz
nixpkgs-542444304f027de80efcfebcf4691b8ccfd2c463.tar.xz
nixpkgs-542444304f027de80efcfebcf4691b8ccfd2c463.tar.zst
nixpkgs-542444304f027de80efcfebcf4691b8ccfd2c463.zip
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>
-rw-r--r--pkgs/tools/package-management/dpkg/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/package-management/dpkg/default.nix b/pkgs/tools/package-management/dpkg/default.nix
index 11437c624c1..9e9d76b6a49 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\"
   '';