@@ -0,0 +1,33 @@
1+{ stdenv, fetchurl, libgpgerror, libassuan, libgcrypt, pkcs11helper,
2+ pkgconfig, openssl }:
3+
4+stdenv.mkDerivation rec {
5+ pname = "gnupg-pkcs11-scd";
6+ version = "0.9.2";
7+
8+ src = fetchurl {
9+ url = "https://github.com/alonbl/${pname}/releases/download/${pname}-${version}/${pname}-${version}.tar.bz2";
10+ sha256 = "sha256:1mfh9zjbahjd788rq1mzx009pd7p1sq62sbz586rd7szif7pkpgx";
11+ };
12+
13+ buildInputs = [ pkcs11helper pkgconfig openssl ];
14+
15+ configureFlags = [
16+ "--with-libgpg-error-prefix=${libgpgerror.dev}"
17+ "--with-libassuan-prefix=${libassuan.dev}"
18+ "--with-libgcrypt-prefix=${libgcrypt.dev}"
19+ ];
20+
21+ meta = with stdenv.lib; {
22+ description = "A smart-card daemon to enable the use of PKCS#11 tokens with GnuPG";
23+ longDescription = ''
24+ gnupg-pkcs11 is a project to implement a BSD-licensed smart-card
25+ daemon to enable the use of PKCS#11 tokens with GnuPG.
26+ '';
27+ homepage = http://gnupg-pkcs11.sourceforge.net/;
28+ license = licenses.bsd3;
29+ maintainers = with maintainers; [ philandstuff ];
30+ platforms = platforms.unix;
31+ };
32+}
33+