2021-10-08 15:17:17 +00:00
|
|
|
{ fetchurl, lib, stdenv, gettext, npth, libgpg-error, buildPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libassuan";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "2.5.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnupg/${pname}/${pname}-${version}.tar.bz2";
|
2023-08-04 22:07:22 +00:00
|
|
|
sha256 = "sha256-6f0nIY1TlJBOTjl4j5sXQnEcPmtBaJoxqjOAvVqk9CY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "info" ];
|
|
|
|
outputBin = "dev"; # libassuan-config
|
|
|
|
|
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
|
|
buildInputs = [ npth gettext ];
|
|
|
|
|
|
|
|
configureFlags = [
|
2023-02-16 17:41:37 +00:00
|
|
|
# Required for cross-compilation.
|
2021-10-08 15:17:17 +00:00
|
|
|
"--with-libgpg-error-prefix=${libgpg-error.dev}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
# Make sure includes are fixed for callers who don't use libassuan-config
|
|
|
|
postInstall = ''
|
2021-10-08 15:17:17 +00:00
|
|
|
sed -i 's,#include <gpg-error.h>,#include "${libgpg-error.dev}/include/gpg-error.h",g' $dev/include/assuan.h
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.all;
|
2023-04-12 12:48:02 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|