Nils Gillmann <niaster...@grrlz.net> writes: > Jean Louis <g...@rcdrun.com> writes: > >> (define-public loudmouth >> (package >> (name "loudmouth") >> (version "1.4.3") >> (source (origin >> (method url-fetch) >> (uri (string-append >> "http://ftp.gnome.org/pub/GNOME/sources/loudmouth/1.4" >> "/loudmouth-" version ".tar.bz2")) > > (uri (string-append > "http://ftp.gnome.org/pub/GNOME/sources/" name > "/1.4/" name "-" version ".tar.bz2"))
The "1.4" should also be replaced with (version-major+minor version), so that this part of the string doesn't have to be manually fixed when the version changes to 1.5.x or higher. Using the 'name' variable is less important, since that's unlikely to change. > In addition: there might be an mirror:// thing for > gnome ftp Yes. So it should be like this: (uri (string-append "mirror://gnome/sources/" name "/" (version-major+minor version) "/" name "-" version ".tar.bz2")) Thanks! Mark