diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2021-12-29 16:51:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 16:51:05 -0500 |
commit | ef2611fc1ee87c2f4d643efedb5665ee5b8af648 (patch) | |
tree | 5cef2c832384b47941b202cede01dbe98ece49ca | |
parent | cdde147de41ade43523eea44b82015c549e8ba7d (diff) | |
parent | 43c99df307d1cc36d8b887d752ecf158cfc796aa (diff) |
Merge pull request #152042 from vtuan10/age-plugin-yubikey
age-plugin-yubikey: init at 0.2.0
-rw-r--r-- | pkgs/tools/security/age-plugin-yubikey/default.nix | 37 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/security/age-plugin-yubikey/default.nix b/pkgs/tools/security/age-plugin-yubikey/default.nix new file mode 100644 index 000000000000..a880f490dc7e --- /dev/null +++ b/pkgs/tools/security/age-plugin-yubikey/default.nix @@ -0,0 +1,37 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +, pkg-config +, pcsclite +, PCSC +}: + +rustPlatform.buildRustPackage rec { + pname = "age-plugin-yubikey"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "str4d"; + repo = pname; + rev = "51910edfab4006a068864602469ff7db3766bfbe"; # no tag for this release + sha256 = "sha256-mMqvBlGFdwe5BaC0bXZg/27BGNmFTTYbLUHWUciqxQ0="; + }; + + cargoSha256 = "sha256-OCbVLSmGx51pJ/EPgPfOyVrYWdloNEbexDV1zMsmEJc="; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = + if stdenv.isDarwin then [ + PCSC + ] else [ + pcsclite + ]; + + meta = with lib; { + description = "YubiKey plugin for age clients"; + homepage = "https://github.com/str4d/age-plugin-yubikey"; + license = with licenses; [ asl20 mit ]; + maintainers = with maintainers; [ vtuan10 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 52cdd7cddba5..04a35c1527c7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4307,6 +4307,10 @@ with pkgs; agebox = callPackage ../tools/security/agebox { }; + age-plugin-yubikey = callPackage ../tools/security/age-plugin-yubikey { + inherit (pkgs.darwin.apple_sdk.frameworks) PCSC; + }; + bore = callPackage ../tools/networking/bore { inherit (darwin) Libsystem; inherit (darwin.apple_sdk.frameworks) SystemConfiguration; |