expat: split dev output

This commit is contained in:
Vladimír Čunát
2015-10-15 13:57:38 +02:00
parent ad02a45af0
commit dd915f82e7
11 changed files with 19 additions and 16 deletions

View File

@@ -24,11 +24,10 @@ stdenv.mkDerivation rec {
installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ];
# get rid of runtime dependencies on $dev outputs
postInstall = ''
substituteInPlace "$lib/lib/libunbound.la" \
--replace '-L${openssl.dev}/lib' "" \
--replace '-L${libevent.dev}/lib' ""
'';
postInstall = ''substituteInPlace "$lib/lib/libunbound.la" ''
+ stdenv.lib.concatMapStrings
(pkg: " --replace '-L${pkg.dev}/lib' '-L${pkg.out}/lib' ")
[ openssl expat libevent ];
meta = with stdenv.lib; {
description = "Validating, recursive, and caching DNS resolver";