2019-04-23 20:53:09 -07:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, libtool, pkgconfig
|
|
|
|
, openssl }:
|
2010-01-09 14:22:41 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "libp11";
|
2019-04-23 20:53:09 -07:00
|
|
|
version = "0.4.10";
|
2017-03-08 05:31:34 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenSC";
|
|
|
|
repo = "libp11";
|
2019-08-15 05:41:18 -07:00
|
|
|
rev = "${pname}-${version}";
|
2019-04-23 20:53:09 -07:00
|
|
|
sha256 = "1m4aw45bqichhx7cn78d8l1r1v0ccvwzlfj09fay2l9rfic5jgfz";
|
2010-01-09 14:22:41 -08:00
|
|
|
};
|
2017-03-08 05:31:34 -08:00
|
|
|
|
2019-04-23 20:53:09 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--with-enginesdir=${placeholder "out"}/lib/engines"
|
|
|
|
];
|
2017-03-12 11:27:55 -07:00
|
|
|
|
2017-03-08 05:31:34 -08:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig libtool ];
|
2019-04-23 20:53:09 -07:00
|
|
|
|
2017-03-08 05:31:34 -08:00
|
|
|
buildInputs = [ openssl ];
|
2010-01-09 14:22:41 -08:00
|
|
|
|
2019-04-23 20:53:09 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-03-12 11:27:55 -07:00
|
|
|
meta = with stdenv.lib; {
|
2019-04-23 20:53:09 -07:00
|
|
|
description = "Small layer on top of PKCS#11 API to make PKCS#11 implementations easier";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/OpenSC/libp11";
|
2017-03-18 11:41:23 -07:00
|
|
|
license = licenses.lgpl21Plus;
|
2017-03-12 11:27:55 -07:00
|
|
|
platforms = platforms.all;
|
2010-01-09 14:22:41 -08:00
|
|
|
};
|
|
|
|
}
|