2020-11-30 08:33:03 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "goreleaser";
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "0.165.0";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "goreleaser";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-28 09:39:13 +00:00
|
|
|
sha256 = "sha256-xffxpEOEWnh3FtK5JYX38kMkKWQHWrdAXShbVDrW+lE=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
vendorSha256 = "sha256-9CO5dHp/RHygp4YXCJM/XPvFcNQGHu1Gx3bhxlQ0Quk=";
|
2020-11-30 08:33:03 +00: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;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Deliver Go binaries as fast and easily as possible";
|
|
|
|
homepage = "https://goreleaser.com";
|
|
|
|
maintainers = with maintainers; [ c0deaddict endocrimes sarcasticadmin ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|