nixpkgs-suyu/pkgs/tools/misc/goreleaser/default.nix

33 lines
773 B
Nix
Raw Normal View History

2020-03-20 10:23:24 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "goreleaser";
2021-11-03 05:14:59 +01:00
version = "0.184.0";
2020-03-20 10:23:24 +01:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
2021-11-03 05:14:59 +01:00
sha256 = "sha256-ujhYcihLJh52cURvQ7p1B4fZTDx8cq3WA4RfKetWEBo=";
2020-03-20 10:23:24 +01:00
};
2021-11-03 05:14:59 +01:00
vendorSha256 = "sha256-J9lAkmLDowMmbwcHV2t9/7iVzkZRnF60/4PSRS8+4Sg=";
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";
maintainers = with maintainers; [ c0deaddict endocrimes sarcasticadmin ];
2020-03-20 10:23:24 +01:00
license = licenses.mit;
};
}