I'm trying to update stenography.scm to use a later version of plover. I made a few changes (given below), some appropriate, others not, and ran guix build -K --file=xc.stenography.scm. It built and runs directly from the store. Great. I want to fix the inappropriate changes and create a proper package. But, how can I remove the build from the store?
It looks like guix gc is what I need. However, it won't delete store items which are "live". I understand "live" to mean "reachable from a root" where a "root" is a symlink returned by guix gc --list-roots. Checking the link corresponding to my latest generation, the build isn't anywhere in bin. I expected this, as it wasn't packaged or added to a profile afaik. The symlinks in /var/guix/profiles/per-user/ahab/guix-profile-80-link/bin all point toward the old version of plover. ahab@pequod /var/guix/profiles/per-user/ahab/guix-profile-80-link$ fd -L plover share/doc/plover-4.0.0.dev8 bin/plover lib/python3.8/site-packages/plover-4.0.0.dev8-py3.8.egg-info lib/python3.8/site-packages/plover lib/python3.8/site-packages/plover/gui_qt/messages/plover.pot lib/python3.8/site-packages/plover/gui_qt/resources/plover.png lib/python3.8/site-packages/plover/gui_qt/messages/fr/LC_MESSAGES/plover.po lib/python3.8/site-packages/plover/assets/plover.ico lib/python3.8/site-packages/plover/assets/plover-icon.svg lib/python3.8/site-packages/plover/assets/plover.png lib/python3.8/site-packages/plover_build_utils Doing info-apropos within Emacs, I found the guix-store-item command. It had this tempting "delete" button which, as far as I could tell, was not documented. I pressed it. To my surprise, it deleted the file. Great. But the manual also says, "removing files or directories manually may break it beyond repair!" Have I borked my /gnu/store? How can I, or could I have if it's too late, removed the build? *** /home/ahab/Projects/my_plover/xc.stenography.scm 2021-08-21 12:19:46.512876928 -0400 --- /home/ahab/.config/guix/current/share/guile/site/3.0/gnu/packages/stenography.scm 1969-12-31 19:00:01.000000000 -0500 *************** *** 17,23 **** ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. ! (define-module (plover) #:use-module (guix build-system python) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) --- 17,23 ---- ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. ! (define-module (gnu packages stenography) #:use-module (guix build-system python) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) *************** *** 30,48 **** #:use-module (gnu packages python-xyz) #:use-module (gnu packages wxwidgets)) ! (define-public xc/plover (package (name "plover") ! (version "4.0.0.dev10") (source (origin (method git-fetch) (uri (git-reference ! (url "https://github.com/openstenoproject/plover") ! (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 ! (base32 "1nyllqv4jq4idgn4cp5mypransw3rh3x8c1h9p6ld1anfr3zx7m0")))) (build-system python-build-system) (native-inputs `(("python-mock" ,python-mock) --- 30,48 ---- #:use-module (gnu packages python-xyz) #:use-module (gnu packages wxwidgets)) ! (define-public plover (package (name "plover") ! (version "4.0.0.dev8") (source (origin (method git-fetch) (uri (git-reference ! (url "https://github.com/openstenoproject/plover") ! (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 ! (base32 "1b2ys77bkjsdmyg97i7lq3lj45q56bycvsm06d4rs656kxhvc0a3")))) (build-system python-build-system) (native-inputs `(("python-mock" ,python-mock) *************** *** 65,68 **** speeds of 200WPM and beyond.") (license license:gpl2+))) - xc/plover --- 65,67 ----
