2021-02-05 17:12:51 +00:00
|
|
|
{ buildPackages, lib, stdenv, fetchurl, gettext, libgpgerror }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
name = "libksba-1.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnupg/libksba/${name}.tar.bz2";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-sPTGXk5EfZojSfa4wOd6KL6VMeRUi6AsVF0fRtx7+SE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "info" ];
|
|
|
|
|
|
|
|
buildInputs = [ gettext ];
|
|
|
|
propagatedBuildInputs = [ libgpgerror ];
|
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-libgpg-error-prefix=${libgpgerror.dev}" ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
};
|
|
|
|
}
|