diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2018-02-05 11:59:20 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-08-05 17:15:44 +0100 |
commit | cfebfc571c6a3f8323cd20ca4bb1d754442b0f1f (patch) | |
tree | 24b3564b27e52717b5a09be7d52529b177aee68a /gnu/packages | |
parent | 5db2d8ffb5d8529daef7060284fda6d8f5f441ed (diff) | |
download | guix-cfebfc571c6a3f8323cd20ca4bb1d754442b0f1f.tar guix-cfebfc571c6a3f8323cd20ca4bb1d754442b0f1f.tar.gz |
gnu: Add ruby-coffee-rails.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/patches/ruby-coffee-rails-fix-rakefile.patch | 20 | ||||
-rw-r--r-- | gnu/packages/rails.scm | 31 |
2 files changed, 51 insertions, 0 deletions
diff --git a/gnu/packages/patches/ruby-coffee-rails-fix-rakefile.patch b/gnu/packages/patches/ruby-coffee-rails-fix-rakefile.patch new file mode 100644 index 0000000000..bd98812da7 --- /dev/null +++ b/gnu/packages/patches/ruby-coffee-rails-fix-rakefile.patch @@ -0,0 +1,20 @@ +diff --git a/Rakefile b/Rakefile +index ae682dc..fdf146d 100644 +--- a/Rakefile ++++ b/Rakefile +@@ -13,12 +13,12 @@ end + task default: :test + + specname = "coffee-rails.gemspec" +-deps = `git ls-files`.split("\n") - [specname] ++deps = `find . -type f -print0 |sort`.split("\n") - [specname] + + file specname => deps do + files = ["CHANGELOG.md", "MIT-LICENSE", "README.md"] + `git ls-files -- lib`.split("\n") +- test_files = `git ls-files -- {test,spec,features}/*`.split("\n") +- executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } ++ test_files = `ls test/*`.split("\n") ++ executables = [] + + require 'erb' + diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm index 1f7321ee62..9a6b8abf0c 100644 --- a/gnu/packages/rails.scm +++ b/gnu/packages/rails.scm @@ -20,6 +20,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) #:use-module (guix packages) + #:use-module (gnu packages) #:use-module (gnu packages ruby) #:use-module (guix build-system ruby)) @@ -409,3 +410,33 @@ API.") "Sass adapter for the Rails asset pipeline.") (home-page "https://github.com/rails/sass-rails") (license license:expat))) + +(define-public ruby-coffee-rails + (package + (name "ruby-coffee-rails") + (version "4.2.1") + (source + (origin + (method url-fetch) + ;; Tests are not distributed at rubygems.org so download from GitHub + ;; instead. + (uri (string-append "https://github.com/rails/coffee-rails/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0a7cac67n1ndky3n8b1vdrdq67cahq6sn76saiw5xgzd296b3zjy")) + (patches (search-patches "ruby-coffee-rails-fix-rakefile.patch")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #f)) ; Tests require rails, disable to precent circular dependency. + (propagated-inputs + `(("ruby-coffee-script" ,ruby-coffee-script) + ("ruby-railties" ,ruby-railties))) + (synopsis + "CoffeeScript adapter for the Rails asset pipeline.") + (description + "CoffeeScript adapter for the Rails asset pipeline.") + (home-page + "https://github.com/rails/coffee-rails") + (license license:expat))) |