1{ stdenv, fetchFromGitHub, autoreconfHook, libtool, openssl, pkgconfig }:
2
3stdenv.mkDerivation rec {
4 name = "libp11-${version}";
5 version = "0.4.7";
6
7 src = fetchFromGitHub {
8 owner = "OpenSC";
9 repo = "libp11";
10 rev = name;
11 sha256 = "0n1i0pxj6l0vdq8gpdwfp5p9qd7wkymg0lpy6a17ix8hpqsljlhr";
12 };
13
14 makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
15
16 nativeBuildInputs = [ autoreconfHook pkgconfig libtool ];
17 buildInputs = [ openssl ];
18
19 meta = with stdenv.lib; {
20 homepage = https://github.com/OpenSC/libp11;
21 license = licenses.lgpl21Plus;
22 description = "Small layer on top of PKCS#11 API to make PKCS#11 implementations easier";
23 platforms = platforms.all;
24 };
25}