summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2011-08-29 07:25:56 +0000
committerPeter Simons <simons@cryp.to>2011-08-29 07:25:56 +0000
commite9c8a9307b3f96adb392ac10b46a53edd4461f99 (patch)
treef6624079471bf07ec8b7af45a630cfa657267ab2 /pkgs/development/compilers/ghc
parent346481f4837e283f40882831f8d22846b896e2de (diff)
downloadnixpkgs-e9c8a9307b3f96adb392ac10b46a53edd4461f99.tar
nixpkgs-e9c8a9307b3f96adb392ac10b46a53edd4461f99.tar.gz
nixpkgs-e9c8a9307b3f96adb392ac10b46a53edd4461f99.tar.bz2
nixpkgs-e9c8a9307b3f96adb392ac10b46a53edd4461f99.tar.lz
nixpkgs-e9c8a9307b3f96adb392ac10b46a53edd4461f99.tar.xz
nixpkgs-e9c8a9307b3f96adb392ac10b46a53edd4461f99.tar.zst
nixpkgs-e9c8a9307b3f96adb392ac10b46a53edd4461f99.zip
pkgs/development/compilers/ghc/7.0.4-binary.nix: support linux, too
svn path=/nixpkgs/trunk/; revision=28860
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r--pkgs/development/compilers/ghc/7.0.4-binary.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/development/compilers/ghc/7.0.4-binary.nix b/pkgs/development/compilers/ghc/7.0.4-binary.nix
index 0767759ff16..a536891d291 100644
--- a/pkgs/development/compilers/ghc/7.0.4-binary.nix
+++ b/pkgs/development/compilers/ghc/7.0.4-binary.nix
@@ -1,7 +1,7 @@
 {stdenv, fetchurl, perl, ncurses, gmp}:
 
 let
-  supportedPlatforms = ["x86_64-darwin"];
+  supportedPlatforms = ["x86_64-linux" "i686-linux" "x86_64-darwin"];
 in
 
 assert stdenv.lib.elem stdenv.system supportedPlatforms;
@@ -12,7 +12,17 @@ stdenv.mkDerivation rec {
   name = "ghc-${version}-binary";
 
   src =
-    if stdenv.system == "x86_64-darwin" then
+    if stdenv.system == "i686-linux" then
+      fetchurl {
+        url = "http://haskell.org/ghc/dist/${version}/ghc-${version}-i386-unknown-linux.tar.bz2";
+        sha256 = "0mfnihiyjl06f5w1yrjp36sw9g67g2ymg5sdl0g23h1pab99jx63";
+      }
+    else if stdenv.system == "x86_64-linux" then
+      fetchurl {
+        url = "http://haskell.org/ghc/dist/${version}/ghc-${version}-x86_64-unknown-linux.tar.bz2";
+        sha256 = "0mc4rhqcxz427wq4zgffmnn0d2yjqvy6af4x9mha283p1gdj5q99";
+      }
+    else if stdenv.system == "x86_64-darwin" then
       fetchurl {
         url = "http://haskell.org/ghc/dist/${version}/ghc-${version}-x86_64-apple-darwin.tar.bz2";
         sha256 = "1m2ml88p1swf4dnv2vq8hz4drcp46n3ahpfi05wh01ajkf8hnn3l";