Skip to content

Commit e3b7ada

Browse files
authored
rsop: init at 0.3.9 (NixOS#344650)
2 parents 37ec559 + 59ab5b9 commit e3b7ada

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

pkgs/by-name/rs/rsop/package.nix

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchFromGitea,
5+
pkg-config,
6+
pcsclite,
7+
nix-update-script,
8+
testers,
9+
rsop,
10+
}:
11+
12+
rustPlatform.buildRustPackage rec {
13+
pname = "rsop";
14+
version = "0.3.9";
15+
16+
src = fetchFromGitea {
17+
domain = "codeberg.org";
18+
owner = "heiko";
19+
repo = "rsop";
20+
rev = "rsop/v${version}";
21+
hash = "sha256-K69vyZFaVvZj4yLaV/zQYoItvcTDuFR4mdmMcfl1UDA=";
22+
};
23+
24+
cargoHash = "sha256-DJVgnfPpXf8hGX6Dv6W8GzqspMEFZHc2/Fkn1MZRXd0=";
25+
26+
nativeBuildInputs = [ pkg-config ];
27+
28+
buildInputs = [ pcsclite ];
29+
30+
passthru = {
31+
updateScript = nix-update-script { };
32+
tests.version = testers.testVersion {
33+
command = "rsop version";
34+
package = rsop;
35+
};
36+
};
37+
38+
meta = {
39+
homepage = "https://codeberg.org/heiko/rsop";
40+
description = "Stateless OpenPGP (SOP) based on rpgp";
41+
license = with lib.licenses; [
42+
mit
43+
apsl20
44+
cc0
45+
];
46+
maintainers = with lib.maintainers; [ nikstur ];
47+
mainProgram = "rsop";
48+
};
49+
}

0 commit comments

Comments
 (0)