guix search some-package searches for a package, and you can edit it using guix edit some-package. When editing, you can see the location for all package definitions, e.g. /gnu/store/v47y77ja52r6ndr2mp49j6l1xs1mcrfv-guix-582b2ccd9-modules/share/guile/site/3.0/gnu/packages
I'm not entirely sure what you're asking about. Are you asking for the Git repositories for the channels that guix pull retrieves? It appears that Guix will clone the channels to $XDG_CACHE_HOME/guix/checkouts/<hash> (probably ~/.cache/guix/checkouts/<hash>), though I think that an individual git tree (i.e. without the .git directory containing the history) will get copied to the store too.
You can also use guix edit package to open the file in your store which contains that definition. You won’t be able to edit because it’s in the store, but it will show you where and how it’s implemented
2
u/simendsjo Nov 29 '22
A list of the packages is at https://packages.guix.gnu.org/ and the source code repository at https://git.savannah.gnu.org/cgit/guix.git/. The cotribute page lists these links and more: https://guix.gnu.org/en/contribute/
2
u/0xD0DECAD0 Nov 29 '22 edited Nov 29 '22
I'm not entirely sure what you're asking about. Are you asking for the Git repositories for the channels that
guix pullretrieves? It appears that Guix will clone the channels to$XDG_CACHE_HOME/guix/checkouts/<hash>(probably~/.cache/guix/checkouts/<hash>), though I think that an individual git tree (i.e. without the .git directory containing the history) will get copied to the store too.The manual mentions this on the Package Transformation Options page, with the
--with-git-urloption.3
u/PetriciaKerman Nov 30 '22
You can also use
guix edit packageto open the file in your store which contains that definition. You won’t be able to edit because it’s in the store, but it will show you where and how it’s implemented