mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: linux-libre: Add alternate URLs.
Fixes <http://bugs.gnu.org/14851>. Reported by Andreas Enge <andreas@enge.fr>. * gnu/packages/linux.scm (linux-libre-urls): New procedure. (linux-libre-headers, linux-libre): Use it.
This commit is contained in:
parent
1855577207
commit
6023cc7429
1 changed files with 18 additions and 6 deletions
|
@ -42,6 +42,22 @@ (define-public (system->linux-architecture arch)
|
|||
((string-prefix? "arm" arch) "arm")
|
||||
(else arch))))
|
||||
|
||||
(define (linux-libre-urls version)
|
||||
"Return a list of URLs for Linux-Libre VERSION."
|
||||
(list (string-append
|
||||
"http://linux-libre.fsfla.org/pub/linux-libre/releases/"
|
||||
version "-gnu/linux-libre-" version "-gnu.tar.xz")
|
||||
|
||||
;; XXX: Work around <http://bugs.gnu.org/14851>.
|
||||
(string-append
|
||||
"ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-"
|
||||
version "-gnu.tar.xz")
|
||||
|
||||
;; Maybe this URL will become valid eventually.
|
||||
(string-append
|
||||
"mirror://gnu/linux-libre/" version "-gnu/linux-libre-"
|
||||
version "-gnu.tar.xz")))
|
||||
|
||||
(define-public linux-libre-headers
|
||||
(let* ((version* "3.3.8")
|
||||
(build-phase
|
||||
|
@ -69,9 +85,7 @@ (define-public linux-libre-headers
|
|||
(version version*)
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"http://linux-libre.fsfla.org/pub/linux-libre/releases/3.3.8-gnu/linux-libre-"
|
||||
version "-gnu.tar.xz"))
|
||||
(uri (linux-libre-urls version))
|
||||
(sha256
|
||||
(base32
|
||||
"0jkfh0z1s6izvdnc3njm39dhzp1cg8i06jv06izwqz9w9qsprvnl"))))
|
||||
|
@ -175,9 +189,7 @@ (define-public linux-libre
|
|||
(version version*)
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"http://linux-libre.fsfla.org/pub/linux-libre/releases/3.3.8-gnu/linux-libre-"
|
||||
version "-gnu.tar.xz"))
|
||||
(uri (linux-libre-urls version))
|
||||
(sha256
|
||||
(base32
|
||||
"0jkfh0z1s6izvdnc3njm39dhzp1cg8i06jv06izwqz9w9qsprvnl"))))
|
||||
|
|
Loading…
Reference in a new issue