Merge pull request #276698 from jakuzure/git-releaser-init

git-releaser: init at 0.1.1
This commit is contained in:
OTABI Tomoya 2023-12-28 16:41:58 +09:00 committed by GitHub
commit 9c42d25632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,32 @@
{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
}:
buildGoModule rec {
pname = "git-releaser";
version = "0.1.1";
src = fetchFromGitHub {
owner = "git-releaser";
repo = "git-releaser";
rev = "refs/tags/v${version}";
hash = "sha256-owIXiLLnCkda9O0C0wW0nEuwXC4hipNpR9fdFqgbWts=";
};
vendorHash = "sha256-dTyHKSCEImySu6Tagqvh6jDvgDbOTL0fMUOjFBpp64k=";
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";
};
}