diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2024-12-04 18:26:07 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-12-16 00:19:56 +0100 |
| commit | f8f005815efdf9f0d5d2a5ac30c6fdd19aa22e72 (patch) | |
| tree | 17a61d9b3b72ca70e39ad1d7219c9a9a2e4af955 /tests/packages.scm | |
| parent | e9e4b2fafd77491f1865399f09f28ebe5d71916c (diff) | |
packages: Use origin file names as their input labels.
* guix/packages.scm (add-input-label): Rely on 'origin-actual-file-name' for
internal inputs labels.
* tests/packages.scm ("this-package-input, origin"): New test.
* doc/guix.texi (package Reference): Mention origin lookup for
‘lookup-package-input’ & co.
* gnu/packages/base.scm (tzdata)[inputs]: Reintroduce label.
* gnu/packages/tex.scm (texlive-hyphen-complete)[inputs]: Likewise.
(texlive-newverbs)[native-inputs]: Likewise.
Change-Id: I6ba5352b1b1b8ab810da3730b09cb9db61d6429c
Co-authored-by: Simon Tournier <zimon.toutoune@gmail.com>
Diffstat (limited to 'tests/packages.scm')
| -rw-r--r-- | tests/packages.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/packages.scm b/tests/packages.scm index 7c28e75c457..1d901505aa5 100644 --- a/tests/packages.scm +++ b/tests/packages.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2012-2023 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2012-2024 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> | 3 | ;;; Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> |
| 4 | ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> | 4 | ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
| 5 | ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> | 5 | ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> |
| @@ -2051,6 +2051,14 @@ | |||
| 2051 | (dummy-package "a" | 2051 | (dummy-package "a" |
| 2052 | (arguments (this-package-native-input "hello"))))) | 2052 | (arguments (this-package-native-input "hello"))))) |
| 2053 | 2053 | ||
| 2054 | (test-equal "this-package-input, origin" | ||
| 2055 | "http://example.org/foo.tar.gz" | ||
| 2056 | (origin-uri | ||
| 2057 | (package-arguments | ||
| 2058 | (dummy-package "a" | ||
| 2059 | (inputs (list (dummy-origin (uri "http://example.org/foo.tar.gz")))) | ||
| 2060 | (arguments (this-package-input "foo.tar.gz")))))) | ||
| 2061 | |||
| 2054 | (test-eq "modify-inputs, replace" | 2062 | (test-eq "modify-inputs, replace" |
| 2055 | coreutils | 2063 | coreutils |
| 2056 | ;; Replace an input; notice that the label in unchanged. | 2064 | ;; Replace an input; notice that the label in unchanged. |
