From 5b4396798da6b6dcd7aab1c604e2c4f9f63e7d81 Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Fri, 17 Oct 2025 14:42:05 +0000 Subject: [PATCH] gnu: Add go-modernc-org-libc. * gnu/packages/golang-xyz.scm (go-modernc-org-libc): New variable. Change-Id: Id6927a67e5efed071b952b36b025e6a788d0b259 Change-Id: Ibc0070816161dc7c6250f289ce139011f039ed62 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 3c95cf279bbab5dc872e6042cdf511d0ddc27fd0..7a1d68a11fa6858cd03f1dd4a9bb0a6a8d5d80b4 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -24437,6 +24437,41 @@ recognizers) at run time.") (description "Package memory implements a memory allocator.") (license license:bsd-3))) +(define-public go-modernc-org-libc + (package + (name "go-modernc-org-libc") + (version "1.66.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/cznic/libc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01xj0flqcy5sx75ddcgjvwilbi87gn9wy33k76p88m5f820ldf4d")))) + (build-system go-build-system) + (arguments + (list + #:import-path "modernc.org/libc" + ;; Tests require modernc.org/ccgo/v4/lib, which is not packaged yet + #:tests? #f)) + (propagated-inputs + (list go-github-com-dustin-go-humanize + go-github-com-google-uuid + go-github-com-ncruces-go-strftime + go-github-com-remyoudompheng-bigfft + go-golang-org-x-exp + go-golang-org-x-sys + go-modernc-org-mathutil + go-modernc-org-memory)) + (home-page "https://modernc.org/libc") + (synopsis "C standard library implementation in Go") + (description + "Package libc provides a C standard library implementation for use +with ccgo-generated code.") + (license license:bsd-3))) + (define-public go-modernc-org-opt (package (name "go-modernc-org-opt")