nixpkgs/pkgs/development/libraries/p11-kit/default.nix

50 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkgconfig, which
, gettext, libffi, libiconv, libtasn1
}:
stdenv.mkDerivation rec {
pname = "p11-kit";
2020-01-26 09:47:28 +00:00
version = "0.23.19";
2017-08-01 01:03:23 +01:00
src = fetchFromGitHub {
owner = "p11-glue";
repo = pname;
2017-08-01 01:03:23 +01:00
rev = version;
2020-01-26 09:47:28 +00:00
sha256 = "0hsg06mqsd90a0nxj5484b40cbfq7vna4w0sv6y5ihbj5l2hz06b";
};
outputs = [ "out" "dev"];
outputBin = "dev";
nativeBuildInputs = [ autoreconfHook pkgconfig which ];
buildInputs = [ gettext libffi libiconv libtasn1 ];
2017-08-01 01:03:23 +01:00
autoreconfPhase = ''
NOCONFIGURE=1 ./autogen.sh
'';
2015-04-20 06:43:41 +01:00
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
"--without-trust-paths"
]; # TODO: store trust anchors in a directory common to Nix and NixOS
2014-01-10 00:17:54 +00:00
enableParallelBuilding = true;
doCheck = !stdenv.isDarwin;
installFlags = [ "exampledir=\${out}/etc/pkcs11" ];
2015-04-20 06:43:41 +01:00
meta = with stdenv.lib; {
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-20 06:43:41 +01:00
platforms = platforms.all;
license = licenses.bsd3;
};
}