From d39b606c8874204e6f12a7af9049c3d1615eda25 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Thu, 31 Dec 2015 09:05:55 +1000 Subject: [PATCH] gnu: Add ruby-mime-types. * gnu/packages/ruby.scm (ruby-mime-types): New variable. --- gnu/packages/ruby.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index a23d75e92c..312d33c053 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3107,6 +3107,35 @@ look up the likely MIME type definitions.") (home-page "https://github.com/mime-types/mime-types-data/") (license license:expat))) +(define-public ruby-mime-types + (package + (name "ruby-mime-types") + (version "3.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "mime-types" version)) + (sha256 + (base32 + "1snjc38a9vqvy8j41xld1i1byq9prbl955pbjw7dxqcfcirqlzra")))) + (build-system ruby-build-system) + (propagated-inputs + `(("ruby-mime-types-data" ,ruby-mime-types-data))) + (native-inputs + `(("ruby-hoe" ,ruby-hoe) + ("ruby-fivemat" ,ruby-fivemat) + ("ruby-minitest-focus" ,ruby-minitest-focus) + ("ruby-minitest-rg" ,ruby-minitest-rg) + ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions))) + (synopsis "Library and registry for MIME content type definitions") + (description "The mime-types library provides a library and registry for +information about Multipurpose Internet Mail Extensions (MIME) content type +definitions. It can be used to determine defined filename extensions for MIME +types, or to use filename extensions to look up the likely MIME type +definitions.") + (home-page "https://github.com/mime-types/ruby-mime-types") + (license license:expat))) + (define-public ruby-fivemat (package (name "ruby-fivemat")