diff options
author | Nick Cao <nickcao@nichi.co> | 2022-07-29 10:38:45 +0800 |
---|---|---|
committer | Nick Cao <nickcao@nichi.co> | 2022-07-29 13:24:50 +0800 |
commit | 4024ac355868d55963883ca8b1904a66dd0c1dae (patch) | |
tree | d3c39806a77e49d5eea07715fa418287c01f971c /pkgs/tools/security/openpgp-card-tools | |
parent | 116cfcb60b2445d97d2789886f3fd2e92dd139e1 (diff) |
openpgp-card-tools: init at 0.0.12
Diffstat (limited to 'pkgs/tools/security/openpgp-card-tools')
-rw-r--r-- | pkgs/tools/security/openpgp-card-tools/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/security/openpgp-card-tools/default.nix b/pkgs/tools/security/openpgp-card-tools/default.nix new file mode 100644 index 0000000000000..572c862b7f1f5 --- /dev/null +++ b/pkgs/tools/security/openpgp-card-tools/default.nix @@ -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"; + }; +} |