4bac34ead1
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
32 lines
787 B
Nix
32 lines
787 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "goreleaser";
|
|
version = "1.15.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "goreleaser";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-cLbAxF1g+N6XcpZS5+jDTykkbXoK7seKEmhCkp6noo8=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-VpmSTNO3XgZpOu2OToq5HUJTagX9Hg7a65Cqgr8IlkU=";
|
|
|
|
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 techknowlogick ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|