diff options
author | Arun Isaac | 2024-10-07 23:09:26 +0100 |
---|---|---|
committer | Arun Isaac | 2024-10-07 23:12:53 +0100 |
commit | 4fe988e750e88ede4e0f1a3c9fa41afc1a54a80b (patch) | |
tree | f97e15a22d5c41f615efb94180486d5270e9d7ac | |
parent | 394dca860e767df69562f3e5afa3ec3c588afbaa (diff) | |
download | ravanan-4fe988e750e88ede4e0f1a3c9fa41afc1a54a80b.tar.gz ravanan-4fe988e750e88ede4e0f1a3c9fa41afc1a54a80b.tar.lz ravanan-4fe988e750e88ede4e0f1a3c9fa41afc1a54a80b.zip |
command-line-tool: Implement GuixManifestRequirement.
*
ravanan/command-line-tool.scm (%command-line-tool-supported-requirements):
Add GuixManifestRequirement.
(build-command-line-tool-script): Implement GuixManifestRequirement.
-rw-r--r-- | ravanan/command-line-tool.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ravanan/command-line-tool.scm b/ravanan/command-line-tool.scm index 19f3703..17a67a1 100644 --- a/ravanan/command-line-tool.scm +++ b/ravanan/command-line-tool.scm @@ -69,6 +69,7 @@ (define %command-line-tool-supported-requirements (list "EnvVarRequirement" + "GuixManifestRequirement" "InlineJavascriptRequirement" "InitialWorkDirRequirement" "ResourceRequirement")) @@ -732,7 +733,13 @@ named @var{name} with @var{inputs} using tools from Guix manifest in #()))) (initial-work-dir-requirement (find-requirement requirements "InitialWorkDirRequirement")) - (manifest (load-manifest manifest-file))) + (manifest + (load-manifest + (from-maybe + (maybe-bind (find-requirement requirements "GuixManifestRequirement") + (compose just + (cut assoc-ref* <> "manifest"))) + manifest-file)))) (with-imported-modules (source-module-closure '((ravanan work command-line-tool) (ravanan work monads) (ravanan work ui) |