From fa8ffbee3d931e8a9e6326f3d2e1d020c44fadf2 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 11 Oct 2024 00:00:57 +0100 Subject: 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. --- ravanan/command-line-tool.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3