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

33 lines
771 B
Nix
Raw Normal View History

2020-03-20 09:23:24 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "goreleaser";
2022-02-01 07:25:23 +00:00
version = "1.4.1";
2020-03-20 09:23:24 +00:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
2022-02-01 07:25:23 +00:00
sha256 = "sha256-pEZ7H7WOPpzCGMLPgyfVJudamSWynoB5qnZSbVXj5uk=";
2020-03-20 09:23:24 +00:00
};
2022-02-01 07:25:23 +00:00
vendorSha256 = "sha256-7c5bd5pEulcr1mpdEUr2tDZNwjRkjqXOLiu+2x5/uFs=";
2020-03-20 09:23:24 +00:00
2021-08-26 07:45:51 +01:00
ldflags = [
2020-10-19 04:29:50 +01: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 09:23:24 +00: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 09:23:24 +00:00
license = licenses.mit;
};
}