help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ampersand sign (&) in URL.


From: Ludovic Courtès
Subject: Re: Ampersand sign (&) in URL.
Date: Tue, 04 Oct 2016 15:35:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Dmitry Nikolaev <address@hidden> skribis:

> But it's download URL contains ampersand sign (&).
>
> http://astralinux.com/images/fonts/PTAstraSans&Serif_TTF_ver1001.zip
>
> Guix returns
>
> build failed: invalid character `&' in name
> `PTAstraSans&Seif_TTF_ver1001.zip.drv'
>
> How do I escape & in URL so guix accept it?

Instead of escaping it, add a ‘file-name’ field in the ‘origin’ form
that does not contain the offending character:

  (origin
    (method url-fetch)
    (uri …)
    (sha256 …)
    (file-name "the-font.zip"))

HTH!
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]