[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#47539] [PATCH v3 13/25] gnu: Add go-github-com-gabriel-vasile-mimet
From: |
Xinglu Chen |
Subject: |
[bug#47539] [PATCH v3 13/25] gnu: Add go-github-com-gabriel-vasile-mimetype. |
Date: |
Mon, 19 Apr 2021 17:23:11 +0200 |
* gnu/packages/golang.scm (go-github-com-gabriel-vasile-mimetype): New variable.
---
gnu/packages/golang.scm | 47 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 289685ef4c..7dfc098480 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -7367,3 +7367,50 @@ substitutions, etc.), and it is safe for all utf-8
(unicode) input.")
Go. It lets you use emoji characters in strings.")
(license license:expat)))
+(define-public go-github-com-gabriel-vasile-mimetype
+ (package
+ (name "go-github-com-gabriel-vasile-mimetype")
+ (version "1.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gabriel-vasile/mimetype.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0ysb0pjhyr9b7q2y39b5hpwsaidgfl42gd07yj34mgmb9wfjb7ch"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path
+ "github.com/gabriel-vasile/mimetype"
+ ;; FIXME: Cannot open 'supported_mimes.md'
+ #:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ ;; The files are read-only
+ (add-before 'reset-gzip-timestamps 'make-gz-files-writable
+ (lambda* (#:key outputs #:allow-other-keys)
+ (for-each make-file-writable
+ (find-files (string-append (assoc-ref outputs "out"))
+ ".*\\.gz$"))
+ #t)))))
+
+ (home-page
+ "https://github.com/gabriel-vasile/mimetype")
+ (synopsis "A fast golang library for MIME type and file extension
detection")
+ (description "This is a package for detecting MIME types and extensions
+based on magic numbers. Features include
+
+@itemize
+@item fast and precise MIME type and file extension detection
+@item long list of supported MIME types
+@item common file formats are prioritized
+@item small and simple API
+@item handles MIME type aliases
+@item thread safe
+@item low memory usage, besides the file header
+@end itemize")
+ (license license:expat)))
+
--
2.31.1
- [bug#47539] [PATCH v3 03/25] gnu: Add go-github-com-kr-pty., (continued)
- [bug#47539] [PATCH v3 03/25] gnu: Add go-github-com-kr-pty., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 02/25] gnu: Add go-github-com-creack-pty., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 05/25] gnu: Add go-github-com-alecaivazis-survey-v2., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 06/25] gnu: Add go-github-com-makenowjust-heredoc., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 08/25] gnu: Add go-github-com-cli-browser., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 09/25] gnu: Add go-github-com-cli-oauth., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 10/25] gnu: Add go-github-com-russross-blackfriday-v2., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 07/25] gnu: Add go-github-com-briandowns-spinner., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 11/25] gnu: Add go-github-com-cpuguy83-go-md2man-v2., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 12/25] gnu: Add go-github-com-enescakir-emoji., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 13/25] gnu: Add go-github-com-gabriel-vasile-mimetype.,
Xinglu Chen <=
- [bug#47539] [PATCH v3 14/25] gnu: Add go-github-com-google-shlex., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 17/25] gnu: Add go-github-com-itchyny-timefmt-go., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 19/25] gnu: Add go-github-com-mattn-go-runewidth., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 20/25] gnu: Add go-github-com-rivo-uniseg., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 15/25] gnu: Add go-github-com-henvic-httpretty., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 16/25] gnu: Add go-github-com-itchyny-go-flags., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 18/25] gnu: Add go-github-com-itchyny-gojq., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 21/25] gnu: Add go-github-com-shurcool-githubv4., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 25/25] gnu: Add github-cli., Xinglu Chen, 2021/04/19
- [bug#47539] [PATCH v3 22/25] gnu: Add go-gopkg-in-yaml-v3., Xinglu Chen, 2021/04/19