From 460eacedc4f1f01a9e5e84b84657af5be928615a Mon Sep 17 00:00:00 2001
From: ng0 <ng0@n0.is>
Date: Sat, 23 Dec 2017 21:17:24 +0000
Subject: [PATCH] gnu: mozjs@38: Workaround for people.mozilla.org shutdown.

Read https://lists.gnu.org/archive/html/guix-devel/2017-12/msg00189.html
for more details about this workaround.

* gnu/packages/gnuzilla.scm (mozjs@38)[source]: Provide additional URL.
---
 gnu/packages/gnuzilla.scm | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index c53c31613..9aa13ebf2 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -6,7 +6,7 @@
 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
-;;; Copyright © 2017 ng0 <ng0@infotropique.org>
+;;; Copyright © 2017 ng0 <ng0@n0.is>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -168,9 +168,17 @@ in C/C++.")
     (version "38.2.1.rc0")
     (source (origin
               (method url-fetch)
-              (uri (string-append
-                    "https://people.mozilla.org/~sstangl/"
-                    name "-" version ".tar.bz2"))
+              (uri (list (string-append
+                          "https://people.mozilla.org/~sstangl/"
+                          name "-" version ".tar.bz2")
+                         ;; FIXME: people.mozilla.org has shut down:
+                         ;; https://lists.gnu.org/archive/html/guix-devel/2017-12/msg00189.html
+                         ;; This is an unofficial temporary location until we
+                         ;; can build  mozjs-38 from the new location:
+                         (string-append
+                          "https://d.n0.is/d/v/mozjs/"
+                          name "-" version ".tar.bz2")))
+
               (sha256
                (base32
                 "0p4bmbpgkfsj54xschcny0a118jdrdgg0q29rwxigg3lh5slr681"))
-- 
2.15.1