[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#73073] [PATCH v2 1/8] guix: packages: Allow origin inside inputs wi
From: |
Simon Tournier |
Subject: |
[bug#73073] [PATCH v2 1/8] guix: packages: Allow origin inside inputs with "new style". |
Date: |
Tue, 10 Sep 2024 03:27:09 +0200 |
* guix/packages.scm (add-input-label): Rely on 'origin-actual-file-name' for
internal inputs labels.
(maybe-add-input-labels): Special case to avoid world rebuild.
Change-Id: I6ba5352b1b1b8ab810da3730b09cb9db61d6429c
---
guix/packages.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/guix/packages.scm b/guix/packages.scm
index f373136d22..35dba6adc3 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -444,6 +444,9 @@ (define (maybe-add-input-labels inputs)
((and (pair? (car inputs))
(string? (caar inputs)))
inputs)
+ ((and (origin? (car inputs)) ;XXXX: Remove next world rebuild
+ (null? (cdr inputs))) ;special case tzdata
+ (list (list "_" (car inputs))))
(else (map add-input-label inputs))))
(define (add-input-labels . inputs)
@@ -676,6 +679,13 @@ (define (add-input-label input)
"_")
,obj
,@(if (string=? output "out") '() (list output)))))
+ ((? origin? origin) ;XXXX: Remove next world rebuild
+ (let ((texlive (package-source
+ (module-ref (resolve-interface '(gnu packages tex))
+ 'texlive-latex))))
+ (if (eq? input texlive)
+ (list "_" origin)
+ (list (or (origin-actual-file-name origin) "_") origin))))
(x
`("_" ,x))))
--
2.45.2
- [bug#73073] [PATCH 4/6] gnu: gnome-recipes: Move libgd origin from phases to native-inputs., (continued)
[bug#73073] [PATCH 5/6] gnu: farstream: Move common origin from phases to native-inputs., Simon Tournier, 2024/09/06
[bug#73073] [PATCH 6/6] gnu: gnulib: Move phobos origin from phases to native-inputs., Simon Tournier, 2024/09/06
[bug#73073] [PATCH 1/6] guix: packages: Allow origin with label as inputs., Simon Tournier, 2024/09/06
[bug#73073] [PATCH 0/6] Allow origin with label as inputs., Ludovic Courtès, 2024/09/06
[bug#73073] [PATCH v2 0/8] Allow origin inside inputs with "new style"., Simon Tournier, 2024/09/09
- [bug#73073] [PATCH v2 1/8] guix: packages: Allow origin inside inputs with "new style".,
Simon Tournier <=
[bug#73073] [PATCH v2 3/8] gnu: dmd-bootstrap: Move phobos origin from phases to native-inputs., Simon Tournier, 2024/09/09
[bug#73073] [PATCH v2 4/8] gnu: smithforth: Move system.fs origin from phases to native-inputs., Simon Tournier, 2024/09/09
[bug#73073] [PATCH v2 7/8] gnu: git: Move git-manpages origin from phases to native-inputs., Simon Tournier, 2024/09/09
[bug#73073] [PATCH v2 5/8] gnu: farstream: Move common origin from phases to native-inputs., Simon Tournier, 2024/09/09
[bug#73073] [PATCH v2 2/8] gnu: gnome-recipes: Move libgd origin from phases to native-inputs., Simon Tournier, 2024/09/09