git.iko.soy/typeable/nixpkgs
on master help sign in
gnupg-pkcs11-scd: init at 0.9.2

This adds gnupg-pkcs11-scd, a smart card daemon for GnuPG that supports PKCS#11 smartcards (such as the Yubikey PIV module). You can use it by adding something like this to your ~/.gnupg/gpg-agent.conf: scdaemon-program /home/<user>/.nix-profile/bin/gnupg-pkcs11-scd You will also need to install `opensc` and have a ~/.gnupg/gnupg-pkcs11-scd.conf with something like the following: providers opensc provider-opensc-library /home/philandstuff/.nix-profile/lib/pkcs11/opensc-pkcs11.so Then `gpg` smartcard operations will access your PKCS#11-capable smartcard.

commitf7ab5d985f633df9c1d433b9954004950f0739f9 authorPhilip Potter <philip.g.potter@gmail.com> dateWed 16 Oct 2019, 22:03 (7 years ago) parent67effde
2 files changed+35
pkgs/tools/security/gnupg-pkcs11-scd/default.nix+33 pkgs/top-level/all-packages.nix+2
pkgs/tools/security/gnupg-pkcs11-scd/default.nixnew file+33
@@ -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+
pkgs/top-level/all-packages.nix+2
@@ -3506,6 +3506,8 @@ in
35063506 };
35073507 gnupg = gnupg22;
35083508
3509+ gnupg-pkcs11-scd = callPackage ../tools/security/gnupg-pkcs11-scd { };
3510+
35093511 gnuplot = libsForQt5.callPackage ../tools/graphics/gnuplot { };
35103512
35113513 gnuplot_qt = gnuplot.override { withQt = true; };