libtasn1: split "dev" and "doc" outputs

This commit is contained in:
Vladimír Čunát 2015-10-07 22:24:10 +02:00
parent 0dff97ec72
commit 90a0c45775
2 changed files with 7 additions and 3 deletions

View File

@ -8,6 +8,9 @@ stdenv.mkDerivation rec {
sha256 = "1j8iixynchziw1y39lnibyl5h81m4p78w3i4f28q2vgwjgf801x4";
};
outputs = [ "dev" "out" "doc" ]; # it's dev-doc only, lots of it
outputBin = "dev";
buildInputs = [ perl texinfo ];
doCheck = true;

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl
{ stdenv, fetchurl, pkgconfig
, libgcrypt, libgpgerror, libtasn1
# Optional Dependencies
@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
# Fixes support for gcrypt 1.6+
patches = [ ./gcrypt-fix.patch ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libgcrypt libgpgerror libtasn1 optPam optLibidn optGnutls ];
configureFlags = [
@ -62,11 +63,11 @@ stdenv.mkDerivation rec {
'' + optionalString (optLibidn != null) ''
-e 's,\(-lidn\),-L${optLibidn}/lib \1,' \
'' + optionalString (optGnutls != null) ''
-e 's,\(-lgnutls\),-L${optGnutls}/lib \1,' \
-e 's,\(-lgnutls\),-L${optGnutls.out}/lib \1,' \
'' + ''
-e 's,\(-lgcrypt\),-L${libgcrypt}/lib \1,' \
-e 's,\(-lgpg-error\),-L${libgpgerror}/lib \1,' \
-e 's,\(-ltasn1\),-L${libtasn1}/lib \1,'
-e 's,\(-ltasn1\),-L${libtasn1.out}/lib \1,'
'';
meta = {