diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2015-10-13 20:03:22 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-10-13 20:19:03 +0200 |
commit | 5f429dffdafb952a70a65badbdded87887a45eab (patch) | |
tree | 83b40786920bff002df62852b93169074616524a | |
parent | afc01cde320222bce53dcc75680c1eb499c08651 (diff) | |
download | nixlib-5f429dffdafb952a70a65badbdded87887a45eab.tar nixlib-5f429dffdafb952a70a65badbdded87887a45eab.tar.gz nixlib-5f429dffdafb952a70a65badbdded87887a45eab.tar.bz2 nixlib-5f429dffdafb952a70a65badbdded87887a45eab.tar.lz nixlib-5f429dffdafb952a70a65badbdded87887a45eab.tar.xz nixlib-5f429dffdafb952a70a65badbdded87887a45eab.tar.zst nixlib-5f429dffdafb952a70a65badbdded87887a45eab.zip |
libgcrypt: split dev and info outputs
-rw-r--r-- | pkgs/development/libraries/libgcrypt/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libgcrypt/default.nix b/pkgs/development/libraries/libgcrypt/default.nix index f88f4c5bdfb0..e03ed24e8fcd 100644 --- a/pkgs/development/libraries/libgcrypt/default.nix +++ b/pkgs/development/libraries/libgcrypt/default.nix @@ -10,14 +10,17 @@ stdenv.mkDerivation rec { sha256 = "09k06gs27gxfha07sa9rpf4xh6mvphj9sky7n09ymx75w9zjrg69"; }; + outputs = [ "dev" "out" "info" ]; + outputBin = "dev"; + buildInputs = [ libgpgerror ] ++ lib.optional enableCapabilities libcap; # Make sure libraries are correct for .pc and .la files # Also make sure includes are fixed for callers who don't use libgpgcrypt-config - postInstall = '' - sed -i 's,#include <gpg-error.h>,#include "${libgpgerror.dev}/include/gpg-error.h",g' $out/include/gcrypt.h + postFixup = '' + sed -i 's,#include <gpg-error.h>,#include "${libgpgerror.dev}/include/gpg-error.h",g' "$dev/include/gcrypt.h" '' + stdenv.lib.optionalString enableCapabilities '' sed -i 's,\(-lcap\),-L${libcap.out}/lib \1,' $out/lib/libgcrypt.la ''; |