2021-09-04 20:05:03 +00:00
|
|
|
{ lib, stdenv, fetchurl, libgpg-error, 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";
|
2022-01-21 13:04:55 +00:00
|
|
|
version = "0.10.0";
|
2019-10-16 21:03:58 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/alonbl/${pname}/releases/download/${pname}-${version}/${pname}-${version}.tar.bz2";
|
2022-01-21 13:04:55 +00:00
|
|
|
sha256 = "sha256-Kb8p53gPkhxtOhH2COKwSDwbtRDFr6hHMJAkndV8Ukk=";
|
2019-10-16 21:03:58 +00:00
|
|
|
};
|
|
|
|
|
2022-09-25 02:49:25 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ pkcs11helper openssl ];
|
2019-10-16 21:03:58 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
2021-09-04 20:05:03 +00:00
|
|
|
"--with-libgpg-error-prefix=${libgpg-error.dev}"
|
2019-10-16 21:03:58 +00: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 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.
|
|
|
|
'';
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|