diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/security/gnupg-pkcs11-scd/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/security/gnupg-pkcs11-scd/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/security/gnupg-pkcs11-scd/default.nix b/nixpkgs/pkgs/tools/security/gnupg-pkcs11-scd/default.nix new file mode 100644 index 000000000000..76cc2639bf90 --- /dev/null +++ b/nixpkgs/pkgs/tools/security/gnupg-pkcs11-scd/default.nix @@ -0,0 +1,35 @@ +{ lib, stdenv, fetchurl, libgpg-error, libassuan, libgcrypt, pkcs11helper, + pkg-config, openssl }: + +stdenv.mkDerivation rec { + pname = "gnupg-pkcs11-scd"; + version = "0.10.0"; + + src = fetchurl { + url = "https://github.com/alonbl/${pname}/releases/download/${pname}-${version}/${pname}-${version}.tar.bz2"; + sha256 = "sha256-Kb8p53gPkhxtOhH2COKwSDwbtRDFr6hHMJAkndV8Ukk="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ pkcs11helper openssl ]; + + configureFlags = [ + "--with-libgpg-error-prefix=${libgpg-error.dev}" + "--with-libassuan-prefix=${libassuan.dev}" + "--with-libgcrypt-prefix=${libgcrypt.dev}" + ]; + + meta = with lib; { + description = "A smart-card daemon to enable the use of PKCS#11 tokens with GnuPG"; + mainProgram = "gnupg-pkcs11-scd"; + longDescription = '' + gnupg-pkcs11 is a project to implement a BSD-licensed smart-card + daemon to enable the use of PKCS#11 tokens with GnuPG. + ''; + homepage = "https://gnupg-pkcs11.sourceforge.net/"; + license = licenses.bsd3; + maintainers = with maintainers; [ matthiasbeyer philandstuff ]; + platforms = platforms.unix; + }; +} + |