all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Newbie: Why using "guix edit" opens read-only files in /gnu/store?
@ 2023-06-25  3:14 Rodrigo Morales
  2023-06-25  3:50 ` Vagrant Cascadian
  0 siblings, 1 reply; 2+ messages in thread
From: Rodrigo Morales @ 2023-06-25  3:14 UTC (permalink / raw)
  To: help-guix

From what I understand, no file in `/gnu/store' can be edited by any
user. My question is: Isn't the purpose of `guix edit' edit package
definitions? Then, why when `guix edit <<package>>' is executed, a file
under /gnu/store is shown? For the record, I just executed `guix edit
emacs' and the file
/gnu/store/nxy09dxmm23krdgszgww2v80v8bkcll5-guix-module-union/share/guile/site/3.0/gnu/packages/emacs.scm
was opened.

How am I supposed to edit the package definition if it is defined in a
file under `/gnu/store' (read-only file system)?

I might have skipped an important part when reading the documentation. If
so, please point me to that part.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Newbie: Why using "guix edit" opens read-only files in /gnu/store?
  2023-06-25  3:14 Newbie: Why using "guix edit" opens read-only files in /gnu/store? Rodrigo Morales
@ 2023-06-25  3:50 ` Vagrant Cascadian
  0 siblings, 0 replies; 2+ messages in thread
From: Vagrant Cascadian @ 2023-06-25  3:50 UTC (permalink / raw)
  To: Rodrigo Morales, help-guix

[-- Attachment #1: Type: text/plain, Size: 897 bytes --]

On 2023-06-25, Rodrigo Morales wrote:
> From what I understand, no file in `/gnu/store' can be edited by any
> user. My question is: Isn't the purpose of `guix edit' edit package
> definitions? Then, why when `guix edit <<package>>' is executed, a file
> under /gnu/store is shown? For the record, I just executed `guix edit
> emacs' and the file
> /gnu/store/nxy09dxmm23krdgszgww2v80v8bkcll5-guix-module-union/share/guile/site/3.0/gnu/packages/emacs.scm
> was opened.

It is certainly confusing, and has come a few times. It would be more
ideal to copy that file somewhere where it can be edited than trying to
edit the file in the store directly.

It is still useful when building from git, as described in:

  https://guix.gnu.org/en/manual/devel/en/guix.html#Building-from-Git

Then this should work more-or-less as one might expect:

  ./pre-inst-env guix edit PACKAGE


live well,
  vagrant

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-25  3:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-25  3:14 Newbie: Why using "guix edit" opens read-only files in /gnu/store? Rodrigo Morales
2023-06-25  3:50 ` Vagrant Cascadian

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.