Skip to content

Commit

Permalink
hamtransfer: init at unstable-2024-04-05
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewCroughan authored and ehmry committed Apr 29, 2024
1 parent 5467a90 commit e977cca
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/by-name/ha/hamtransfer/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 ];
};
}

0 comments on commit e977cca

Please sign in to comment.