2020-03-20 09:23:24 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "goreleaser";
|
2023-03-22 07:13:52 +00:00
|
|
|
version = "1.16.2";
|
2020-03-20 09:23:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "goreleaser";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-22 07:13:52 +00:00
|
|
|
sha256 = "sha256-BHx44ux+g642aTaV0Wlw/uz/3Vy4MJfuNffgqGDsb6I=";
|
2020-03-20 09:23:24 +00:00
|
|
|
};
|
|
|
|
|
2023-03-14 01:16:44 +00:00
|
|
|
vendorHash = "sha256-eVuEyQCO2/gufMJp8eUpC82wdJbbJsMKR1ZGv96C9mI=";
|
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";
|
2023-03-07 17:56:48 +00:00
|
|
|
maintainers = with maintainers; [ c0deaddict endocrimes sarcasticadmin techknowlogick developer-guy caarlos0 ];
|
2020-03-20 09:23:24 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|