aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2024-10-11 00:00:57 +0100
committerArun Isaac2024-10-11 00:00:57 +0100
commitfa8ffbee3d931e8a9e6326f3d2e1d020c44fadf2 (patch)
tree1ecb99286ccc969f7f9681e1e79611c0b9c08d97
parent99dc8a02214d423ec666dd37bf69b89fedaf0443 (diff)
downloadravanan-fa8ffbee3d931e8a9e6326f3d2e1d020c44fadf2.tar.gz
ravanan-fa8ffbee3d931e8a9e6326f3d2e1d020c44fadf2.tar.lz
ravanan-fa8ffbee3d931e8a9e6326f3d2e1d020c44fadf2.zip
command-line-tool: Recompute checksum only if it is not provided.
* ravanan/command-line-tool.scm (build-command-line-tool-script)[canonicalize-file-value]: Recompute checksum only if it is not provided.
-rw-r--r--ravanan/command-line-tool.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/ravanan/command-line-tool.scm b/ravanan/command-line-tool.scm
index cc6d0ab..db2e45b 100644
--- a/ravanan/command-line-tool.scm
+++ b/ravanan/command-line-tool.scm
@@ -794,7 +794,8 @@ named @var{name} with @var{inputs} using tools from Guix manifest in
("nameroot" . ,(file-name-stem path))
("nameext" . ,(file-name-extension path))
("size" . ,(stat:size (stat path)))
- ("checksum" . ,(checksum path)))))
+ ("checksum" . ,(or (assoc-ref value "checksum")
+ (checksum path))))))
(define (capture-secondary-file path secondary-file
workflow-output-directory)