From 87b7252f8414317a65355fdb69f5819571b15287 Mon Sep 17 00:00:00 2001 From: Raven Hallsby Date: Sat, 25 Oct 2025 12:24:27 -0500 Subject: [PATCH] gnu: Add go-github-com-gkampitakis-ciinfo. * gnu/packages/golang-check.scm (go-github-com-gkampitakis-ciinfo) (go-ciinfo): New variables. Change-Id: Ib1001012ff0ac424600a4713122807be29bde19b Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-check.scm | 52 +++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 966851d957a6b72c496d89399aa537ee0f0a0de7..7488498afbfc6c145ace36340c8c865e144a9760 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -824,6 +824,44 @@ tests.") tests.") (license license:expat))) +(define-public go-github-com-gkampitakis-ciinfo + (package + (name "go-github-com-gkampitakis-ciinfo") + (version "0.3.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gkampitakis/ciinfo") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14pkbqirxsp14lb7yazpqrvlhm26kc7pwn3ldi8wxnfzscqvhba9")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/gkampitakis/ciinfo" + #:unpack-path "github.com/gkampitakis/ciinfo" + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'generate-vendors-constants + (lambda* (#:key unpack-path #:allow-other-keys) + ;; Matches the "make compile-constants" body + (with-directory-excursion (string-append "src/" unpack-path) + (install-file "vendors.go" "compile-constants/") + (substitute* "compile-constants/vendors.go" + (("ciinfo") "main")))))))) + (home-page "https://github.com/gkampitakis/ciinfo") + (synopsis "Get details about the current Continuous Integration environment") + (description + "This package provides @code{ciinfo}, a tool to get details about the +current Continuous Integration environment, including checking if running in a +CI system, which CI system, build id, and more. + +This is a reimplementation of @uref{https://github.com/watson/ci-info, +ci-info} in Go.") + (license license:expat))) + (define-public go-github-com-go-playground-assert-v2 (package (name "go-github-com-go-playground-assert-v2") @@ -3220,6 +3258,20 @@ thoroughly ;;; Executables: ;;; +(define-public go-ciinfo + (package/inherit go-github-com-gkampitakis-ciinfo + (name "go-ciinfo") + (arguments + (substitute-keyword-arguments + (package-arguments go-github-com-gkampitakis-ciinfo) + ((#:tests? _ #t) #f) + ((#:install-source? _ #t) #f) + ((#:import-path _) "github.com/gkampitakis/ciinfo/ciinfo"))) + (native-inputs + (package-propagated-inputs go-github-com-gkampitakis-ciinfo)) + (propagated-inputs '()) + (inputs '()))) + (define-public go-ginkgo (package/inherit go-github-com-onsi-ginkgo-v2 (name "ginkgo")