ambrevar/guix: Add `guix-run'.

master
Pierre Neidhardt 2021-01-13 12:44:01 +01:00
parent b884f0d613
commit 6fe5380452
1 changed files with 10 additions and 0 deletions

View File

@ -75,3 +75,13 @@
(defun delete-store-items (items)
"Garbage-collect items."
(apply #'$:run* "guix" "gc" "--delete" items))
(export-always 'guix-run)
(defun guix-run (package &optional (executable package) &rest args) ; TODO: Rename to `run'?
"Garbage-collect items.
If EXECUTABLE is nil, PACKAGE is used instead."
(apply #'cmd:cmd
"guix" "environment" "--ad-hoc" package
"--"
(or executable package)
args))