2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libtool, pkg-config
|
2019-04-24 04:53:09 +01:00
|
|
|
, openssl }:
|
2010-01-09 22:22:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libp11";
|
2020-10-25 18:24:30 +00:00
|
|
|
version = "0.4.11";
|
2017-03-08 13:31:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenSC";
|
|
|
|
repo = "libp11";
|
2019-08-15 13:41:18 +01:00
|
|
|
rev = "${pname}-${version}";
|
2020-10-25 18:24:30 +00:00
|
|
|
sha256 = "0hcl706i04nw5c1sj7l6sj6m0yjq6qijz345v498jll58fp5wif8";
|
2010-01-09 22:22:41 +00:00
|
|
|
};
|
2017-03-08 13:31:34 +00:00
|
|
|
|
2019-04-24 04:53:09 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-enginesdir=${placeholder "out"}/lib/engines"
|
|
|
|
];
|
2017-03-12 18:27:55 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config libtool ];
|
2019-04-24 04:53:09 +01:00
|
|
|
|
2017-03-08 13:31:34 +00:00
|
|
|
buildInputs = [ openssl ];
|
2010-01-09 22:22:41 +00:00
|
|
|
|
2019-04-24 04:53:09 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-04-24 04:53:09 +01:00
|
|
|
description = "Small layer on top of PKCS#11 API to make PKCS#11 implementations easier";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/OpenSC/libp11";
|
2017-03-18 18:41:23 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2017-03-12 18:27:55 +00:00
|
|
|
platforms = platforms.all;
|
2010-01-09 22:22:41 +00:00
|
|
|
};
|
|
|
|
}
|