base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / po / portal / package.nix
blob221526b7f34238e60e07326bd5d7a109731e29d1
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "portal";
5   version = "1.2.3";
7   src = fetchFromGitHub {
8     owner = "SpatiumPortae";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-hGB82a2WirUL1Tph6EuoITOQGYA0Lo4zOeKPC46B5Qk=";
12   };
14   vendorHash = "sha256-SbNFi5DE3zhTUw0rsX6n+dpYcdDsaDh+zVUrfxgo/4g=";
15   subPackages = [ "cmd/portal/" ];
17   ldflags = [ "-s -X main.version=${version}" ]; # from: https://github.com/SpatiumPortae/portal/blob/master/Makefile#L3
19   meta = with lib; {
20     description = "Quick and easy command-line file transfer utility from any computer to another";
21     homepage = "https://github.com/SpatiumPortae/portal";
22     changelog = "https://github.com/SpatiumPortae/portal/tag/v${version}";
23     license = licenses.mit;
24     maintainers = with maintainers; [ tennox ];
25     mainProgram = "portal";
26   };