depot/third_party/nixpkgs/pkgs/tools/security/age-plugin-ledger/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

45 lines
892 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, libusb1
, openssl
, rage
, AppKit
}:
rustPlatform.buildRustPackage rec {
pname = "age-plugin-ledger";
version = "0.1.2";
src = fetchFromGitHub {
owner = "Ledger-Donjon";
repo = "age-plugin-ledger";
rev = "v${version}";
hash = "sha256-g5GbWXhaGEafiM3qkGlRXHcOzPZl2pbDWEBPg4gQWcg=";
};
cargoHash = "sha256-SbgH67XuxBa7WFirSdOIUxfJGlIYezISCEA3LJGN3ys=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libusb1
openssl
] ++ lib.optional stdenv.isDarwin AppKit;
nativeCheckInputs = [
rage
];
meta = with lib; {
description = "Ledger Nano plugin for age";
mainProgram = "age-plugin-ledger";
homepage = "https://github.com/Ledger-Donjon/age-plugin-ledger";
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ erdnaxe ];
};
}