3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/goreleaser/default.nix

34 lines
788 B
Nix
Raw Normal View History

2020-03-20 09:23:24 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "goreleaser";
2020-10-19 04:29:50 +01:00
version = "0.145.0";
2020-03-20 09:23:24 +00:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
2020-10-19 04:29:50 +01:00
sha256 = "1w2mbyywr3zsn068cshkx502x0zrxrbrgaw23x4spfri0nk6v4fd";
2020-03-20 09:23:24 +00:00
};
2020-10-19 04:29:50 +01:00
vendorSha256 = "0drk58bhcvx75cd6s0xnyh6swph1vlvpzp2nngr7agvjdcrbady6";
2020-03-20 09:23:24 +00:00
2020-10-19 04:29:50 +01:00
buildFlagsArray = [
"-ldflags="
"-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-19 04:29:50 +01:00
maintainers = with maintainers; [ c0deaddict sarcasticadmin ];
2020-03-20 09:23:24 +00:00
license = licenses.mit;
};
}