about summary refs log tree commit diff
path: root/pkgs/tools/misc/portal/default.nix
blob: 978d3632da1f75dd0bd140321278bb57937111c3 (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
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "portal";
  version = "1.2.3";

  src = fetchFromGitHub {
    owner = "SpatiumPortae";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-hGB82a2WirUL1Tph6EuoITOQGYA0Lo4zOeKPC46B5Qk=";
  };

  vendorHash = "sha256-SbNFi5DE3zhTUw0rsX6n+dpYcdDsaDh+zVUrfxgo/4g=";
  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 ];
  };
}