diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-02-23 18:18:59 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-03-02 17:33:53 -0500 |
commit | 7e7c6a1ac06a8e04acbdc9bbfe9ccc039d188977 (patch) | |
tree | b5e7a942da6f360713288d5866113bb05095a607 /guix/build-system/ruby.scm | |
parent | 927ff2c379bbab184a7b783d5cec91e53ceaa7e2 (diff) | |
download | gnu-guix-7e7c6a1ac06a8e04acbdc9bbfe9ccc039d188977.tar gnu-guix-7e7c6a1ac06a8e04acbdc9bbfe9ccc039d188977.tar.gz |
build: ruby: Add gitify phase.
* guix/build-system/ruby.scm (lower): Add git as implicit input.
* guix/build/ruby-build-system.scm (gitify): New procedure.
(%standard-phases): Add gitify phase.
Diffstat (limited to 'guix/build-system/ruby.scm')
-rw-r--r-- | guix/build-system/ruby.scm | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/guix/build-system/ruby.scm b/guix/build-system/ruby.scm index d2dd6a48cc..08301ec609 100644 --- a/guix/build-system/ruby.scm +++ b/guix/build-system/ruby.scm @@ -43,22 +43,24 @@ (define private-keywords '(#:source #:target #:ruby #:inputs #:native-inputs)) - (and (not target) ;XXX: no cross-compilation - (bag - (name name) - (system system) - (host-inputs `(,@(if source - `(("source" ,source)) - '()) - ,@inputs + (let ((version-control (resolve-interface '(gnu packages version-control)))) + (and (not target) ;XXX: no cross-compilation + (bag + (name name) + (system system) + (host-inputs `(,@(if source + `(("source" ,source)) + '()) + ,@inputs - ;; Keep the standard inputs of 'gnu-build-system'. - ,@(standard-packages))) - (build-inputs `(("ruby" ,ruby) - ,@native-inputs)) - (outputs outputs) - (build ruby-build) - (arguments (strip-keyword-arguments private-keywords arguments))))) + ;; Keep the standard inputs of 'gnu-build-system'. + ,@(standard-packages))) + (build-inputs `(("ruby" ,ruby) + ("git" ,(module-ref version-control 'git)) + ,@native-inputs)) + (outputs outputs) + (build ruby-build) + (arguments (strip-keyword-arguments private-keywords arguments)))))) (define* (ruby-build store name inputs #:key |