sharlatan pushed a commit to branch go-team
in repository guix.
commit a50614a910884d8eb7b113dd0106a88eb36a668d
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Feb 22 15:00:45 2025 +0000
gnu: go-github-com-stevedonovan-luar: Move to music.
* gnu/packages/golang.scm (go-github-com-stevedonovan-luar): Move from
here ...
* gnu/packages/music.scm: ... to here.
Change-Id: I22182fc66196e907f87081cb39405f81f8edb84f
---
gnu/packages/golang.scm | 41 -----------------------------------------
gnu/packages/music.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 41 deletions(-)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 2fc8cc5c10..df3c8e9124 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1170,47 +1170,6 @@ regexps. This breaks compatibility with Lua, but
Unicode support breaks it
anyways and Go regexps are more powerful.")
(license license:expat))))
-(define-public go-github-com-stevedonovan-luar
- (let ((commit "22d247e5366095f491cd83edf779ee99a78f5ead")
- (revision "0"))
- (package
- (name "go-github-com-stevedonovan-luar")
- (version (git-version "0.0.0" revision commit))
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url
- "https://github.com/stevedonovan/luar")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1acjgw9cz1l0l9mzkyk7irz6cfk31wnxgbwa805fvm1rqcjzin2c"))))
- (build-system go-build-system)
- (native-inputs
- (list go-github-com-aarzilli-golua))
- (arguments
- `(#:tests? #f ; Upstream tests are broken.
- #:import-path "github.com/stevedonovan/luar"))
- (home-page "https://github.com/stevedonovan/luar")
- (synopsis "Lua reflection bindings for Go")
- (description "Luar is designed to make using Lua from Go more
-convenient. Go structs, slices and maps can be automatically converted to Lua
-tables and vice-versa. The resulting conversion can either be a copy or a
-proxy. In the latter case, any change made to the result will reflect on the
-source.
-
-Any Go function can be made available to Lua scripts, without having to write
-C-style wrappers.
-
-Luar support cyclic structures (lists, etc.).
-
-User-defined types can be made available to Lua as well: their exported
-methods can be called and usual operations such as indexing or arithmetic can
-be performed.")
- (license license:expat))))
-
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 228e8f6bc6..5568c7eadb 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -6373,6 +6373,49 @@ discard bad quality ones.
(description "Go wrapper for taglib")
(license license:unlicense))))
+;; demlo is only one user of this package, keep it next to it to prevent
+;; importing lua module into golang-xyz.
+(define-public go-github-com-stevedonovan-luar
+ (let ((commit "22d247e5366095f491cd83edf779ee99a78f5ead")
+ (revision "0"))
+ (package
+ (name "go-github-com-stevedonovan-luar")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url
+ "https://github.com/stevedonovan/luar")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1acjgw9cz1l0l9mzkyk7irz6cfk31wnxgbwa805fvm1rqcjzin2c"))))
+ (build-system go-build-system)
+ (native-inputs
+ (list go-github-com-aarzilli-golua))
+ (arguments
+ `(#:tests? #f ; Upstream tests are broken.
+ #:import-path "github.com/stevedonovan/luar"))
+ (home-page "https://github.com/stevedonovan/luar")
+ (synopsis "Lua reflection bindings for Go")
+ (description "Luar is designed to make using Lua from Go more
+convenient. Go structs, slices and maps can be automatically converted to Lua
+tables and vice-versa. The resulting conversion can either be a copy or a
+proxy. In the latter case, any change made to the result will reflect on the
+source.
+
+Any Go function can be made available to Lua scripts, without having to write
+C-style wrappers.
+
+Luar support cyclic structures (lists, etc.).
+
+User-defined types can be made available to Lua as well: their exported
+methods can be called and usual operations such as indexing or arithmetic can
+be performed.")
+ (license license:expat))))
+
(define-public fmit
(package
(name "fmit")