Loading pkgs/by-name/dp/dpkg/package.nix +15 −5 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ pkg-config, diffutils, versionCheckHook, glibc ? !stdenv.hostPlatform.isDarwin, glibc, }: stdenv.mkDerivation (finalAttrs: { Loading Loading @@ -91,7 +91,17 @@ stdenv.mkDerivation (finalAttrs: { # which makes some tests fail. sed -i '/opts normalize/a AT_SKIP_IF([true])' src/at/chdir.at '' + lib.optionalString (!stdenv.hostPlatform.isDarwin) '' + lib.optionalString ( stdenv.hostPlatform.libc == "glibc" || stdenv.hostPlatform.libc == "uclibc" || stdenv.hostPlatform.isFreeBSD || stdenv.hostPlatform.isOpenBSD || stdenv.hostPlatform.isNetBSD ) '' # See <https://github.com/guillemj/dpkg/blob/1.22.21/src/main/help.c#L93> substituteInPlace src/main/help.c \ --replace-fail '"ldconfig"' \"${glibc.bin}/bin/ldconfig\" ''; Loading Loading
pkgs/by-name/dp/dpkg/package.nix +15 −5 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ pkg-config, diffutils, versionCheckHook, glibc ? !stdenv.hostPlatform.isDarwin, glibc, }: stdenv.mkDerivation (finalAttrs: { Loading Loading @@ -91,7 +91,17 @@ stdenv.mkDerivation (finalAttrs: { # which makes some tests fail. sed -i '/opts normalize/a AT_SKIP_IF([true])' src/at/chdir.at '' + lib.optionalString (!stdenv.hostPlatform.isDarwin) '' + lib.optionalString ( stdenv.hostPlatform.libc == "glibc" || stdenv.hostPlatform.libc == "uclibc" || stdenv.hostPlatform.isFreeBSD || stdenv.hostPlatform.isOpenBSD || stdenv.hostPlatform.isNetBSD ) '' # See <https://github.com/guillemj/dpkg/blob/1.22.21/src/main/help.c#L93> substituteInPlace src/main/help.c \ --replace-fail '"ldconfig"' \"${glibc.bin}/bin/ldconfig\" ''; Loading