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

33 lines
771 B
Nix
Raw Normal View History

2020-03-20 09:23:24 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "goreleaser";
2022-01-11 11:42:12 +00:00
version = "1.2.5";
2020-03-20 09:23:24 +00:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
2022-01-11 11:42:12 +00:00
sha256 = "sha256-FIUp3l3CwtQeFvdXqY3HoaARBmlXqNfl7zUz3ND8ixI=";
2020-03-20 09:23:24 +00:00
};
2022-01-11 11:42:12 +00:00
vendorSha256 = "sha256-f7EKdffnDUzzyueMM8pHfU3XdQNcIrFf9miVsVTIdM8=";
2020-03-20 09:23:24 +00:00
2021-08-26 07:45:51 +01:00
ldflags = [
2020-10-19 04:29:50 +01: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";
maintainers = with maintainers; [ c0deaddict endocrimes sarcasticadmin ];
2020-03-20 09:23:24 +00:00
license = licenses.mit;
};
}