3
0
Fork 0
forked from mirrors/nixpkgs

libgcrypt: fix libcap lib output reference

After 7382afac40
This commit is contained in:
Joachim Fasting 2016-05-07 21:49:16 +02:00
parent 87a28c9385
commit 3772de4961
No known key found for this signature in database
GPG key ID: 4330820E1E04DCF4
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
postInstall = ''
sed -i 's,#include <gpg-error.h>,#include "${libgpgerror.dev}/include/gpg-error.h",g' $out/include/gcrypt.h
'' + stdenv.lib.optionalString enableCapabilities ''
sed -i 's,\(-lcap\),-L${libcap.out}/lib \1,' $out/lib/libgcrypt.la
sed -i 's,\(-lcap\),-L${libcap.lib}/lib \1,' $out/lib/libgcrypt.la
'';
doCheck = true;

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
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
sed -i 's,\(-lcap\),-L${libcap.lib}/lib \1,' $out/lib/libgcrypt.la
'';
# TODO: figure out why this is even necessary and why the missing dylib only crashes