libgcrypt: fix darwin build

This commit is contained in:
Daiderd Jordan 2018-02-05 21:17:24 +01:00
parent 6f868088df
commit d5ccec3c4e
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libgpgerror, enableCapabilities ? false, libcap }:
{ stdenv, fetchurl, gettext, libgpgerror, enableCapabilities ? false, libcap }:
assert enableCapabilities -> stdenv.isLinux;
@ -20,6 +20,7 @@ stdenv.mkDerivation rec {
hardeningDisable = stdenv.lib.optional stdenv.cc.isClang "fortify";
buildInputs = [ libgpgerror ]
++ stdenv.lib.optional stdenv.isDarwin gettext
++ stdenv.lib.optional enableCapabilities libcap;
# Make sure libraries are correct for .pc and .la files