2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, libgpgerror, libassuan, libgcrypt, pkcs11helper,
|
2021-01-17 03:51:22 +00:00
|
|
|
pkg-config, openssl }:
|
2019-10-16 21:03:58 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnupg-pkcs11-scd";
|
|
|
|
version = "0.9.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/alonbl/${pname}/releases/download/${pname}-${version}/${pname}-${version}.tar.bz2";
|
2020-06-01 08:59:41 +00:00
|
|
|
sha256 = "1mfh9zjbahjd788rq1mzx009pd7p1sq62sbz586rd7szif7pkpgx";
|
2019-10-16 21:03:58 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
buildInputs = [ pkcs11helper pkg-config openssl ];
|
2019-10-16 21:03:58 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-libgpg-error-prefix=${libgpgerror.dev}"
|
|
|
|
"--with-libassuan-prefix=${libassuan.dev}"
|
|
|
|
"--with-libgcrypt-prefix=${libgcrypt.dev}"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-16 21:03:58 +00:00
|
|
|
description = "A smart-card daemon to enable the use of PKCS#11 tokens with GnuPG";
|
|
|
|
longDescription = ''
|
|
|
|
gnupg-pkcs11 is a project to implement a BSD-licensed smart-card
|
|
|
|
daemon to enable the use of PKCS#11 tokens with GnuPG.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://gnupg-pkcs11.sourceforge.net/";
|
2019-10-16 21:03:58 +00:00
|
|
|
license = licenses.bsd3;
|
2020-10-28 13:32:52 +00:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer philandstuff ];
|
2019-10-16 21:03:58 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|