guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 4c3dece51455e1f23263162d5dc936e2b4a2e4c8
Author: Danny Milosavljevic <[email protected]>
AuthorDate: Tue Sep 15 18:25:18 2026 +0200

    gnu: Add go-github-com-liamg-magic.
    
    * gnu/packages/golang-xyz.scm (go-github-com-liamg-magic): New variable.
    
    Relates-to: guix/guix!11226, guix/guix!11258
    Reviewed-by: Orahcio FelĂ­cio de Sousa <[email protected]>
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/golang-xyz.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 5ab317862ce..46508be0a5e 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -21042,6 +21042,39 @@ individual fields based on tags.  It's an alternative 
fork of
 @url{https://github.com/go-playground/validator}.";)
     (license license:expat)))
 
+(define-public go-github-com-liamg-magic
+  (package
+    (name "go-github-com-liamg-magic")
+    (version "1.0.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/liamg/magic";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0zd7igz0131bfpy8m50lwjbrkmgmi0zmwa3cwgvi7h3d6gzrynan"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            ;; Use higher version of gotest.tools
+            (substitute* (find-files "." "\\.go$")
+              (("gotest.tools") "gotest.tools/v3"))))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/liamg/magic"))
+    (native-inputs
+     (list go-gotest-tools-v3))
+    (propagated-inputs
+     (list go-github-com-bmatcuk-doublestar-v4))
+    (home-page "https://github.com/liamg/magic";)
+    (synopsis "File type detection by magic bytes in Go")
+    (description
+     "This package provides detectors and verifiers using magic bytes in Go.")
+    (license license:gpl2)))
+
 (define-public go-github-com-lib-pq
   (package
     (name "go-github-com-lib-pq")

Reply via email to