Merge pull request #101049 from sarcasticadmin/sa/init-goreleaser

This commit is contained in:
Sandro 2020-11-27 02:10:22 +01:00 committed by GitHub
commit 81fb32ae0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "goreleaser";
version = "0.145.0";
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
sha256 = "1w2mbyywr3zsn068cshkx502x0zrxrbrgaw23x4spfri0nk6v4fd";
};
vendorSha256 = "0drk58bhcvx75cd6s0xnyh6swph1vlvpzp2nngr7agvjdcrbady6";
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;
};
}

View file

@ -4321,6 +4321,8 @@ in
gopro = callPackage ../tools/video/gopro { };
goreleaser = callPackage ../tools/misc/goreleaser { };
goreplay = callPackage ../tools/networking/goreplay { };
gource = callPackage ../applications/version-management/gource { };