depot/third_party/nixpkgs/pkgs/development/libraries/libp11/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

31 lines
777 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, libtool, pkg-config
, openssl }:
stdenv.mkDerivation rec {
pname = "libp11";
version = "0.4.11";
src = fetchFromGitHub {
owner = "OpenSC";
repo = "libp11";
rev = "${pname}-${version}";
sha256 = "0hcl706i04nw5c1sj7l6sj6m0yjq6qijz345v498jll58fp5wif8";
};
configureFlags = [
"--with-enginesdir=${placeholder "out"}/lib/engines"
];
nativeBuildInputs = [ autoreconfHook pkg-config libtool ];
buildInputs = [ openssl ];
enableParallelBuilding = true;
meta = with lib; {
description = "Small layer on top of PKCS#11 API to make PKCS#11 implementations easier";
homepage = "https://github.com/OpenSC/libp11";
license = licenses.lgpl21Plus;
platforms = platforms.all;
};
}