summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2016-11-27 19:00:57 +0100
committerRicardo Wurmus <rekado@elephly.net>2016-11-27 19:00:57 +0100
commit1bf5a7e920bb6bf7f8bd1815df17cfba5a987619 (patch)
tree6e6ac253cc721ee0a61c5d4836bd223eb75ae16b /gnu/packages
parentbac640997072a3f1b729eaa7df04d94bd0675bb0 (diff)
downloadguix-1bf5a7e920bb6bf7f8bd1815df17cfba5a987619.tar.gz
gnu: gcj: Inherit source field from "gcc".
* gnu/packages/gcc.scm (gcj)[source]: Inherit source from "gcc" package.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/gcc.scm12
1 files 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 @@ as the 'native-search-paths' field."
   (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)