depot/third_party/nixpkgs/pkgs/tools/misc/goreleaser/default.nix
Default email ec92d4d331 Project import generated by Copybara.
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
2021-05-28 11:39:13 +02:00

33 lines
797 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "goreleaser";
version = "0.165.0";
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
sha256 = "sha256-xffxpEOEWnh3FtK5JYX38kMkKWQHWrdAXShbVDrW+lE=";
};
vendorSha256 = "sha256-9CO5dHp/RHygp4YXCJM/XPvFcNQGHu1Gx3bhxlQ0Quk=";
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;
};
}