libgcrypt: split dev and info outputs
This commit is contained in:
parent
afc01cde32
commit
5f429dffda
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user