nixpkgs/pkgs/tools/misc/goreleaser/default.nix

34 lines
797 B
Nix
Raw Normal View History

2020-03-20 12:23:24 +03:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "goreleaser";
2021-07-27 05:40:46 +03:00
version = "0.174.1";
2020-03-20 12:23:24 +03:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
2021-07-27 05:40:46 +03:00
sha256 = "sha256-oHH5/w1G0xlhmnUe6/qS0++qtBdDd6dUw6JfWYAWIh8=";
2020-03-20 12:23:24 +03:00
};
2021-07-27 05:40:46 +03:00
vendorSha256 = "sha256-P91wi2Fqo9+Yccqoqmsx0IbjSGUpiKIh7uOsgsR9c+0=";
2020-03-20 12:23:24 +03:00
2020-10-19 06:29:50 +03:00
buildFlagsArray = [
"-ldflags="
"-s"
"-w"
"-X main.version=${version}"
"-X main.builtBy=nixpkgs"
];
# tests expect the source files to be a build repo
doCheck = false;
2020-03-20 12:23:24 +03:00
meta = with lib; {
description = "Deliver Go binaries as fast and easily as possible";
homepage = "https://goreleaser.com";
maintainers = with maintainers; [ c0deaddict endocrimes sarcasticadmin ];
2020-03-20 12:23:24 +03:00
license = licenses.mit;
};
}