mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-11-25 01:48:08 +01:00
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:
parent
00e2480d23
commit
9734a6a1fe
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue