mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
build: ruby: Set $GEM_HOME that matches Ruby's $GEM_PATH.
* guix/build/ruby-build-system.scm (install): Ignore the Ruby patch version when creating $GEM_HOME.
This commit is contained in:
parent
5250a4f215
commit
7578f6e32a
1 changed files with 2 additions and 2 deletions
|
@ -58,11 +58,11 @@ (define* (check #:key tests? test-target #:allow-other-keys)
|
|||
|
||||
(define* (install #:key source inputs outputs #:allow-other-keys)
|
||||
(let* ((ruby-version
|
||||
(match:substring (string-match "ruby-(.*)$"
|
||||
(match:substring (string-match "ruby-(.*)\\.[0-9]$"
|
||||
(assoc-ref inputs "ruby"))
|
||||
1))
|
||||
(out (assoc-ref outputs "out"))
|
||||
(gem-home (string-append out "/lib/ruby/gems/" ruby-version)))
|
||||
(gem-home (string-append out "/lib/ruby/gems/" ruby-version ".0")))
|
||||
(setenv "GEM_HOME" gem-home)
|
||||
(mkdir-p gem-home)
|
||||
(zero? (system* "gem" "install" "--local"
|
||||
|
|
Loading…
Reference in a new issue