From 92b4e8324556fef6350fa29daa64cdde6b9121ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= Date: Thu, 5 Aug 2021 21:15:02 +0200 Subject: [PATCH] pythonPackages.pyunbound: fix build `_unbound.so` references `libunbound.so.8` in its RPATH --- pkgs/tools/networking/unbound/python.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/tools/networking/unbound/python.nix b/pkgs/tools/networking/unbound/python.nix index fcfd93be4d67..77c1e02c045c 100644 --- a/pkgs/tools/networking/unbound/python.nix +++ b/pkgs/tools/networking/unbound/python.nix @@ -51,7 +51,7 @@ in stdenv.mkDerivation rec { $out/bin/unbound-anchor -l | tail --lines=+2 - > $out/etc/${pname}/root.key # We don't need anything else rm -fR $out/bin $out/share $out/include $out/etc/unbound - patchelf --replace-needed libunbound.so.2 $out/${python.sitePackages}/libunbound.so.2 $out/${python.sitePackages}/_unbound.so + patchelf --replace-needed libunbound.so.8 $out/${python.sitePackages}/libunbound.so.8 $out/${python.sitePackages}/_unbound.so ''; meta = with lib; { @@ -60,6 +60,5 @@ in stdenv.mkDerivation rec { homepage = "http://www.unbound.net"; maintainers = with maintainers; [ leenaars ]; platforms = lib.platforms.unix; - broken = true; }; }