792b51d22f
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
32 lines
771 B
Nix
32 lines
771 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "goreleaser";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "goreleaser";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-H7LgADzES5Zi5+lcooix+WCjDxqkThIIGvwa8IiHDHo=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-4Hb+SmmPk4+c4QoOJADinKGD1xd0RYzn2wniuBxatAw=";
|
|
|
|
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;
|
|
};
|
|
}
|