about summary refs log tree commit diff stats
path: root/pkgs/porto/default.nix
blob: 04c19c528f80a160192b4d1b6c4e34b6aa92fa4a (plain)
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
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "porto";
  version = "0.7.0";

  src = fetchFromGitHub {
    owner = "jcchavezs";
    repo = "porto";
    rev = "v${version}";
    hash = "sha256-YFhUjDv8b7i+ezktdAn37SB8bwhpxUyXtNWbEBinX90=";
  };

  vendorHash = "sha256-MTuwMP3pnaIBt3FPNPJNaEncpTBVTlTxScQuRKj5b/U=";
  subPackages = [ "cmd/porto" ];

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    description = "Tool for adding vanity import to Go code";
    homepage = "https://github.com/jcchavezs/porto";
    license = licenses.asl20;
    maintainers = with maintainers; [ alanpearce ];
    mainProgram = "porto";
  };
}