libassuan: fix darwin build

This commit is contained in:
Daiderd Jordan
2018-02-05 21:57:52 +01:00
parent d3b3827154
commit 6f868088df
@@ -1,4 +1,4 @@
{ fetchurl, stdenv, pth, libgpgerror }: { fetchurl, stdenv, gettext, pth, libgpgerror }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libassuan-2.5.1"; name = "libassuan-2.5.1";
@@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "info" ]; outputs = [ "out" "dev" "info" ];
outputBin = "dev"; # libassuan-config outputBin = "dev"; # libassuan-config
buildInputs = [ libgpgerror pth ]; buildInputs = [ libgpgerror pth ]
++ stdenv.lib.optional stdenv.isDarwin gettext;
doCheck = true; doCheck = true;
@@ -20,18 +21,16 @@ stdenv.mkDerivation rec {
sed -i 's,#include <gpg-error.h>,#include "${libgpgerror.dev}/include/gpg-error.h",g' $dev/include/assuan.h sed -i 's,#include <gpg-error.h>,#include "${libgpgerror.dev}/include/gpg-error.h",g' $dev/include/assuan.h
''; '';
meta = { meta = with stdenv.lib; {
description = "IPC library used by GnuPG and related software"; description = "IPC library used by GnuPG and related software";
longDescription = '' longDescription = ''
Libassuan is a small library implementing the so-called Assuan Libassuan is a small library implementing the so-called Assuan
protocol. This protocol is used for IPC between most newer protocol. This protocol is used for IPC between most newer
GnuPG components. Both, server and client side functions are GnuPG components. Both, server and client side functions are
provided. provided.
''; '';
homepage = http://gnupg.org; homepage = http://gnupg.org;
license = stdenv.lib.licenses.lgpl2Plus; license = licenses.lgpl2Plus;
platforms = stdenv.lib.platforms.all; platforms = platforms.all;
}; };
} }