From 82c8b97fa59b30b0344132562cb75a08b6412dbe Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Mon, 5 Feb 2018 11:41:47 +0100 Subject: gnu: Add ruby-fuubar. --- gnu/packages/ruby.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 4dea344f7e..7485d09478 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5342,3 +5342,43 @@ percentage, bars of various formats, elapsed time and estimated time remaining. (home-page "https://github.com/jfelchner/ruby-progressbar") (license license:expat))) + +(define-public ruby-fuubar + (package + (name "ruby-fuubar") + (version "2.1.1") + (source + (origin + (method url-fetch) + ;; The gem does not include files required for testing. + (uri (string-append "https://github.com/thekompanee/fuubar/archive/releases/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1363fy7x12srr51cy5x1xkf9z7jlzzlwpsifwgx6bivnp6lar3ny")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #f ; some tests fail when running (zero? (system* "rspec" + ; "-Ilib" "spec")) inside the container, but seem to work outside. + #:phases + (modify-phases %standard-phases + (add-before 'build 'delete-certificate + (lambda _ + ;; Remove 's.cert_chain' as we do not build with a private key + (substitute* "fuubar.gemspec" + ((".*cert_chain.*") "") + ((".*signing_key.*") "")) + #t))))) + (native-inputs + `(("bundler" ,bundler))) + (propagated-inputs + `(("ruby-rspec" ,ruby-rspec) + ("ruby-ruby-progressbar" ,ruby-ruby-progressbar))) + (synopsis + "the instafailing RSpec progress bar formatter") + (description + "the instafailing RSpec progress bar formatter") + (home-page + "https://github.com/thekompanee/fuubar") + (license license:expat))) -- cgit v1.2.3