2ea8997135
GitOrigin-RevId: 5bc8b980b9178ef9a4bb622320cf34e59ea2ea10
33 lines
797 B
Nix
33 lines
797 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "goreleaser";
|
|
version = "0.175.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "goreleaser";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-4mdQTcaIIGNZ0pgVNfy3LBtc1te2dpkMA29nAUzg9aE=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-7I/955dPHV8Rkp6VevkebkZaNtSlbzIsGc8qFjtcMXk=";
|
|
|
|
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;
|
|
};
|
|
}
|