nongnu: nvidia-nvml: Fix baked-in source in unpack overrides.

* nongnu/packages/nvidia.scm (nvidia-nvml)[#:phases]<unpack>: Replace source
G-expression by keyword argument source.

These cases of `replace 'unpack` were referring to the `#$source` of the
package in the g-exp, which was baking in the source *at the point of
package definition* to the g-exp. This prevented inheritor packages from
modifying the source field and getting the expected effect.

The correct way to refer to the source field from a phase override is
with the `source` key. This modifies all the references to `#$source` I
could find in `unpack` phase replacements.

Signed-off-by: Jelle Licht <jlicht@fsfe.org>
This commit is contained in:
Isaac van Bakel 2024-10-28 12:21:40 +01:00 committed by Jelle Licht
parent 00e2480d23
commit 9734a6a1fe
No known key found for this signature in database
GPG key ID: DA4597F947B41025

View file

@ -892,8 +892,8 @@ nvidia-smi.")
(list #:phases
#~(modify-phases %standard-phases
(replace 'unpack
(lambda _
(invoke "sh" #$source "--tar" "xvf"))))
(lambda* (#:key source #:allow-other-keys)
(invoke "sh" source "--tar" "xvf"))))
#:install-plan
''(("payload/nvml/lib" "lib")
("payload/nvml/include" "include/nvidia/gdk")