From 77b2fca741af3afc04d2fac60398d346f613e1ec Mon Sep 17 00:00:00 2001 From: Ray Miller Date: Thu, 5 Dec 2024 18:35:43 +0000 Subject: [PATCH] Add git-semver package. --- ray1729/packages/utils.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ray1729/packages/utils.scm diff --git a/ray1729/packages/utils.scm b/ray1729/packages/utils.scm new file mode 100644 index 0000000..4d8eba6 --- /dev/null +++ b/ray1729/packages/utils.scm @@ -0,0 +1,37 @@ +(define-module (ray1729 packages utils) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system go) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (gnu packages golang) + #:use-module (gnu packages golang-xyz)) + +(define-public git-semver + (package + (name "git-semver") + (version "0.2.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ray1729/git-semver") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01yjlvvgigby8a8d0xpzn17s7zwz7pqfzclkqkv6f789krcmp9iw")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ray1729/git-semver" + #:install-source? #f)) + (native-inputs (list go-github-com-urfave-cli-v2 + go-github-com-masterminds-semver-v3)) + (home-page "https://github.com/ray1729/git-semver") + (synopsis "Git custom command for managing semantic version tags") + (description + "This package provides the git-semver custom command for managing +semantic version tags in a git repository. It provides a convenient way to create +a tag for the next major/minor/patch release, and also handles pre-release and build +components of the tag. This is a port to golang of Mark Challoner's bash implementation +and closely follows the command-line usage of that version.") + (license license:expat)))