nixpkgs/pkgs/development/libraries/libp11/default.nix

32 lines
777 B
Nix
Raw Normal View History

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