2021-09-04 21:05:03 +01:00
|
|
|
{ lib, stdenv, fetchurl, libgpg-error, libassuan, libgcrypt, pkcs11helper,
|
2021-01-17 03:51:22 +00:00
|
|
|
pkg-config, openssl }:
|
2019-10-16 22:03:58 +01: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 09:59:41 +01:00
|
|
|
sha256 = "1mfh9zjbahjd788rq1mzx009pd7p1sq62sbz586rd7szif7pkpgx";
|
2019-10-16 22:03:58 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
buildInputs = [ pkcs11helper pkg-config openssl ];
|
2019-10-16 22:03:58 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
2021-09-04 21:05:03 +01:00
|
|
|
"--with-libgpg-error-prefix=${libgpg-error.dev}"
|
2019-10-16 22:03:58 +01:00
|
|
|
"--with-libassuan-prefix=${libassuan.dev}"
|
|
|
|
"--with-libgcrypt-prefix=${libgcrypt.dev}"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-16 22:03:58 +01: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 02:11:51 +01:00
|
|
|
homepage = "http://gnupg-pkcs11.sourceforge.net/";
|
2019-10-16 22:03:58 +01:00
|
|
|
license = licenses.bsd3;
|
2020-10-28 13:32:52 +00:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer philandstuff ];
|
2019-10-16 22:03:58 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|