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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.6.6";
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-XewDPSEVWTOIOMDElXxz39w+6G9zl31ieWQMnNCM5qQ=";
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ksba-config";
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|