From cf4b5036924d4f5cecf045b0e711a3e03ae8c033 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Mon, 7 Dec 2015 16:32:30 +0100 Subject: [PATCH] net-snmp: fix references to openssl in multiple-outputs --- pkgs/servers/monitoring/net-snmp/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/servers/monitoring/net-snmp/default.nix b/pkgs/servers/monitoring/net-snmp/default.nix index efc61b9fd6b2..9e3b6a749c5b 100644 --- a/pkgs/servers/monitoring/net-snmp/default.nix +++ b/pkgs/servers/monitoring/net-snmp/default.nix @@ -31,6 +31,12 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + postInstall = '' + for f in $out/lib/*.la $out/bin/net-snmp-config $out/bin/net-snmp-create-v3-user; do + sed 's|-L${openssl}|-L${openssl.out}|g' -i $f + done + ''; + meta = with stdenv.lib; { description = "Clients and server for the SNMP network monitoring protocol"; homepage = http://net-snmp.sourceforge.net/;