2018-11-18 17:04:21 -08:00
|
|
|
{ buildPackages, stdenv, fetchurl, gettext, libgpgerror }:
|
2009-03-03 05:27:40 -08:00
|
|
|
|
2008-01-28 11:44:20 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2020-11-28 02:40:17 -08:00
|
|
|
name = "libksba-1.5.0";
|
2008-01-28 11:44:20 -08:00
|
|
|
|
2009-03-03 05:27:40 -08:00
|
|
|
src = fetchurl {
|
2010-05-19 13:58:56 -07:00
|
|
|
url = "mirror://gnupg/libksba/${name}.tar.bz2";
|
2020-11-28 02:40:17 -08:00
|
|
|
sha256 = "1fm0mf3wq9fmyi1rmc1vk2fafn6liiw2mgxml3g7ybbb44lz2jmf";
|
2009-03-03 05:27:40 -08:00
|
|
|
};
|
2008-01-28 11:44:20 -08:00
|
|
|
|
2017-07-11 02:14:14 -07:00
|
|
|
outputs = [ "out" "dev" "info" ];
|
2016-09-19 05:54:20 -07:00
|
|
|
|
2018-03-14 15:58:20 -07:00
|
|
|
buildInputs = [ gettext ];
|
2014-10-28 15:43:07 -07:00
|
|
|
propagatedBuildInputs = [ libgpgerror ];
|
2018-11-18 17:04:21 -08:00
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-libgpg-error-prefix=${libgpgerror.dev}" ];
|
2008-01-28 11:44:20 -08:00
|
|
|
|
2016-09-19 05:54:20 -07:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $dev/bin
|
|
|
|
mv $out/bin/*-config $dev/bin/
|
|
|
|
rmdir --ignore-fail-on-non-empty $out/bin
|
|
|
|
'';
|
|
|
|
|
2014-10-28 15:43:07 -07:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://www.gnupg.org";
|
2016-05-13 23:25:36 -07:00
|
|
|
description = "CMS and X.509 access library";
|
2014-10-28 15:43:07 -07:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.lgpl3;
|
2009-03-03 05:27:40 -08:00
|
|
|
};
|
2008-01-28 11:44:20 -08:00
|
|
|
}
|