about summary refs log tree commit diff
path: root/pkgs/by-name/ha/hamtransfer/package.nix
blob: 49dbe40cd988b3f81ececa6e265dabf27ec0e33c (plain) (blame)
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
35
36
37
38
39
40
41
42
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, protobuf
, sqlite
}:

rustPlatform.buildRustPackage {
  pname = "hamtransfer";
  version = "unstable-2024-04-05";

  src = fetchFromGitHub {
    owner = "ThomasHabets";
    repo = "hamtransfer";
    rev = "6b0ac28e0b8cdcc3ac9aba9cd6115e48c4f26c1e";
    hash = "sha256-yZwbFjs+mnTbU+75dwRhVjvXXoHQuzgE9GlliUQZV1s=";
  };

  cargoHash = "sha256-lFzsURGhEcuTL6dHt4/l54eT3mD7H8tsW/+unisdjKY=";

  nativeBuildInputs = [
    pkg-config
    protobuf
  ];

  buildInputs = [
    sqlite
  ];

  postInstall = ''
    mv $out/bin/downloader $out/bin/hamtransfer-downloader
    mv $out/bin/uploader $out/bin/hamtransfer-uploader
  '';

  meta = with lib; {
    description = "Tool for transferring files over amateur radio using modern techniques";
    homepage = "https://github.com/ThomasHabets/hamtransfer";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ matthewcroughan sarcasticadmin pkharvey ];
  };
}