mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
pkgs/development/compilers/ghc/7.0.4-binary.nix: support linux, too
svn path=/nixpkgs/trunk/; revision=28860
This commit is contained in:
parent
346481f483
commit
e9c8a9307b
@ -1,7 +1,7 @@
|
|||||||
{stdenv, fetchurl, perl, ncurses, gmp}:
|
{stdenv, fetchurl, perl, ncurses, gmp}:
|
||||||
|
|
||||||
let
|
let
|
||||||
supportedPlatforms = ["x86_64-darwin"];
|
supportedPlatforms = ["x86_64-linux" "i686-linux" "x86_64-darwin"];
|
||||||
in
|
in
|
||||||
|
|
||||||
assert stdenv.lib.elem stdenv.system supportedPlatforms;
|
assert stdenv.lib.elem stdenv.system supportedPlatforms;
|
||||||
@ -12,7 +12,17 @@ stdenv.mkDerivation rec {
|
|||||||
name = "ghc-${version}-binary";
|
name = "ghc-${version}-binary";
|
||||||
|
|
||||||
src =
|
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 {
|
fetchurl {
|
||||||
url = "http://haskell.org/ghc/dist/${version}/ghc-${version}-x86_64-apple-darwin.tar.bz2";
|
url = "http://haskell.org/ghc/dist/${version}/ghc-${version}-x86_64-apple-darwin.tar.bz2";
|
||||||
sha256 = "1m2ml88p1swf4dnv2vq8hz4drcp46n3ahpfi05wh01ajkf8hnn3l";
|
sha256 = "1m2ml88p1swf4dnv2vq8hz4drcp46n3ahpfi05wh01ajkf8hnn3l";
|
||||||
|
Loading…
Reference in New Issue
Block a user