libgcrypt: split dev and info outputs
This commit is contained in:
parent
afc01cde32
commit
5f429dffda
@ -10,14 +10,17 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "09k06gs27gxfha07sa9rpf4xh6mvphj9sky7n09ymx75w9zjrg69";
|
sha256 = "09k06gs27gxfha07sa9rpf4xh6mvphj9sky7n09ymx75w9zjrg69";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "dev" "out" "info" ];
|
||||||
|
outputBin = "dev";
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ libgpgerror ]
|
[ libgpgerror ]
|
||||||
++ lib.optional enableCapabilities libcap;
|
++ lib.optional enableCapabilities libcap;
|
||||||
|
|
||||||
# Make sure libraries are correct for .pc and .la files
|
# Make sure libraries are correct for .pc and .la files
|
||||||
# Also make sure includes are fixed for callers who don't use libgpgcrypt-config
|
# Also make sure includes are fixed for callers who don't use libgpgcrypt-config
|
||||||
postInstall = ''
|
postFixup = ''
|
||||||
sed -i 's,#include <gpg-error.h>,#include "${libgpgerror.dev}/include/gpg-error.h",g' $out/include/gcrypt.h
|
sed -i 's,#include <gpg-error.h>,#include "${libgpgerror.dev}/include/gpg-error.h",g' "$dev/include/gcrypt.h"
|
||||||
'' + stdenv.lib.optionalString enableCapabilities ''
|
'' + stdenv.lib.optionalString enableCapabilities ''
|
||||||
sed -i 's,\(-lcap\),-L${libcap.out}/lib \1,' $out/lib/libgcrypt.la
|
sed -i 's,\(-lcap\),-L${libcap.out}/lib \1,' $out/lib/libgcrypt.la
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user