2017-03-08 13:31:34 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, libtool, openssl, pkgconfig }:
|
2010-01-09 22:22:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-03-12 18:27:55 +00:00
|
|
|
name = "libp11-${version}";
|
2017-12-05 03:06:12 +00:00
|
|
|
version = "0.4.7";
|
2017-03-08 13:31:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenSC";
|
|
|
|
repo = "libp11";
|
|
|
|
rev = name;
|
2017-12-05 03:06:12 +00:00
|
|
|
sha256 = "0n1i0pxj6l0vdq8gpdwfp5p9qd7wkymg0lpy6a17ix8hpqsljlhr";
|
2010-01-09 22:22:41 +00:00
|
|
|
};
|
2017-03-08 13:31:34 +00:00
|
|
|
|
2017-03-12 18:27:55 +00:00
|
|
|
makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
|
|
|
|
|
2017-03-08 13:31:34 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig libtool ];
|
|
|
|
buildInputs = [ openssl ];
|
2010-01-09 22:22:41 +00:00
|
|
|
|
2017-03-12 18:27:55 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/OpenSC/libp11;
|
2017-03-18 18:41:23 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2010-01-09 22:22:41 +00:00
|
|
|
description = "Small layer on top of PKCS#11 API to make PKCS#11 implementations easier";
|
2017-03-12 18:27:55 +00:00
|
|
|
platforms = platforms.all;
|
2010-01-09 22:22:41 +00:00
|
|
|
};
|
|
|
|
}
|