2019-05-13 14:28:31 -07:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkgconfig, which
|
|
|
|
, gettext, libffi, libiconv, libtasn1
|
|
|
|
}:
|
2011-11-07 08:48:14 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-13 14:28:31 -07:00
|
|
|
pname = "p11-kit";
|
2019-11-13 04:58:27 -08:00
|
|
|
version = "0.23.18.1";
|
2011-11-07 08:48:14 -08:00
|
|
|
|
2017-07-31 17:03:23 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "p11-glue";
|
2019-05-13 14:28:31 -07:00
|
|
|
repo = pname;
|
2017-07-31 17:03:23 -07:00
|
|
|
rev = version;
|
2019-11-13 04:58:27 -08:00
|
|
|
sha256 = "0l4ndipcbikblfjz729zkscvni5lzdzvbvsar2538pylw556rx73";
|
2011-11-07 08:48:14 -08:00
|
|
|
};
|
|
|
|
|
2017-09-19 13:24:36 -07:00
|
|
|
outputs = [ "out" "dev"];
|
2015-10-07 13:36:11 -07:00
|
|
|
outputBin = "dev";
|
|
|
|
|
2019-05-13 14:28:31 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig which ];
|
|
|
|
buildInputs = [ gettext libffi libiconv libtasn1 ];
|
2017-07-31 17:03:23 -07:00
|
|
|
|
|
|
|
autoreconfPhase = ''
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
'';
|
2011-11-07 08:48:14 -08:00
|
|
|
|
2015-04-19 22:43:41 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--without-trust-paths"
|
2019-05-13 14:28:31 -07:00
|
|
|
]; # TODO: store trust anchors in a directory common to Nix and NixOS
|
2014-01-09 16:17:54 -08:00
|
|
|
|
2018-06-01 20:14:27 -07:00
|
|
|
enableParallelBuilding = true;
|
2018-04-24 20:20:18 -07:00
|
|
|
|
2019-06-03 17:21:56 -07:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2019-05-13 14:28:31 -07:00
|
|
|
|
|
|
|
installFlags = [ "exampledir=\${out}/etc/pkcs11" ];
|
|
|
|
|
2015-04-19 22:43:41 -07:00
|
|
|
meta = with stdenv.lib; {
|
2019-05-13 14:28:31 -07: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.
|
|
|
|
'';
|
|
|
|
homepage = https://p11-glue.github.io/p11-glue/p11-kit.html;
|
2015-04-19 22:43:41 -07:00
|
|
|
platforms = platforms.all;
|
2019-05-13 14:28:31 -07:00
|
|
|
license = licenses.bsd3;
|
2011-11-07 08:48:14 -08:00
|
|
|
};
|
|
|
|
}
|