summaryrefslogtreecommitdiff
path: root/pkgs/by-name/cn/cnsprcy/package.nix
blob: 283459e487a2529578ce5be722f781ca273946ff (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  fetchFromSourcehut,
  rustPlatform,
  sqlite,
}:

rustPlatform.buildRustPackage {
  pname = "cnsprcy";
  version = "0.2.0";

  src = fetchFromSourcehut {
    owner = "~xaos";
    repo = "cnsprcy";
    rev = "v0.2.0";
    hash = "sha256-f+DauSU4bT3EljY8/ig7jLnUgyDPEo2NSBQcPN0iKx0=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-lPTufjKOXMvPy+cP1UyVCTfRXkOmzZqDR6yraIgk+Dg=";

  RUSTC_BOOTSTRAP = true;

  buildInputs = [ sqlite ];

  meta = {
    description = "End to end encrypted connections between trusted devices";
    homepage = "https://git.sr.ht/~xaos/cnsprcy";
    license = lib.licenses.gpl3;
    maintainers = with lib.maintainers; [ supinie ];
    mainProgram = "cnspr";
    platforms = lib.platforms.linux;
  };
}