2021-10-08 15:17:17 +00:00
|
|
|
{ buildPackages, lib, stdenv, fetchurl, gettext, libgpg-error }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "libksba";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "1.6.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "mirror://gnupg/libksba/libksba-${version}.tar.bz2";
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-P3LGjbMJceu/FDZ1J3GUI/Ck1fgQP8n0ocAan6RA3lw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "info" ];
|
|
|
|
|
|
|
|
buildInputs = [ gettext ];
|
2021-10-08 15:17:17 +00:00
|
|
|
propagatedBuildInputs = [ libgpg-error ];
|
2020-04-24 23:36:52 +00:00
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
configureFlags = [ "--with-libgpg-error-prefix=${libgpg-error.dev}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $dev/bin
|
|
|
|
mv $out/bin/*-config $dev/bin/
|
|
|
|
rmdir --ignore-fail-on-non-empty $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gnupg.org";
|
|
|
|
description = "CMS and X.509 access library";
|
|
|
|
platforms = platforms.all;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
};
|
|
|
|
}
|