mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
41 lines
898 B
Nix
41 lines
898 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchCrate
|
|
, pkg-config
|
|
, pcsclite
|
|
, nettle
|
|
, PCSC
|
|
, testers
|
|
, openpgp-card-tools
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "openpgp-card-tools";
|
|
version = "0.9.2";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
sha256 = "sha256-dpXoUJaTrBr4QMehE03BD+704lTNBvfGoAIv9d17A6Q=";
|
|
};
|
|
|
|
cargoHash = "sha256-qxKLpxYQTb+8NxOeimnR2SlyfPiZPl0gX8JCSqjZyM0=";
|
|
|
|
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";
|
|
};
|
|
}
|