me
/
guix
Archived
1
0
Fork 0

build: ruby: Install executables in /bin.

* guix/build/ruby-build-system.scm (install): Add '--bindir' flag to gem
  command.
master
David Thompson 2015-02-27 12:03:20 -05:00
parent 7e7c6a1ac0
commit f3c96d474f
1 changed files with 5 additions and 4 deletions

View File

@ -61,13 +61,14 @@ directory."
(match:substring (string-match "ruby-(.*)$" (match:substring (string-match "ruby-(.*)$"
(assoc-ref inputs "ruby")) (assoc-ref inputs "ruby"))
1)) 1))
(gem-home (string-append (assoc-ref outputs "out") (out (assoc-ref outputs "out"))
"/lib/ruby/gems/" (gem-home (string-append out "/lib/ruby/gems/" ruby-version)))
ruby-version)))
(setenv "GEM_HOME" gem-home) (setenv "GEM_HOME" gem-home)
(mkdir-p gem-home) (mkdir-p gem-home)
(zero? (system* "gem" "install" "--local" (zero? (system* "gem" "install" "--local"
(first-matching-file "\\.gem$"))))) (first-matching-file "\\.gem$")
;; Executables should go into /bin, not /lib/ruby/gems.
"--bindir" (string-append out "/bin")))))
(define %standard-phases (define %standard-phases
(alist-cons-after (alist-cons-after