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 | |
parent | e9e4b2fafd77491f1865399f09f28ebe5d71916c (diff) | |
download | guix-f8f005815efdf9f0d5d2a5ac30c6fdd19aa22e72.tar guix-f8f005815efdf9f0d5d2a5ac30c6fdd19aa22e72.tar.gz |
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')
-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 7c28e75c45..1d901505aa 100644 --- a/tests/packages.scm +++ b/tests/packages.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2012-2023 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2012-2024 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> @@ -2051,6 +2051,14 @@ (dummy-package "a" (arguments (this-package-native-input "hello"))))) +(test-equal "this-package-input, origin" + "http://example.org/foo.tar.gz" + (origin-uri + (package-arguments + (dummy-package "a" + (inputs (list (dummy-origin (uri "http://example.org/foo.tar.gz")))) + (arguments (this-package-input "foo.tar.gz")))))) + (test-eq "modify-inputs, replace" coreutils ;; Replace an input; notice that the label in unchanged. |