summaryrefslogtreecommitdiff
path: root/nongnu/packages
diff options
context:
space:
mode:
authorIsaac van Bakel <isaac.vanbakel@inf.ethz.ch>2024-10-28 12:21:40 +0100
committerJelle Licht <jlicht@fsfe.org>2024-11-03 13:05:26 +0100
commit9734a6a1feff94dc43baf4d1b82f59f9b7a20220 (patch)
tree1d6d258bae55c7c79dcf9cd71423acb0fea652a5 /nongnu/packages
parent00e2480d23b9c407279b541cd0be4d6f14e20fdd (diff)
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>
Diffstat (limited to 'nongnu/packages')
-rw-r--r--nongnu/packages/nvidia.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm
index 3450cf8..de311f6 100644
--- a/nongnu/packages/nvidia.scm
+++ b/nongnu/packages/nvidia.scm
@@ -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")