2020-03-20 09:23:24 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "goreleaser";
|
2021-09-15 12:54:35 +00:00
|
|
|
version = "0.179.0";
|
2020-03-20 09:23:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "goreleaser";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-15 12:54:35 +00:00
|
|
|
sha256 = "sha256-E8a1S6CPPd8xsdt/tu1VmWxQCMUp8dEPB5H2IL4jj1k=";
|
2020-03-20 09:23:24 +00:00
|
|
|
};
|
|
|
|
|
2021-09-15 12:54:35 +00:00
|
|
|
vendorSha256 = "sha256-qF7mULIQrFs/SAMm/dUcYPs1urLKKg6w7hgkuJ2AivQ=";
|
2020-03-20 09:23:24 +00:00
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
2020-10-19 03:29:50 +00: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 09:23:24 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Deliver Go binaries as fast and easily as possible";
|
|
|
|
homepage = "https://goreleaser.com";
|
2020-10-24 00:46:13 +00:00
|
|
|
maintainers = with maintainers; [ c0deaddict endocrimes sarcasticadmin ];
|
2020-03-20 09:23:24 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|