From c98bcc824e4e02409eaed4c5493bfae1e36df6f9 Mon Sep 17 00:00:00 2001 From: TakeV Date: Mon, 10 Jul 2023 02:40:25 -0700 Subject: [PATCH] Add keywords for generating manifest and guix.scm files --- scripts/guix-cantrips.in | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/scripts/guix-cantrips.in b/scripts/guix-cantrips.in index 2617614..bd14a55 100644 --- a/scripts/guix-cantrips.in +++ b/scripts/guix-cantrips.in @@ -32,21 +32,22 @@ (handler canonicalize-path) (synopsis "Directory to download source code to") (example "~/src")) - (setting (name 'config-dir) - (default (or (getenv "XDG_CONFIG_HOME") - (format #f "~a/.config" (getenv "HOME")))) - (test file-exists?) - (handler canonicalize-path) - (synopsis "Directory to search for profile manifests") - (example "~/.config/guix-conjure")))) + (setting (name 'with-manifest) + (default #f) + (test boolean?) + (synaopsis "Create a manifest file with the package's development dependencies")) + (setting (name 'with-guix-file) + (default #f) + (test boolean?) + (synaopsis "Create a local version of the package's definition in guix.scm")))) (subcommands (list (configuration (name 'summon) - (synopsis "Retrieves the source code of a package, and places it within the project directory, while configuring all permissions.") + (synopsis "Retrieves the source code of a package, and places it within the project directory, while configuring all permissions") (description - "Uses guix build --source to obtain a package's source code, decompressing if required, and places the resulting source in the project directory.") - (wanted '((keywords project-dir))) + "Uses guix build --source to obtain a package's source code, decompressing if required, and places the resulting source in the project directory") + (wanted '((keywords . (project-dir with-manifest with-guix-file)))) (arguments (list (argument (name 'package)