From bfc731d3c18e8fb273c0385dc1d1eaf9cadea1bf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 30 Nov 2025 21:49:42 +0000 Subject: [PATCH] gnu: Add go-github-com-winfsp-cgofuse. * gnu/packages/golang-xyz.scm (go-github-com-winfsp-cgofuse): New variable. Change-Id: Ic807845a434faf413d7edf500b5b1cc2f815833c --- gnu/packages/golang-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f59cfed0b8e..d50a121c5b9 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -23031,6 +23031,45 @@ XOR, as in kademlia.") @code{MemoryInfo}.") (license license:expat))) +(define-public go-github-com-winfsp-cgofuse + (package + (name "go-github-com-winfsp-cgofuse") + (version "1.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/winfsp/cgofuse") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0wqxn3plbp6rabmyfyxamjl0ilm0n5pkiwhsvnbrx9pcpmlc1b0p")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:tests? #f ;XXX: panic: cgofuse: cannot find FUSE + #:import-path "github.com/winfsp/cgofuse" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (delete-file-recursively + (string-append "src/" import-path "/examples"))))))) + (propagated-inputs + (list fuse fuse-2)) + (home-page "https://github.com/winfsp/cgofuse") + (synopsis "Cross-platform FUSE library for Golang") + (description + "Cgofuse is a cross-platform FUSE library for Go. It is supported on +multiple platforms and can be ported to any platform that has a FUSE +implementation. It has @url{https://pkg.go.dev/cmd/cgo, cgo}, +@url{https://go.dev/wiki/WindowsDLLs, !cgo} (aka \"nocgo\") and +@url{https://github.com/libfuse/libfuse/tree/fuse-2.9.9, FUSE} (aka +\"FUSE2\"), @url{https://github.com/libfuse/libfuse, FUSE3} variants depending +on the platform.") + (license license:expat))) + (define-public go-github-com-workiva-go-datastructures (package (name "go-github-com-workiva-go-datastructures")