Hello Tirifto,
Tirifto <[email protected]> writes: > Hello! > > I have recently installed Guix (once again) and would like to install a > subset > of the available glibc locales. The manual advises a custom package > definition > for this purpose, which I was able to install using ‘guix package --install- > from-expression’ and the code below as the argument: > > (use-modules (gnu packages base)) > > (define my-glibc-locales > (make-glibc-utf8-locales > glibc > #:locales (list "cs_CZ" "en_GB" "en_US" "eo" "fr_FR" "ru_RU") > #:name "glibc-my-utf8-locales")) > > my-glibc-locales > > The problem is, the package does not persist. When I try to upgrade my > packages, Guix complains like so: > > guix package: warning: package 'glibc-my-utf8-locales' no longer exists > > Is there an easy, straightforward way I can make the custom package last? I > have tried defining a custom module by storing the above definition in a file > and > storing the path to its directory in the environment variable > ‘GUIX_PACKAGE_PATH’. Guix then suggested I prefix the definition with > ‘(define- > module (my-glibc-locales))’, which I did, but that did not cause the package > to exist. So have you exported it? You're using define, meaning a private defintion. You should use define-public to export it. Or put it to #:export in the define-module invocation. Also that it "doesn't last" is not such a big deal, the only problem is that you won't be able to upgrade it through guix upgrade, but you can still upgrade it through guix install'ing the same definition again. Though of course, it's easier to just use guix upgrade which you will be able to do after you actually export it. > > Channels seem far more complex and involved than I’d be comfortable getting > at > this point, so I’m looking for an alternative. I’m not terribly opposed to > learning more about how Guix works, but for now my goal is just to get the > locales installed so I can carry on with the basic setup. Any help to that > end > would be appreciated. I wouldn't say so, channels are very similar to that GUIX_PACKAGE_PATH, except that it's more declarative and using standardized format. > > Thanks and regards > // Tirifto Rutherther
