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