From 59ab5b9c5316a43369dfe3c5407bc267ffe2cf8b Mon Sep 17 00:00:00 2001 From: nikstur Date: Thu, 26 Sep 2024 12:49:08 +0200 Subject: [PATCH] rsop: init at 0.3.9 --- pkgs/by-name/rs/rsop/package.nix | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/rs/rsop/package.nix diff --git a/pkgs/by-name/rs/rsop/package.nix b/pkgs/by-name/rs/rsop/package.nix new file mode 100644 index 0000000000000..080063968f6ca --- /dev/null +++ b/pkgs/by-name/rs/rsop/package.nix @@ -0,0 +1,49 @@ +{ + 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"; + }; +}