summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorLuca Bruno <lethalman88@gmail.com>2015-12-07 16:32:30 +0100
committerLuca Bruno <lethalman88@gmail.com>2015-12-07 16:32:58 +0100
commitcf4b5036924d4f5cecf045b0e711a3e03ae8c033 (patch)
treecfda1480fb54d040b4c904778459b2e9d0c50c45 /pkgs/servers
parent244f98546191fe9d9bfcb57a26462cd95a5d6825 (diff)
downloadnixlib-cf4b5036924d4f5cecf045b0e711a3e03ae8c033.tar
nixlib-cf4b5036924d4f5cecf045b0e711a3e03ae8c033.tar.gz
nixlib-cf4b5036924d4f5cecf045b0e711a3e03ae8c033.tar.bz2
nixlib-cf4b5036924d4f5cecf045b0e711a3e03ae8c033.tar.lz
nixlib-cf4b5036924d4f5cecf045b0e711a3e03ae8c033.tar.xz
nixlib-cf4b5036924d4f5cecf045b0e711a3e03ae8c033.tar.zst
nixlib-cf4b5036924d4f5cecf045b0e711a3e03ae8c033.zip
net-snmp: fix references to openssl in multiple-outputs
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/monitoring/net-snmp/default.nix6
1 files changed, 6 insertions, 0 deletions
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/;