lol
1{ fetchurl, stdenv, pth, libgpgerror }:
2
3stdenv.mkDerivation rec {
4 name = "libassuan-2.4.2";
5
6 src = fetchurl {
7 url = "mirror://gnupg/libassuan/${name}.tar.bz2";
8 sha256 = "086bbcdnvs48qq5g4iac7dpk76j0q3jrp16mchdvyx0b720xq1mv";
9 };
10
11 buildInputs = [ libgpgerror pth ];
12
13 doCheck = true;
14
15 # Make sure includes are fixed for callers who don't use libassuan-config
16 postInstall = ''
17 sed -i 's,#include <gpg-error.h>,#include "${libgpgerror}/include/gpg-error.h",g' $out/include/assuan.h
18 '';
19
20 meta = {
21 description = "IPC library used by GnuPG and related software";
22
23 longDescription = ''
24 Libassuan is a small library implementing the so-called Assuan
25 protocol. This protocol is used for IPC between most newer
26 GnuPG components. Both, server and client side functions are
27 provided.
28 '';
29
30 homepage = http://gnupg.org;
31 license = stdenv.lib.licenses.lgpl2Plus;
32 platforms = stdenv.lib.platforms.all;
33 };
34}