guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 94ec42eaaa8aaae828bb304dc6afdb8fe3d39c9a
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Sep 21 22:09:01 2026 +0100
gnu: Add go-magic.
* gnu/packages/golang-xyz.scm (go-magic): New variable.
---
gnu/packages/golang-xyz.scm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 22794e99fcb..fb386f670a1 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -39220,6 +39220,24 @@ correctly.")))
(string-append (package-description go-zgo-at-jfmt)
" This package provides a command line interface (CLI)
tool."))))
+(define-public go-magic
+ (package/inherit go-github-com-liamg-magic
+ (name "go-magic")
+ (arguments
+ (substitute-keyword-arguments arguments
+ ((#:import-path _ ) "github.com/liamg/magic/cmd/magic")
+ ((#:install-source? _ #t) #f)
+ ((#:skip-build? _ #t) #f)
+ ((#:tests? _ #t) #f)
+ ((#:unpack-path _ "") "github.com/liamg/magic")))
+ (native-inputs
+ (package-propagated-inputs go-github-com-liamg-magic))
+ (propagated-inputs '())
+ (inputs '())
+ (description
+ "This package provides @command{magic}, a @acronym{Comman Line Interface,
+CLI} tool to detect and verify file type using magic bytes.")))
+
(define-public go-md2man
(package/inherit go-github-com-cpuguy83-go-md2man-v2
(name "go-md2man")