David Lecompte <[email protected]> writes:

> I tried following instructions in the manual section 2.4.1 to only
> install a subset of locales, with guix on Trisquel (I installed guix via
> the installation script, not via apt).
>
> I created a file ~/guix-packages/fr-locales.scm with:
> guix install -L ./guix-packages glibc-french-utf8-locales
> (define-module (fr-locales))
>
> (use-modules (gnu packages base))
>
> (define fr-locales
>   (make-glibc-utf8-locales
>    glibc
>    #:locales (list "en_US" "fr_FR")
>    #:name "glibc-french-utf8-locales"))
>
> I tried
> guix install -L ./guix-packages glibc-french-utf8-locales
> guix install -L ./guix-packages fr-locales
>
> But in both cases, the answer was "unknown package".
> What am I doing wrong?

Hi David,

It looks like you just forgot to wrap your definition in a module and export 
it. Here's one of my Scheme modules that works correctly:


(define-module (lambdatronic packages locales)
  #:use-module ((gnu packages base) #:select (glibc make-glibc-utf8-locales))
  #:export (glibc-utf8-locales-minimal))

(define glibc-utf8-locales-minimal
  (make-glibc-utf8-locales
   glibc
   #:locales (list "C" "en_US")
   #:name "glibc-utf8-locales-minimal"))


Happy hacking!
  Gary

-- 
GPG Key ID: C4FBEDBD
Use `gpg --search-keys [email protected]' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Why is HTML email a security nightmare? See https://useplaintext.email/

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Reply via email to