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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
787 B
Nix
Raw Normal View History

2020-03-20 09:23:24 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "goreleaser";
version = "1.15.2";
2020-03-20 09:23:24 +00:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
sha256 = "sha256-yoio22D8k4rO8lRLoGSJGl8raMVO9fOGHFobAZngcxw=";
2020-03-20 09:23:24 +00:00
};
vendorSha256 = "sha256-RSAT9VtsdXvWDhIZlOjwCF9nhONPXCSEaxVlgW14IKA=";
2020-03-20 09:23:24 +00:00
2021-08-26 06:45:51 +00:00
ldflags = [
2020-10-19 03:29:50 +00: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";
2022-04-16 04:06:34 +00:00
maintainers = with maintainers; [ c0deaddict endocrimes sarcasticadmin techknowlogick ];
2020-03-20 09:23:24 +00:00
license = licenses.mit;
};
}