nixpkgs/pkgs/development/tools/github/bump/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
723 B
Nix
Raw Normal View History

2020-09-21 15:15:08 +00:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "bump";
2022-01-11 02:49:01 +00:00
version = "0.2.3";
2020-09-21 15:15:08 +00:00
src = fetchFromGitHub {
owner = "mroth";
repo = pname;
rev = "v${version}";
2022-01-11 02:49:01 +00:00
sha256 = "sha256-tgTG/QlDxX1Ns0WpcNjwr/tvsdtgap7RcxX/JuYcxw8=";
2020-09-21 15:15:08 +00:00
};
2022-01-31 01:38:14 +00:00
vendorSha256 = "sha256-ZeKokW6jMiKrXLfnxwEBF+wLuFQufnPUnA/EnuhvrwI=";
2020-09-21 15:15:08 +00:00
doCheck = false;
2021-08-26 06:45:51 +00:00
ldflags = [
"-X main.buildVersion=${version}" "-X main.buildCommit=${version}" "-X main.buildDate=1970-01-01"
2020-09-21 15:15:08 +00:00
];
meta = with lib; {
license = licenses.mit;
homepage = "https://github.com/mroth/bump";
description = "CLI tool to draft a GitHub Release for the next semantic version";
maintainers = with maintainers; [ doronbehar ];
};
}