build-system/ruby: Use invoke.

* guix/build/ruby-build-system.scm (install): Use invoke.
This commit is contained in:
Efraim Flashner 2019-03-28 19:17:34 +02:00
parent 0fa5055597
commit 0244952c11
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -143,14 +143,13 @@ (define* (install #:key inputs outputs (gem-flags '())
(gem-dir (string-append vendor-dir "/gems/" gem-name)))
(setenv "GEM_VENDOR" vendor-dir)
(or (zero?
(apply system* "gem" "install" gem-file
"--verbose"
"--local" "--ignore-dependencies" "--vendor"
;; Executables should go into /bin, not
;; /lib/ruby/gems.
"--bindir" (string-append out "/bin")
gem-flags))
(or (apply invoke "gem" "install" gem-file
"--verbose"
"--local" "--ignore-dependencies" "--vendor"
;; Executables should go into /bin, not
;; /lib/ruby/gems.
"--bindir" (string-append out "/bin")
gem-flags)
(begin
(let ((failed-output-dir (string-append (getcwd) "/out")))
(mkdir failed-output-dir)