2020-03-20 10:23:24 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "goreleaser";
|
2022-05-19 01:50:20 +02:00
|
|
|
version = "1.9.0";
|
2020-03-20 10:23:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "goreleaser";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-05-19 01:50:20 +02:00
|
|
|
sha256 = "sha256-R20mzPpbFDUw/wrif3ZJCt2wgmV+yqSkGaxyuw/9z0E=";
|
2020-03-20 10:23:24 +01:00
|
|
|
};
|
|
|
|
|
2022-05-19 01:50:20 +02:00
|
|
|
vendorSha256 = "sha256-+Rj2hb9Sul5ntVGfuWf7JibKdG03zALiMWaaNTJFC8k=";
|
2020-03-20 10:23:24 +01:00
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [
|
2020-10-19 05:29:50 +02:00
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
"-X main.builtBy=nixpkgs"
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests expect the source files to be a build repo
|
|
|
|
doCheck = false;
|
2020-03-20 10:23:24 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Deliver Go binaries as fast and easily as possible";
|
|
|
|
homepage = "https://goreleaser.com";
|
2022-04-16 06:06:34 +02:00
|
|
|
maintainers = with maintainers; [ c0deaddict endocrimes sarcasticadmin techknowlogick ];
|
2020-03-20 10:23:24 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|