2019-05-13 21:28:31 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkgconfig, which
|
|
|
|
, gettext, libffi, libiconv, libtasn1
|
|
|
|
}:
|
2011-11-07 16:48:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-13 21:28:31 +00:00
|
|
|
pname = "p11-kit";
|
2020-02-21 08:00:45 +00:00
|
|
|
version = "0.23.20";
|
2011-11-07 16:48:14 +00:00
|
|
|
|
2017-08-01 00:03:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "p11-glue";
|
2019-05-13 21:28:31 +00:00
|
|
|
repo = pname;
|
2017-08-01 00:03:23 +00:00
|
|
|
rev = version;
|
2020-02-21 08:00:45 +00:00
|
|
|
sha256 = "00xxhzgd7cpin9nzwrrzykvhjwqg5l45p0cq2gv68y3sxq2p9q6y";
|
2011-11-07 16:48:14 +00:00
|
|
|
};
|
|
|
|
|
2017-09-19 20:24:36 +00:00
|
|
|
outputs = [ "out" "dev"];
|
2015-10-07 20:36:11 +00:00
|
|
|
outputBin = "dev";
|
|
|
|
|
2019-05-13 21:28:31 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig which ];
|
|
|
|
buildInputs = [ gettext libffi libiconv libtasn1 ];
|
2017-08-01 00:03:23 +00:00
|
|
|
|
|
|
|
autoreconfPhase = ''
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
'';
|
2011-11-07 16:48:14 +00:00
|
|
|
|
2015-04-20 05:43:41 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
2020-04-25 16:27:34 +00:00
|
|
|
"--with-trust-paths=/etc/ssl/certs/ca-certificates.crt"
|
|
|
|
];
|
2014-01-10 00:17:54 +00:00
|
|
|
|
2018-06-02 03:14:27 +00:00
|
|
|
enableParallelBuilding = true;
|
2018-04-25 03:20:18 +00:00
|
|
|
|
2019-06-04 00:21:56 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2019-05-13 21:28:31 +00:00
|
|
|
|
2020-04-25 16:27:34 +00:00
|
|
|
installFlags = [
|
|
|
|
"exampledir=${placeholder "out"}/etc/pkcs11"
|
|
|
|
];
|
2019-05-13 21:28:31 +00:00
|
|
|
|
2015-04-20 05:43:41 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-05-13 21:28:31 +00:00
|
|
|
description = "Library for loading and sharing PKCS#11 modules";
|
|
|
|
longDescription = ''
|
|
|
|
Provides a way to load and enumerate PKCS#11 modules.
|
|
|
|
Provides a standard configuration setup for installing
|
|
|
|
PKCS#11 modules in such a way that they're discoverable.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://p11-glue.github.io/p11-glue/p11-kit.html";
|
2015-04-20 05:43:41 +00:00
|
|
|
platforms = platforms.all;
|
2019-05-13 21:28:31 +00:00
|
|
|
license = licenses.bsd3;
|
2011-11-07 16:48:14 +00:00
|
|
|
};
|
|
|
|
}
|