2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, libgpgerror, libassuan, libgcrypt, pkcs11helper,
|
|
|
|
pkgconfig, openssl }:
|
|
|
|
|
|
|
|
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-02 18:00:15 +00:00
|
|
|
sha256 = "1mfh9zjbahjd788rq1mzx009pd7p1sq62sbz586rd7szif7pkpgx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkcs11helper pkgconfig openssl ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-libgpg-error-prefix=${libgpgerror.dev}"
|
|
|
|
"--with-libassuan-prefix=${libassuan.dev}"
|
|
|
|
"--with-libgcrypt-prefix=${libgcrypt.dev}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = "http://gnupg-pkcs11.sourceforge.net/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ lschuermann philandstuff ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|