[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#73073] [PATCH 0/6] Allow origin with label as inputs.
From: |
Ludovic Courtès |
Subject: |
[bug#73073] [PATCH 0/6] Allow origin with label as inputs. |
Date: |
Mon, 16 Sep 2024 22:13:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi,
Simon Tournier <zimon.toutoune@gmail.com> skribis:
> This solution appears to me the best approach. Somehow, it uses
> ’file-name’ as internal “label”. When internal “labels” will completely
> removed, e.g., using package name or else, we will adapt.
>
> Well, ’origin-actual-file-name’ returns for example
> "libgd-2.0.4-checkout", i.e. the version would be required when calling
> ’this-package-input’. Therefore, it would mean something like:
>
> #$(this-package-native-input (git-file-name "libgd" version))
>
> This appears to me a good solution.
Yes, agreed.
> However, how is it possible to avoid a full rebuild because ’tzdata’ or
> else? It means the package definition cannot be modified, right?
When I looked the other day I came up with this:
modified gnu/packages/base.scm
@@ -1716,14 +1716,15 @@ (define-public tzdata
(delete-file-recursively
(string-append out "/share/zoneinfo-leaps")))))
(delete 'configure))))
- (inputs (list (origin
- (method url-fetch)
- (uri (string-append
- "https://data.iana.org/time-zones/releases/tzcode"
- version ".tar.gz"))
- (sha256
- (base32
-
"07hn7hn2klw4dfyr673ril2nrk18198hbfv25gljsvc833hzk9g9")))))
+ (inputs `(("_" ;<- avoid a rebuild
+ ,(origin
+ (method url-fetch)
+ (uri (string-append
+ "https://data.iana.org/time-zones/releases/tzcode"
+ version ".tar.gz"))
+ (sha256
+ (base32
+
"07hn7hn2klw4dfyr673ril2nrk18198hbfv25gljsvc833hzk9g9"))))))
(home-page "https://www.iana.org/time-zones")
(synopsis "Database of current and historical time zones")
Of course this is ugly, but it’s IMO okay if we only have to do it for a
few packages (and for a limited amount of time).
Thanks,
Ludo’.
- [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 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