mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 17:04:42 +00:00
50 lines
972 B
Nix
50 lines
972 B
Nix
|
{
|
||
|
lib,
|
||
|
rustPlatform,
|
||
|
fetchFromGitea,
|
||
|
pkg-config,
|
||
|
pcsclite,
|
||
|
nix-update-script,
|
||
|
testers,
|
||
|
rsop,
|
||
|
}:
|
||
|
|
||
|
rustPlatform.buildRustPackage rec {
|
||
|
pname = "rsop";
|
||
|
version = "0.3.9";
|
||
|
|
||
|
src = fetchFromGitea {
|
||
|
domain = "codeberg.org";
|
||
|
owner = "heiko";
|
||
|
repo = "rsop";
|
||
|
rev = "rsop/v${version}";
|
||
|
hash = "sha256-K69vyZFaVvZj4yLaV/zQYoItvcTDuFR4mdmMcfl1UDA=";
|
||
|
};
|
||
|
|
||
|
cargoHash = "sha256-DJVgnfPpXf8hGX6Dv6W8GzqspMEFZHc2/Fkn1MZRXd0=";
|
||
|
|
||
|
nativeBuildInputs = [ pkg-config ];
|
||
|
|
||
|
buildInputs = [ pcsclite ];
|
||
|
|
||
|
passthru = {
|
||
|
updateScript = nix-update-script { };
|
||
|
tests.version = testers.testVersion {
|
||
|
command = "rsop version";
|
||
|
package = rsop;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
meta = {
|
||
|
homepage = "https://codeberg.org/heiko/rsop";
|
||
|
description = "Stateless OpenPGP (SOP) based on rpgp";
|
||
|
license = with lib.licenses; [
|
||
|
mit
|
||
|
apsl20
|
||
|
cc0
|
||
|
];
|
||
|
maintainers = with lib.maintainers; [ nikstur ];
|
||
|
mainProgram = "rsop";
|
||
|
};
|
||
|
}
|