guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#64150] [PATCH 05/24] gnu: texlive-hyphen-package: Use pinned ruby-h


From: Christopher Baines
Subject: [bug#64150] [PATCH 05/24] gnu: texlive-hyphen-package: Use pinned ruby-hydra-minimal.
Date: Sun, 18 Jun 2023 12:28:32 +0100

To allow updating ruby without changing texlive.

* gnu/packages/ruby.scm (ruby-hydra-minimal/pinned): New variable.
* gnu/packages/tex.scm (texlive-hyphen-package)[native-inputs]: Use it

Signed-off-by: Christopher Baines <mail@cbaines.net>
---
 gnu/packages/ruby.scm | 9 +++++++++
 gnu/packages/tex.scm  | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index f28ad97e11..1de1d634bc 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3597,6 +3597,15 @@ (define-public ruby-hydra-minimal
 It is a low-dependency variant of ruby-hydra.")
       (license license:expat))))
 
+;; Pinned variant for use by texlive
+(define-public ruby-hydra-minimal/pinned
+  (hidden-package
+   (package
+     (inherit ruby-hydra-minimal)
+     (arguments
+      (cons* #:ruby ruby-2.7
+             (package-arguments ruby-hydra-minimal))))))
+
 (define-public ruby-hydra
   (package
     (inherit ruby-hydra-minimal)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 6c055ed0cd..65f8d901d7 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -236,7 +236,7 @@ (define (texlive-hyphen-package name code locations hash)
                         (string-append "File.join(\"" ptex "\"")))
                      (invoke "ruby" "generate-ptex-patterns.rb")))))))))
       (native-inputs
-       (list ruby-2.7 ruby-hydra-minimal hyph-utf8-scripts))
+       (list ruby-2.7 ruby-hydra-minimal/pinned hyph-utf8-scripts))
       (home-page "https://ctan.org/pkg/hyph-utf8";))))
 
 (define texlive-extra-src
-- 
2.40.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]