2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "git-releaser";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.1.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "git-releaser";
|
|
|
|
repo = "git-releaser";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-27xUsqFuAu02jYLi3LiTnVjifqZIr39lPwMfJea7a4A=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
vendorHash = "sha256-uKS7MwCak/CjnMjzFKqYypBVZFl+3hD1xVaOPvQV9E0=";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
ldflags = [ "-X main.version=${version}" ];
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for creating Git releases based on Semantic Versioning";
|
|
|
|
homepage = "https://github.com/git-releaser/git-releaser";
|
|
|
|
changelog = "https://github.com/git-releaser/git-releaser/releases/tag/v${version}";
|
|
|
|
maintainers = with maintainers; [ jakuzure ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
mainProgram = "git-releaser";
|
|
|
|
};
|
|
|
|
}
|