mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
build: ruby-build-system: Remove an extraneous binding.
* guix/build/ruby-build-system.scm (install): Remove the RUBY-VERSION binding, no longer used. Fix the indentation of a comment.
This commit is contained in:
parent
1994c4c6e7
commit
89fbca9de6
1 changed files with 3 additions and 7 deletions
|
@ -136,11 +136,7 @@ (define* (install #:key inputs outputs (gem-flags '())
|
|||
#:allow-other-keys)
|
||||
"Install the gem archive SOURCE to the output store item. Additional
|
||||
GEM-FLAGS are passed to the 'gem' invocation, if present."
|
||||
(let* ((ruby-version
|
||||
(match:substring (string-match "ruby-(.*)\\.[0-9]$"
|
||||
(assoc-ref inputs "ruby"))
|
||||
1))
|
||||
(out (assoc-ref outputs "out"))
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(vendor-dir (string-append out "/lib/ruby/vendor_ruby"))
|
||||
(gem-file (first-matching-file "\\.gem$"))
|
||||
(gem-file-basename (basename gem-file))
|
||||
|
@ -151,8 +147,8 @@ (define* (install #:key inputs outputs (gem-flags '())
|
|||
(setenv "GEM_VENDOR" vendor-dir)
|
||||
|
||||
(or (zero?
|
||||
;; 'zero? system*' allows the custom error handling to function as
|
||||
;; expected, while 'invoke' raises its own exception.
|
||||
;; 'zero? system*' allows the custom error handling to function as
|
||||
;; expected, while 'invoke' raises its own exception.
|
||||
(apply system* "gem" "install" gem-file
|
||||
"--verbose"
|
||||
"--local" "--ignore-dependencies" "--vendor"
|
||||
|
|
Loading…
Reference in a new issue