pkgs/development/compilers/ghc/*-binary.nix: added a meta.platforms attribute to all ghc bootstrap versions

svn path=/nixpkgs/trunk/; revision=28408
This commit is contained in:
Peter Simons 2011-08-09 07:41:10 +00:00
parent 275c99ce85
commit 0be3dae42f
4 changed files with 24 additions and 5 deletions

View File

@ -1,6 +1,10 @@
{stdenv, fetchurl, perl, libedit, ncurses, gmp}: {stdenv, fetchurl, perl, libedit, ncurses, gmp}:
assert stdenv.system == "i686-darwin" || stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux"; let
supportedPlatforms = ["i686-darwin" "x86_64-linux" "i686-linux"];
in
assert stdenv.lib.elem stdenv.system supportedPlatforms;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "6.10.1"; version = "6.10.1";
@ -100,5 +104,5 @@ stdenv.mkDerivation rec {
[ $(./main) == "yes" ] [ $(./main) == "yes" ]
''; '';
meta.platforms = stdenv.lib.platforms.haskellPlatforms; meta.platforms = supportedPlatforms;
} }

View File

@ -1,6 +1,10 @@
{stdenv, fetchurl, perl, libedit, ncurses, gmp}: {stdenv, fetchurl, perl, libedit, ncurses, gmp}:
assert stdenv.system == "i686-darwin" || stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux"; let
supportedPlatforms = ["i686-darwin" "x86_64-linux" "i686-linux"];
in
assert stdenv.lib.elem stdenv.system supportedPlatforms;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "6.10.2"; version = "6.10.2";
@ -99,4 +103,5 @@ stdenv.mkDerivation rec {
[ $(./main) == "yes" ] [ $(./main) == "yes" ]
''; '';
meta.platforms = supportedPlatforms;
} }

View File

@ -1,6 +1,10 @@
{stdenv, fetchurl, perl, ncurses, gmp}: {stdenv, fetchurl, perl, ncurses, gmp}:
assert stdenv.system == "i686-darwin" || stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux"; let
supportedPlatforms = ["x86_64-linux" "i686-linux"];
in
assert stdenv.lib.elem stdenv.system supportedPlatforms;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "6.12.1"; version = "6.12.1";
@ -101,4 +105,5 @@ stdenv.mkDerivation rec {
[ $(./main) == "yes" ] [ $(./main) == "yes" ]
''; '';
meta.platforms = supportedPlatforms;
} }

View File

@ -1,6 +1,10 @@
{stdenv, fetchurl, perl, readline, ncurses, gmp}: {stdenv, fetchurl, perl, readline, ncurses, gmp}:
assert stdenv.system == "i686-darwin" || stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux"; let
supportedPlatforms = ["i686-darwin" "x86_64-linux" "i686-linux"];
in
assert stdenv.lib.elem stdenv.system supportedPlatforms;
stdenv.mkDerivation { stdenv.mkDerivation {
name = if stdenv.system == "i686-darwin" then "ghc-6.6.1-binary" else "ghc-6.4.2-binary"; name = if stdenv.system == "i686-darwin" then "ghc-6.6.1-binary" else "ghc-6.4.2-binary";
@ -64,4 +68,5 @@ stdenv.mkDerivation {
'' else ""; '' else "";
meta.platforms = supportedPlatforms;
} }