@@ -0,0 +1,33 @@
1+{ lib, buildGoModule, fetchFromGitHub }:
2+
3+buildGoModule rec {
4+ pname = "goreleaser";
5+ version = "0.145.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "goreleaser";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "1w2mbyywr3zsn068cshkx502x0zrxrbrgaw23x4spfri0nk6v4fd";
12+ };
13+
14+ vendorSha256 = "0drk58bhcvx75cd6s0xnyh6swph1vlvpzp2nngr7agvjdcrbady6";
15+
16+ buildFlagsArray = [
17+ "-ldflags="
18+ "-s"
19+ "-w"
20+ "-X main.version=${version}"
21+ "-X main.builtBy=nixpkgs"
22+ ];
23+
24+ # tests expect the source files to be a build repo
25+ doCheck = false;
26+
27+ meta = with lib; {
28+ description = "Deliver Go binaries as fast and easily as possible";
29+ homepage = "https://goreleaser.com";
30+ maintainers = with maintainers; [ c0deaddict endocrimes sarcasticadmin ];
31+ license = licenses.mit;
32+ };
33+}