aws-lc: 1.39.0 -> 1.42.0 (#369942)
[NixPkgs.git] / pkgs / by-name / ag / age-plugin-yubikey / package.nix
blob986e7b0a31e1274b63a362ad3a7e90e925330f0e
2   lib,
3   stdenv,
4   rustPlatform,
5   fetchFromGitHub,
6   pkg-config,
7   openssl,
8   pcsclite,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "age-plugin-yubikey";
13   version = "0.5.0-unstable-2024-11-02";
15   src = fetchFromGitHub {
16     owner = "str4d";
17     repo = pname;
18     rev = "36290c74ebd2723832aae684d43b927c9104f744";
19     hash = "sha256-vfemYGQnn3IzG7Y6iVKHZlYN+55/+A+N/GMG3TLs1h0=";
20   };
22   cargoLock = {
23     lockFile = ./Cargo.lock;
24     outputHashes = {
25       "age-core-0.10.0" = "sha256-Iw1KPYhUwfAvLGpYAGuSRhynrRJhD3EqOIS4UY6qC6c=";
26     };
27   };
29   nativeBuildInputs = [
30     pkg-config
31   ];
33   buildInputs = [
34     openssl
35   ] ++ lib.optionals stdenv.hostPlatform.isLinux [ pcsclite ];
37   meta = with lib; {
38     description = "YubiKey plugin for age";
39     mainProgram = "age-plugin-yubikey";
40     homepage = "https://github.com/str4d/age-plugin-yubikey";
41     changelog = "https://github.com/str4d/age-plugin-yubikey/blob/${src.rev}/CHANGELOG.md";
42     license = with licenses; [
43       mit
44       asl20
45     ];
46     maintainers = with maintainers; [
47       kranzes
48       vtuan10
49       adamcstephens
50     ];
51   };