summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Scherer <roman@burningswell.com>2025-12-24 17:18:55 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-04-06 21:32:43 +0100
commit613cdc4b46a3c01819e2e3fd8a278a6786bc9ddb (patch)
tree1c24526d6dea85081c58627fec7bf1b46db10ead
parent62058f94226c1ac643e5f13177906bc527f2b30d (diff)
gnu: Add go-github-com-mattn-go-localereader.
* gnu/packages/golang-xyz.scm (go-github-com-mattn-go-localereader): New variable. Relates-to: https://codeberg.org/guix/guix/issues/5190 Change-Id: I4fc964e87ad2c57342ca9e172ac10be8be414bb3 Reviewed-by: Johannes Christ <jc@jchri.st> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/golang-xyz.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 5f818914ed9..5641b933422 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -17482,6 +17482,34 @@ to handle ANSI color escapes on Windows.")
whether a file descriptor points to a terminal and the type of the terminal.")
(license license:expat)))
+(define-public go-github-com-mattn-go-localereader
+ (package
+ (name "go-github-com-mattn-go-localereader")
+ (version "0.0.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mattn/go-localereader")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0wcgqnpjk0drm7swc0q27j4r5ab63mhz29dgbjdnyn4sw68rqm96"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/mattn/go-localereader"
+ ;; Tests reference NewCodePageDecoder which is only defined in
+ ;; localereader_windows.go and doesn't compile on non-Windows.
+ #:tests? #f))
+ (home-page "https://github.com/mattn/go-localereader")
+ (synopsis "CodePage decoder for Windows")
+ (description
+ "This package provides a CodePage decoder for Windows, enabling Go programs
+to read locale-specific character encodings such as Shift JIS. It handles
+locale reading differently across Unix and Windows systems.")
+ (license license:expat)))
+
(define-public go-github-com-mattn-go-pointer
(package
(name "go-github-com-mattn-go-pointer")