1 { fetchurl, lib, stdenv, gettext, npth, libgpg-error, buildPackages }:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnupg/${pname}/${pname}-${version}.tar.bz2";
9 sha256 = "sha256-jowvzJgvnKZ9y7HZXi3HRrFzmkZovCCzo8W+Yy7bNOQ=";
12 outputs = [ "out" "dev" "info" ];
13 outputBin = "dev"; # libassuan-config
15 depsBuildBuild = [ buildPackages.stdenv.cc ];
16 buildInputs = [ npth gettext ];
19 "--with-libgpg-error-prefix=${libgpg-error.dev}"
24 # Make sure includes are fixed for callers who don't use libassuan-config
26 sed -i 's,#include <gpg-error.h>,#include "${libgpg-error.dev}/include/gpg-error.h",g' $dev/include/assuan.h
30 description = "IPC library used by GnuPG and related software";
32 Libassuan is a small library implementing the so-called Assuan
33 protocol. This protocol is used for IPC between most newer
34 GnuPG components. Both, server and client side functions are
37 homepage = "http://gnupg.org";
38 license = licenses.lgpl2Plus;
39 platforms = platforms.all;
40 maintainers = [ maintainers.erictapen ];