diff options
author | Winter <winter@winter.cafe> | 2022-07-29 01:58:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 01:58:59 -0400 |
commit | 1d523e2fbb2d252f7f8e97caa4717f6e3bd4d695 (patch) | |
tree | 0c0aeee74e03549a39f0638c6710e3d1a7a601af | |
parent | 1a1bd86756ca15f8bafdce4499d6a88089bec3b6 (diff) | |
parent | 4024ac355868d55963883ca8b1904a66dd0c1dae (diff) |
Merge pull request #183578 from NickCao/openpgp-card-tools
openpgp-card-tools: init at 0.0.12
-rw-r--r-- | pkgs/tools/security/openpgp-card-tools/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 44 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"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 59b22cdc80639..db9a184688bfc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20464,6 +20464,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 { |