me
/
guix
Archived
1
0
Fork 0

gnu: Add trivial-mimes.

* gnu/packages/lisp.scm (sbcl-trivial-mimes, cl-trivial-mimes): New variables.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
master
Katherine Cox-Buday 2019-03-29 16:33:32 -05:00 committed by 宋文武
parent d3da4b37cf
commit ac99157f42
No known key found for this signature in database
GPG Key ID: 26525665AE727D37
1 changed files with 42 additions and 0 deletions

View File

@ -5028,3 +5028,45 @@ performance and simplicity in mind.")
(define-public cl-lack-middleware-backtrace
(sbcl-package->cl-source-package sbcl-lack-middleware-backtrace))
(define-public sbcl-trivial-mimes
(let ((commit "303f8ac0aa6ca0bc139aa3c34822e623c3723fab")
(revision "1"))
(package
(name "sbcl-trivial-mimes")
(version (git-version "1.1.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Shinmera/trivial-mimes.git")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "17jxgl47r695bvsb7wi3n2ws5rp1zzgvw0zii8cy5ggw4b4ayv6m"))))
(build-system asdf-build-system/sbcl)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after
'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
(let ((anchor "#p\"/etc/mime.types\""))
(substitute* "mime-types.lisp"
((anchor all)
(string-append
anchor "\n"
"(asdf:system-relative-pathname :trivial-mimes \"../../share/common-lisp/sbcl-source/trivial-mimes/mime.types\")")))))))))
(native-inputs
`(("stefil" ,sbcl-hu.dwim.stefil)))
(inputs
`(("sbcl-cl-fad" ,sbcl-cl-fad)))
(home-page "http://shinmera.github.io/trivial-mimes/")
(synopsis "Tiny Common Lisp library to detect mime types in files")
(description
"This is a teensy library that provides some functions to determine the
mime-type of a file.")
(license license:artistic2.0))))
(define-public cl-trivial-mimes
(sbcl-package->cl-source-package sbcl-trivial-mimes))