summary refs log tree commit diff
path: root/pkgs/development/libraries/libassuan
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-02-05 21:16:04 +0100
committerDaiderd Jordan <daiderd@gmail.com>2018-02-05 21:57:52 +0100
commit6f868088df5f01d21cd1d5e6a92539862b63e55f (patch)
treee0cc29f5a935d0ea67781bf8bcbe3d06430e47bd /pkgs/development/libraries/libassuan
parentd3b38271548ef66fa880fd3fb131fff00ba02e8a (diff)
downloadnixpkgs-6f868088df5f01d21cd1d5e6a92539862b63e55f.tar
nixpkgs-6f868088df5f01d21cd1d5e6a92539862b63e55f.tar.gz
nixpkgs-6f868088df5f01d21cd1d5e6a92539862b63e55f.tar.bz2
nixpkgs-6f868088df5f01d21cd1d5e6a92539862b63e55f.tar.lz
nixpkgs-6f868088df5f01d21cd1d5e6a92539862b63e55f.tar.xz
nixpkgs-6f868088df5f01d21cd1d5e6a92539862b63e55f.tar.zst
nixpkgs-6f868088df5f01d21cd1d5e6a92539862b63e55f.zip
libassuan: fix darwin build
Diffstat (limited to 'pkgs/development/libraries/libassuan')
-rw-r--r--pkgs/development/libraries/libassuan/default.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgs/development/libraries/libassuan/default.nix b/pkgs/development/libraries/libassuan/default.nix
index 94369449ff3..827d3de79ea 100644
--- a/pkgs/development/libraries/libassuan/default.nix
+++ b/pkgs/development/libraries/libassuan/default.nix
@@ -1,4 +1,4 @@
-{ fetchurl, stdenv, pth, libgpgerror }:
+{ fetchurl, stdenv, gettext, pth, libgpgerror }:
 
 stdenv.mkDerivation rec {
   name = "libassuan-2.5.1";
@@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
   outputs = [ "out" "dev" "info" ];
   outputBin = "dev"; # libassuan-config
 
-  buildInputs = [ libgpgerror pth ];
+  buildInputs = [ libgpgerror pth ]
+    ++ stdenv.lib.optional stdenv.isDarwin gettext;
 
   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
   '';
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "IPC library used by GnuPG and related software";
-
     longDescription = ''
       Libassuan is a small library implementing the so-called Assuan
       protocol.  This protocol is used for IPC between most newer
       GnuPG components.  Both, server and client side functions are
       provided.
     '';
-
     homepage = http://gnupg.org;
-    license = stdenv.lib.licenses.lgpl2Plus;
-    platforms = stdenv.lib.platforms.all;
+    license = licenses.lgpl2Plus;
+    platforms = platforms.all;
   };
 }