nixpkgs/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-30 21:32:06 +01:00
version = "1.1.0";
2020-03-20 10:23:24 +01:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
2021-11-30 21:32:06 +01:00
sha256 = "1rk2n1c2ia8kwqvbfnhsf3jbbi1qzndniq7cxs8iy9drn4adl7gv";
2020-03-20 10:23:24 +01:00
};
2021-11-30 21:32:06 +01:00
vendorSha256 = "1hm5ya240vpfmgc8y6qv4gp4gbcqydk7hg05fwr7nzc2apj5fv6a";
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;
};
}