diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2013-07-17 15:32:52 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2013-07-17 15:32:52 +0200 |
| commit | 6023cc74290831c49c4f5a7d9fc055d4493ad055 (patch) | |
| tree | 6100e687dc8ed2e4acfa33c1ca73b13c6417972b | |
| parent | 18555772079bb568173355a4f972e4add87a26b3 (diff) | |
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.
| -rw-r--r-- | gnu/packages/linux.scm | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index dde53e9f5d8..3a37f572cbc 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm | |||
| @@ -42,6 +42,22 @@ | |||
| 42 | ((string-prefix? "arm" arch) "arm") | 42 | ((string-prefix? "arm" arch) "arm") |
| 43 | (else arch)))) | 43 | (else arch)))) |
| 44 | 44 | ||
| 45 | (define (linux-libre-urls version) | ||
| 46 | "Return a list of URLs for Linux-Libre VERSION." | ||
| 47 | (list (string-append | ||
| 48 | "http://linux-libre.fsfla.org/pub/linux-libre/releases/" | ||
| 49 | version "-gnu/linux-libre-" version "-gnu.tar.xz") | ||
| 50 | |||
| 51 | ;; XXX: Work around <http://bugs.gnu.org/14851>. | ||
| 52 | (string-append | ||
| 53 | "ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-" | ||
| 54 | version "-gnu.tar.xz") | ||
| 55 | |||
| 56 | ;; Maybe this URL will become valid eventually. | ||
| 57 | (string-append | ||
| 58 | "mirror://gnu/linux-libre/" version "-gnu/linux-libre-" | ||
| 59 | version "-gnu.tar.xz"))) | ||
| 60 | |||
| 45 | (define-public linux-libre-headers | 61 | (define-public linux-libre-headers |
| 46 | (let* ((version* "3.3.8") | 62 | (let* ((version* "3.3.8") |
| 47 | (build-phase | 63 | (build-phase |
| @@ -69,9 +85,7 @@ | |||
| 69 | (version version*) | 85 | (version version*) |
| 70 | (source (origin | 86 | (source (origin |
| 71 | (method url-fetch) | 87 | (method url-fetch) |
| 72 | (uri (string-append | 88 | (uri (linux-libre-urls version)) |
| 73 | "http://linux-libre.fsfla.org/pub/linux-libre/releases/3.3.8-gnu/linux-libre-" | ||
| 74 | version "-gnu.tar.xz")) | ||
| 75 | (sha256 | 89 | (sha256 |
| 76 | (base32 | 90 | (base32 |
| 77 | "0jkfh0z1s6izvdnc3njm39dhzp1cg8i06jv06izwqz9w9qsprvnl")))) | 91 | "0jkfh0z1s6izvdnc3njm39dhzp1cg8i06jv06izwqz9w9qsprvnl")))) |
| @@ -175,9 +189,7 @@ | |||
| 175 | (version version*) | 189 | (version version*) |
| 176 | (source (origin | 190 | (source (origin |
| 177 | (method url-fetch) | 191 | (method url-fetch) |
| 178 | (uri (string-append | 192 | (uri (linux-libre-urls version)) |
| 179 | "http://linux-libre.fsfla.org/pub/linux-libre/releases/3.3.8-gnu/linux-libre-" | ||
| 180 | version "-gnu.tar.xz")) | ||
| 181 | (sha256 | 193 | (sha256 |
| 182 | (base32 | 194 | (base32 |
| 183 | "0jkfh0z1s6izvdnc3njm39dhzp1cg8i06jv06izwqz9w9qsprvnl")))) | 195 | "0jkfh0z1s6izvdnc3njm39dhzp1cg8i06jv06izwqz9w9qsprvnl")))) |
