nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitea,
5 pkg-config,
6 pcsclite,
7 nix-update-script,
8 testers,
9 rsop,
10}:
11
12rustPlatform.buildRustPackage rec {
13 pname = "rsop";
14 version = "0.7.2";
15
16 src = fetchFromGitea {
17 domain = "codeberg.org";
18 owner = "heiko";
19 repo = "rsop";
20 rev = "rsop/v${version}";
21 hash = "sha256-6vP+epxsDid3M7cpfpOY29VWeIbuCB30qtmotPhzShc=";
22 };
23
24 cargoHash = "sha256-BSsqI3zo7eC4zGIsU1xScnjWNwt4iTqs4SWzbOUt7Iw=";
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}