diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/security/age-plugin-yubikey/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/security/age-plugin-yubikey/default.nix | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/nixpkgs/pkgs/tools/security/age-plugin-yubikey/default.nix b/nixpkgs/pkgs/tools/security/age-plugin-yubikey/default.nix index 1ca20e13828e..7a3364c8420b 100644 --- a/nixpkgs/pkgs/tools/security/age-plugin-yubikey/default.nix +++ b/nixpkgs/pkgs/tools/security/age-plugin-yubikey/default.nix @@ -3,38 +3,45 @@ , rustPlatform , fetchFromGitHub , pkg-config +, openssl , pcsclite , PCSC , Foundation +, IOKit }: rustPlatform.buildRustPackage rec { pname = "age-plugin-yubikey"; - version = "0.3.0"; + version = "0.4.0"; src = fetchFromGitHub { owner = "str4d"; repo = pname; rev = "v${version}"; - sha256 = "sha256-KXqicTZ9GZlNj1AH3tMmOrC8zjXoEnqo4JJJTBdiI4E="; + hash = "sha256-V3NzZyCfslUBsARO5UC8N+cuptLxg2euM87DGqtLpPk="; }; - cargoSha256 = "sha256-m/v4E7KHyLIWZHX0TKpqwBVDDwLjhYpOjYMrKEtx6/4="; + cargoHash = "sha256-5qmwCcrhDkJlyeTS+waMiTxro1HjMHiQE5Ds/4sVpx4="; - nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ]; + nativeBuildInputs = [ + pkg-config + ]; - buildInputs = - if stdenv.isDarwin then [ - Foundation - PCSC - ] else [ - pcsclite - ]; + buildInputs = [ + openssl + ] + ++ lib.optional stdenv.isLinux pcsclite + ++ lib.optionals stdenv.isDarwin [ + IOKit + Foundation + PCSC + ]; meta = with lib; { - description = "YubiKey plugin for age clients"; + description = "YubiKey plugin for age"; homepage = "https://github.com/str4d/age-plugin-yubikey"; - license = with licenses; [ asl20 mit ]; - maintainers = with maintainers; [ vtuan10 ]; + changelog = "https://github.com/str4d/age-plugin-yubikey/blob/${src.rev}/CHANGELOG.md"; + license = with licenses; [ mit asl20 ]; + maintainers = with maintainers; [ kranzes vtuan10 ]; }; } |