diff options
author | William A. Kennington III <william@wkennington.com> | 2015-05-11 15:14:22 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-05-11 15:14:22 -0700 |
commit | 0b3af3074ef66724c2083ae0e9c6a0a5567be67a (patch) | |
tree | 98cb856c9ddcefec4810172c10bc4b0e09b6f1d3 /pkgs | |
parent | 26c37ded73ce084275d748be26887cf4023c91d6 (diff) | |
download | nixlib-0b3af3074ef66724c2083ae0e9c6a0a5567be67a.tar nixlib-0b3af3074ef66724c2083ae0e9c6a0a5567be67a.tar.gz nixlib-0b3af3074ef66724c2083ae0e9c6a0a5567be67a.tar.bz2 nixlib-0b3af3074ef66724c2083ae0e9c6a0a5567be67a.tar.lz nixlib-0b3af3074ef66724c2083ae0e9c6a0a5567be67a.tar.xz nixlib-0b3af3074ef66724c2083ae0e9c6a0a5567be67a.tar.zst nixlib-0b3af3074ef66724c2083ae0e9c6a0a5567be67a.zip |
libgcrypt: Fix darwin build
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/libgcrypt/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libgcrypt/default.nix b/pkgs/development/libraries/libgcrypt/default.nix index bbc625173a95..7d327a499bcc 100644 --- a/pkgs/development/libraries/libgcrypt/default.nix +++ b/pkgs/development/libraries/libgcrypt/default.nix @@ -38,7 +38,7 @@ stdenv.mkDerivation rec { # Also make sure includes are fixed for callers who don't use libgpgcrypt-config postInstall = '' sed -i 's,#include <gpg-error.h>,#include "${libgpgerror}/include/gpg-error.h",g' $out/include/gcrypt.h - '' + stdenv.lib.optionalString (optLibcap != null) '' + '' + stdenv.lib.optionalString (!stdenv.isDarwin && optLibcap != null) '' sed -i 's,\(-lcap\),-L${optLibcap}/lib \1,' $out/lib/libgcrypt.la ''; |