From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
To: 68617@debbugs.gnu.org
Subject: [bug#68617] [PATCH] gnu: Add go-github-com-gabriel-vasile-mimetype.
Date: Sat, 20 Jan 2024 21:09:08 +0300 [thread overview]
Message-ID: <87msszev23.fsf@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 67 bytes --]
Hello,
this patch adds "go-github-com-gabriel-vasile-mimetype"[1]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-go-github-com-gabriel-vasile-mimetype.patch --]
[-- Type: text/x-diff, Size: 2602 bytes --]
From 140d517610c3e9be4c5fb74e354f411c51d25cdc Mon Sep 17 00:00:00 2001
Message-ID: <140d517610c3e9be4c5fb74e354f411c51d25cdc.1705774054.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sat, 20 Jan 2024 21:07:27 +0300
Subject: [PATCH] gnu: Add go-github-com-gabriel-vasile-mimetype.
* gnu/packages/golang.scm (go-github-com-gabriel-vasile-mimetype): New
variable.
Change-Id: Icb1624eb9a890b6f711dacf5ff80f15b041f3b7d
---
gnu/packages/golang.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 8fea581248..c2154ca675 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -4410,6 +4410,42 @@ (define-public go-github-com-technoweenie-multipartstreamer
without reading the entire content into memory.")
(license license:expat)))
+(define-public go-github-com-gabriel-vasile-mimetype
+ (package
+ (name "go-github-com-gabriel-vasile-mimetype")
+ (version "1.4.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gabriel-vasile/mimetype")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "11swnjczhrza0xi8q2wlk056nnbcghm44vqs52zfv6rwqvy6imhj"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.20
+ #:import-path "github.com/gabriel-vasile/mimetype"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'add-supported-mimes-md
+ (lambda* (#:key inputs #:allow-other-keys #:rest args)
+ ;; This file needs to be available for writing during the
+ ;; tests otherwise they will fail.
+ (let ((file
+ "src/github.com/gabriel-vasile/mimetype/supported_mimes.md"))
+ (invoke "touch" file)
+ (chmod file #o644)))))))
+ (propagated-inputs (list go-golang-org-x-net))
+ (home-page "https://github.com/gabriel-vasile/mimetype")
+ (synopsis "Golang library for media type and file extension detection")
+ (description
+ "A fast Golang library for media type and file extension detection, based on
+magic numbers .")
+ (license license:expat)))
+
(define-public go-github-com-tevino-abool
(let ((commit
"3c25f2fe7cd0ef3eabefce1d90efd69a65d35b12")
base-commit: 9c367ee1967b213b507a8bf041ea6c2623ceea96
--
2.41.0
[-- Attachment #1.3: Type: text/plain, Size: 288 bytes --]
Thanks,
- avp
References:
1. https://github.com/gabriel-vasile/mimetype/
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 869 bytes --]
next reply other threads:[~2024-01-20 18:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-20 18:09 Artyom V. Poptsov [this message]
2024-02-03 5:42 ` [bug#68617] [PATCH] gnu: Add go-github-com-gabriel-vasile-mimetype Sharlatan Hellseher
2024-02-04 6:58 ` Artyom V. Poptsov
2024-02-04 17:14 ` Artyom V. Poptsov
2024-02-05 15:51 ` bug#68617: " Sharlatan Hellseher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87msszev23.fsf@gmail.com \
--to=poptsov.artyom@gmail.com \
--cc=68617@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.