From 1bf5a7e920bb6bf7f8bd1815df17cfba5a987619 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Sun, 27 Nov 2016 19:00:57 +0100
Subject: gnu: gcj: Inherit source field from "gcc".

* gnu/packages/gcc.scm (gcj)[source]: Inherit source from "gcc" package.
---
 gnu/packages/gcc.scm | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 7ff6e3c56f..4d93317785 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -522,15 +522,9 @@ (define-public gcj
   (package (inherit gcc)
     (name "gcj")
     (version (package-version gcc))
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "mirror://gnu/gcc/gcc-"
-                                  version "/gcc-" version ".tar.bz2"))
-              (sha256
-               (base32
-                "0zmnm00d2a1hsd41g34bhvxzvxisa2l584q3p447bd91lfjv4ci3"))
-              (patches (cons (search-patch "gcj-arm-mode.patch")
-                             (origin-patches (package-source gcc))))))
+    (source (origin (inherit (package-source gcc))
+                    (patches (cons (search-patch "gcj-arm-mode.patch")
+                                   (origin-patches (package-source gcc))))))
     (inputs
      `(("fastjar" ,fastjar)
        ("perl" ,perl)
-- 
cgit v1.2.3