2023-04-29 16:46:19 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "portal";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.2.3";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SpatiumPortae";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-hGB82a2WirUL1Tph6EuoITOQGYA0Lo4zOeKPC46B5Qk=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
vendorHash = "sha256-SbNFi5DE3zhTUw0rsX6n+dpYcdDsaDh+zVUrfxgo/4g=";
|
2023-04-29 16:46:19 +00:00
|
|
|
subPackages = [ "cmd/portal/" ];
|
|
|
|
|
|
|
|
ldflags = [ "-s -X main.version=${version}" ]; # from: https://github.com/SpatiumPortae/portal/blob/master/Makefile#L3
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A quick and easy command-line file transfer utility from any computer to another";
|
|
|
|
homepage = "https://github.com/SpatiumPortae/portal";
|
|
|
|
changelog = "https://github.com/SpatiumPortae/portal/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tennox ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "portal";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
}
|