Alex Kost <alez...@gmail.com> skribis: > Thanks, now (with the latest “guix pull”), installing/upgrading/removing > should work in "guix.el". If you (or someone else) wish to try it, you > may use: > > (setq guix-dry-run t) > > (It has the same meaning as “--dry-run” option).
I gave it a try, but AFAICS, when the REPL is started as “internal”, guix-main.scm isn’t loaded, and thus “Install” fails: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (process-package-actions #:install '((58935712 "out")) #:upgrade '() #:remove '() #:use-substitutes? #t #:dry-run? #f) ;;; <stdin>:11:0: warning: possibly unbound variable `process-package-actions' <unnamed port>:11:0: In procedure #<procedure 42ba0c0 at <current input>:11:0 ()>: <unnamed port>:11:0: In procedure module-lookup: Unbound variable: process-package-actions --8<---------------cut here---------------end--------------->8--- Did I miss something? Besides, I like M-x guix-generations, pretty cool. :-) > Also I would like to add support for deleting generations (to > "guix.el"), so I think it would be good to export ‘delete-generation’ > from "scripts/package.scm". WDYT? Yes, that makes sense, one could use it from the *Guix Generation List* buffer. Regarding package installation/removal/upgrade, I think it would be great UI-wise to support transactions that perform multiple operations. I was initially thinking of something similar to what package.el does: marks packages from installation/removal, and then hit ‘x’ to execute the transaction. So the current “Install” and “Delete” buttons could be changed to just mark things for installation/removal. WDYT? Thanks, Ludo’.