From 9d90b3816dac23df614f41079fd7c719c2209f42 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 8 Jul 2025 18:56:32 +0100 Subject: [PATCH] gnu: Add go-github-com-openfga-go-sdk. * gnu/packages/golang-web.scm (go-github-com-openfga-go-sdk): New variable. Change-Id: I212755fbe4233013186995858c5340e9501e596b --- gnu/packages/golang-web.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index e17f5af2137975c98b8f1e6cac25a98bc81f46eb..c2342cc05deff4725c4ead25c5240b4aeafd5860 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -6966,6 +6966,43 @@ JSON tools. @code{OjG} is optimized to processing huge data sets where data does not necessarily conform to a fixed structure.") (license license:expat))) +(define-public go-github-com-openfga-go-sdk + (package + (name "go-github-com-openfga-go-sdk") + (version "0.7.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/openfga/go-sdk") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0z30xiqbvgi9ks0qymyw2k2pn0s07nq05nq75h924nyagm3axz0v")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/openfga/go-sdk" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-example + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "example"))))))) + (native-inputs + (list go-github-com-jarcoal-httpmock)) + (propagated-inputs + (list go-github-com-sourcegraph-conc + go-go-opentelemetry-io-otel + go-go-opentelemetry-io-otel-metric + go-golang-org-x-sync)) + (home-page "https://github.com/openfga/go-sdk") + (synopsis "OpenFGA SDK for Golang") + (description + "This package provides a wrapper around the @url{OpenFGA API, +https://openfga.dev/api} definition.") + (license license:asl2.0))) + (define-public go-github-com-opentracing-contrib-go-stdlib (package (name "go-github-com-opentracing-contrib-go-stdlib")