summary refs log tree commit diff
path: root/pkgs/tools/networking/unbound
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2015-10-05 10:53:30 +0200
committerVladimír Čunát <vcunat@gmail.com>2015-10-05 10:53:30 +0200
commit252b3dcc8716d3be1cc5763d1e4807b662f3debd (patch)
tree2141124c866a603cb80f66dac9b442b0d1280508 /pkgs/tools/networking/unbound
parent68530a4fb7ac26c5893a6204e1dde4535f38f149 (diff)
downloadnixlib-252b3dcc8716d3be1cc5763d1e4807b662f3debd.tar
nixlib-252b3dcc8716d3be1cc5763d1e4807b662f3debd.tar.gz
nixlib-252b3dcc8716d3be1cc5763d1e4807b662f3debd.tar.bz2
nixlib-252b3dcc8716d3be1cc5763d1e4807b662f3debd.tar.lz
nixlib-252b3dcc8716d3be1cc5763d1e4807b662f3debd.tar.xz
nixlib-252b3dcc8716d3be1cc5763d1e4807b662f3debd.tar.zst
nixlib-252b3dcc8716d3be1cc5763d1e4807b662f3debd.zip
unbound: split into multiple outputs
Diffstat (limited to 'pkgs/tools/networking/unbound')
-rw-r--r--pkgs/tools/networking/unbound/default.nix16
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/tools/networking/unbound/default.nix b/pkgs/tools/networking/unbound/default.nix
index e356d6d65376..ab37f30fb64d 100644
--- a/pkgs/tools/networking/unbound/default.nix
+++ b/pkgs/tools/networking/unbound/default.nix
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
     sha256 = "1jly2apag4yg649w3flaq73wdrcfyxnhx5py9j73y7adxmswigbn";
   };
 
+  outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB
+
   buildInputs = [ openssl expat libevent ];
 
   configureFlags = [
@@ -21,11 +23,17 @@ stdenv.mkDerivation rec {
 
   installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ];
 
-  meta = {
+  # get rid of runtime dependency
+  postInstall = ''
+    substituteInPlace "$lib/lib/libunbound.la" \
+      --replace '-L${openssl.dev}/lib' ""
+  '';
+
+  meta = with stdenv.lib; {
     description = "Validating, recursive, and caching DNS resolver";
-    license = stdenv.lib.licenses.bsd3;
+    license = licenses.bsd3;
     homepage = http://www.unbound.net;
-    maintainers = [ stdenv.lib.maintainers.emery ];
-    platforms = stdenv.lib.platforms.unix;
+    maintainers = [ maintainers.emery ];
+    platforms = platforms.unix;
   };
 }