openpgp-card-tools: init at 0.0.12

This commit is contained in:
Nick Cao 2022-07-29 10:38:45 +08:00
parent 116cfcb60b
commit 4024ac3558
No known key found for this signature in database
GPG key ID: 068A56CEF48FA2C1
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, stdenv
, rustPlatform
, fetchCrate
, pkg-config
, pcsclite
, nettle
, PCSC
, testers
, openpgp-card-tools
}:
rustPlatform.buildRustPackage rec {
pname = "openpgp-card-tools";
version = "0.0.12";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-3OKOMe7Uj+8qpzfu0DzqwIGa/QJ0YoKczPN9W8HXJZU=";
};
cargoHash = "sha256-gq17BXorXrlJx4zlvLuOT8XGUCqZXFDSxgs/Fv9dChk=";
nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ];
buildInputs = [ pcsclite nettle ] ++ lib.optionals stdenv.isDarwin [ PCSC ];
passthru = {
tests.version = testers.testVersion {
package = openpgp-card-tools;
};
};
meta = with lib; {
description = "CLI tools for OpenPGP cards";
homepage = "https://gitlab.com/openpgp-card/openpgp-card";
license = licenses.asl20;
maintainers = with maintainers; [ nickcao ];
mainProgram = "opgpcard";
};
}

View file

@ -20462,6 +20462,10 @@ with pkgs;
openpa = callPackage ../development/libraries/openpa { };
openpgp-card-tools = callPackage ../tools/security/openpgp-card-tools {
inherit (darwin.apple_sdk.frameworks) PCSC;
};
opensaml-cpp = callPackage ../development/libraries/opensaml-cpp { };
openscenegraph = callPackage ../development/libraries/openscenegraph {