depot/third_party/nixpkgs/pkgs/development/libraries/libp11/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

31 lines
776 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, libtool, pkg-config
, openssl }:
stdenv.mkDerivation rec {
pname = "libp11";
version = "0.4.12";
src = fetchFromGitHub {
owner = "OpenSC";
repo = "libp11";
rev = "${pname}-${version}";
sha256 = "sha256-Xqjl12xT30ZXWYzPWNN3jWY9pxojhd7Kq0OC7rABt4M=";
};
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;
};
}