diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-07-18 00:22:37 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-09-01 13:19:08 -0400 |
commit | 89fbca9de61b97ad437aba96415865d67be617b8 (patch) | |
tree | 5b0fe028f89d1b020179e6f1b120ab0b261848f2 | |
parent | 1994c4c6e7481ae2ad88edbbbf466aa2e808ee7a (diff) | |
download | guix-89fbca9de61b97ad437aba96415865d67be617b8.tar.gz guix-89fbca9de61b97ad437aba96415865d67be617b8.zip |
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.
-rw-r--r-- | guix/build/ruby-build-system.scm | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/guix/build/ruby-build-system.scm b/guix/build/ruby-build-system.scm index 8a421c1e15..9aceb187a4 100644 --- a/guix/build/ruby-build-system.scm +++ b/guix/build/ruby-build-system.scm @@ -136,11 +136,7 @@ is #f." #: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 @@ GEM-FLAGS are passed to the 'gem' invocation, if present." (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" |