2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, openssl, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pkcs11-helper";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "1.29.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenSC";
|
|
|
|
repo = "pkcs11-helper";
|
|
|
|
rev = "${pname}-${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-HPaPmsCJ81NaS7mgRGbR7KFG6AM3s6HXdWKdfREhcLc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/OpenSC/pkcs11-helper";
|
2022-02-20 05:27:41 +00:00
|
|
|
license = with licenses; [ bsd3 gpl2Only ];
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library that simplifies the interaction with PKCS#11 providers";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|