From ed2851874a3344388e12f7f56b662458f8543a90 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 1 Jan 2025 15:27:48 +0000 Subject: [PATCH] gnu: Add go-github-com-ettle-strcase. * gnu/packages/golang-xyz.scm (go-github-com-ettle-strcase): New variable. Change-Id: If03c617cc98869a87397a01f48a41600d4a6c11f --- gnu/packages/golang-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 32e4caa8f8..2b4dc18eda 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4090,6 +4090,36 @@ and @code{io.ReadCloser}) with overwrites " This package is a fork of dlclark/regexp2 providing a more similar API to regexp.")))) +(define-public go-github-com-ettle-strcase + (package + (name "go-github-com-ettle-strcase") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ettle/strcase") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gg3zxbbp3vfskzg2dl1s1agjn34dw14282fj28g9nrwqbbq854x")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/ettle/strcase" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-benchmark + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "benchmark"))))))) + (home-page "https://github.com/ettle/strcase") + (synopsis "String naming convention style library") + (description + "Package strcase is a package for converting strings into various word +cases (e.g. snake_case, camelCase, kebab-case, etc).") + (license license:expat))) + (define-public go-github-com-expr-lang-expr (package (name "go-github-com-expr-lang-expr")