nixpkgs/pkgs/tools/security/gnupg-pkcs11-scd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, libgpg-error, libassuan, libgcrypt, pkcs11helper,
2021-01-17 03:51:22 +00:00
pkg-config, openssl }:
stdenv.mkDerivation rec {
pname = "gnupg-pkcs11-scd";
2022-01-21 13:04:55 +00:00
version = "0.10.0";
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=";
};
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";
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;
};
}