2020-03-20 09:23:24 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "goreleaser";
|
2020-12-04 13:01:56 +00:00
|
|
|
version = "0.149.0";
|
2020-03-20 09:23:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "goreleaser";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-12-04 13:01:56 +00:00
|
|
|
sha256 = "14yvxnl2ap1hizpk3pfzlh36399df1z2zgsc63qdh1h4ixyav6cy";
|
2020-03-20 09:23:24 +00:00
|
|
|
};
|
|
|
|
|
2020-11-30 21:12:27 +00:00
|
|
|
vendorSha256 = "17l15z2wyxzh7h7hvb1fysdnyg8wr8ww827vvmki73s1plfgr80d";
|
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-24 01:46:13 +01:00
|
|
|
maintainers = with maintainers; [ c0deaddict endocrimes sarcasticadmin ];
|
2020-03-20 09:23:24 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|