nixpkgs/pkgs/by-name/li/libassuan/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.6 KiB
Nix
Raw Normal View History

2024-03-07 04:20:00 +00:00
{ fetchurl, lib, stdenv, gettext, npth, libgpg-error, buildPackages, gitUpdater }:
stdenv.mkDerivation rec {
pname = "libassuan";
2024-03-07 00:30:41 +00:00
version = "2.5.7";
src = fetchurl {
url = "mirror://gnupg/${pname}/${pname}-${version}.tar.bz2";
2024-03-07 00:30:41 +00:00
sha256 = "sha256-AQMIH/wng4ouUEeRU8oQXoc9PWXYqVkygunJTH5q+3Y=";
};
outputs = [ "out" "dev" "info" ];
2015-10-11 20:09:01 +00:00
outputBin = "dev"; # libassuan-config
depsBuildBuild = [ buildPackages.stdenv.cc ];
buildInputs = [ npth gettext ];
configureFlags = [
# Required for cross-compilation.
"--with-libgpg-error-prefix=${libgpg-error.dev}"
];
doCheck = true;
2015-05-02 00:47:23 +00:00
# Make sure includes are fixed for callers who don't use libassuan-config
postInstall = ''
sed -i 's,#include <gpg-error.h>,#include "${libgpg-error.dev}/include/gpg-error.h",g' $dev/include/assuan.h
2015-05-02 00:47:23 +00:00
'';
2024-03-07 04:20:00 +00:00
passthru.updateScript = gitUpdater {
url = "https://dev.gnupg.org/source/libassuan.git";
rev-prefix = "libassuan-";
ignoredVersions = ".*-base";
};
meta = with lib; {
description = "IPC library used by GnuPG and related software";
mainProgram = "libassuan-config";
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.
'';
2024-03-07 04:20:00 +00:00
homepage = "https://gnupg.org/software/libassuan/";
changelog = "https://dev.gnupg.org/source/libassuan/browse/master/NEWS;libassuan-${version}";
2018-02-05 20:16:04 +00:00
license = licenses.lgpl2Plus;
platforms = platforms.all;
maintainers = [ ];
};
}