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

34 lines
797 B
Nix
Raw Normal View History

2020-03-20 02:23:24 -07:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "goreleaser";
2021-04-25 17:29:06 -07:00
version = "0.164.0";
2020-03-20 02:23:24 -07:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
2021-04-25 17:29:06 -07:00
sha256 = "sha256-DGiA9Ww/8sHNRgZ7nOx60YVZaxYBH5GJf6KqilwRKrE=";
2020-03-20 02:23:24 -07:00
};
2021-04-25 17:29:06 -07:00
vendorSha256 = "sha256-y7GesJU2kDtC5S6rnduDX9gcXakNIR8MdLuPW2m1QWs=";
2020-03-20 02:23:24 -07:00
2020-10-18 20:29:50 -07: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 02:23:24 -07: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 02:23:24 -07:00
license = licenses.mit;
};
}