* Added GHC and Helium. Note that GHC is built using a pre-built GHC
for Linux/x86, which is not pure and doesn't work on other platforms! svn path=/nixpkgs/trunk/; revision=776
This commit is contained in:
parent
73049cea22
commit
191a465665
16
pkgs/development/compilers/ghc/boot.nix
Normal file
16
pkgs/development/compilers/ghc/boot.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{stdenv, fetchurl, perl}:
|
||||||
|
|
||||||
|
assert perl != null;
|
||||||
|
|
||||||
|
assert stdenv.system == "i686-linux";
|
||||||
|
|
||||||
|
derivation {
|
||||||
|
name = "ghc-6.2";
|
||||||
|
system = stdenv.system;
|
||||||
|
builder = ./boot.sh;
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://www.haskell.org/ghc/dist/6.2/ghc-6.2-i386-unknown-linux.tar.bz2;
|
||||||
|
md5 = "5b2f19ca00fd7494002047d7fb4dce3e";
|
||||||
|
};
|
||||||
|
inherit stdenv perl;
|
||||||
|
}
|
11
pkgs/development/compilers/ghc/boot.sh
Executable file
11
pkgs/development/compilers/ghc/boot.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
buildinputs="$perl"
|
||||||
|
. $stdenv/setup || exit 1
|
||||||
|
|
||||||
|
tar xvfj $src || exit 1
|
||||||
|
cd ghc-* || exit 1
|
||||||
|
./configure --prefix=$out || exit 1
|
||||||
|
make || exit 1
|
||||||
|
make install || exit 1
|
||||||
|
strip -S $out/lib/*/*.a || exit 1
|
11
pkgs/development/compilers/ghc/builder.sh
Executable file
11
pkgs/development/compilers/ghc/builder.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
buildinputs="$perl $ghc $m4"
|
||||||
|
. $stdenv/setup || exit 1
|
||||||
|
|
||||||
|
tar xvfj $src || exit 1
|
||||||
|
cd ghc-* || exit 1
|
||||||
|
./configure --prefix=$out || exit 1
|
||||||
|
make || exit 1
|
||||||
|
make install || exit 1
|
||||||
|
strip -S $out/lib/*/*.a || exit 1
|
14
pkgs/development/compilers/ghc/default.nix
Normal file
14
pkgs/development/compilers/ghc/default.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{stdenv, fetchurl, perl, ghc, m4}:
|
||||||
|
|
||||||
|
assert perl != null && ghc != null && m4 != null;
|
||||||
|
|
||||||
|
derivation {
|
||||||
|
name = "ghc-6.2";
|
||||||
|
system = stdenv.system;
|
||||||
|
builder = ./builder.sh;
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://www.haskell.org/ghc/dist/6.2/ghc-6.2-src.tar.bz2;
|
||||||
|
md5 = "cc495e263f4384e1d6b38e851bf6eca0";
|
||||||
|
};
|
||||||
|
inherit stdenv perl ghc m4;
|
||||||
|
}
|
15
pkgs/development/compilers/helium/builder.sh
Executable file
15
pkgs/development/compilers/helium/builder.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
buildinputs="$ghc"
|
||||||
|
. $stdenv/setup || exit 1
|
||||||
|
|
||||||
|
tar xvfz $src || exit 1
|
||||||
|
cd helium-* || exit 1
|
||||||
|
cd lvm/src || exit 1
|
||||||
|
./configure --prefix $out || exit 1
|
||||||
|
cd ../../heliumNT || exit 1
|
||||||
|
./configure --prefix=$out || exit 1
|
||||||
|
cd src || exit 1
|
||||||
|
make depend || exit 1
|
||||||
|
make EXTRA_HC_OPTS=-O2 || exit 1
|
||||||
|
make install
|
14
pkgs/development/compilers/helium/default.nix
Normal file
14
pkgs/development/compilers/helium/default.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{stdenv, fetchurl, ghc}:
|
||||||
|
|
||||||
|
assert ghc != null;
|
||||||
|
|
||||||
|
derivation {
|
||||||
|
name = "helium-1.2";
|
||||||
|
system = stdenv.system;
|
||||||
|
builder = ./builder.sh;
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://www.cs.uu.nl/helium/distr/helium-1.2-src.tar.gz;
|
||||||
|
md5 = "6ea1d6e4436e137d75f5354b4758f299";
|
||||||
|
};
|
||||||
|
inherit stdenv ghc;
|
||||||
|
}
|
@ -180,6 +180,48 @@
|
|||||||
inherit fetchurl stdenv binutils;
|
inherit fetchurl stdenv binutils;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
jikes = (import ../development/compilers/jikes) {
|
||||||
|
inherit fetchurl stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
|
j2sdk = (import ../development/compilers/j2sdk) {
|
||||||
|
inherit fetchurl stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
|
strategoxt = (import ../development/compilers/strategoxt) {
|
||||||
|
inherit fetchurl stdenv aterm;
|
||||||
|
sdf = sdf2;
|
||||||
|
};
|
||||||
|
|
||||||
|
strategoxtsvn = (import ../development/compilers/strategoxt/trunk.nix) {
|
||||||
|
inherit fetchsvn stdenv autotools which aterm;
|
||||||
|
sdf = sdf2;
|
||||||
|
};
|
||||||
|
|
||||||
|
strategoxt093 = (import ../development/compilers/strategoxt/strategoxt-0.9.3.nix) {
|
||||||
|
inherit fetchurl stdenv aterm;
|
||||||
|
sdf = sdf2;
|
||||||
|
};
|
||||||
|
|
||||||
|
tiger = (import ../development/compilers/tiger) {
|
||||||
|
inherit fetchurl stdenv aterm strategoxt;
|
||||||
|
sdf = sdf2;
|
||||||
|
};
|
||||||
|
|
||||||
|
ghcboot = (import ../development/compilers/ghc/boot.nix) {
|
||||||
|
inherit fetchurl stdenv perl;
|
||||||
|
};
|
||||||
|
|
||||||
|
ghc = (import ../development/compilers/ghc) {
|
||||||
|
inherit fetchurl stdenv perl;
|
||||||
|
ghc = ghcboot;
|
||||||
|
m4 = gnum4;
|
||||||
|
};
|
||||||
|
|
||||||
|
helium = (import ../development/compilers/helium) {
|
||||||
|
inherit fetchurl stdenv ghc;
|
||||||
|
};
|
||||||
|
|
||||||
perl = (import ../development/interpreters/perl) {
|
perl = (import ../development/interpreters/perl) {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
@ -196,14 +238,6 @@
|
|||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
jikes = (import ../development/compilers/jikes) {
|
|
||||||
inherit fetchurl stdenv;
|
|
||||||
};
|
|
||||||
|
|
||||||
j2sdk = (import ../development/compilers/j2sdk) {
|
|
||||||
inherit fetchurl stdenv;
|
|
||||||
};
|
|
||||||
|
|
||||||
apacheant = (import ../development/tools/build-managers/apache-ant) {
|
apacheant = (import ../development/tools/build-managers/apache-ant) {
|
||||||
inherit fetchurl stdenv j2sdk;
|
inherit fetchurl stdenv j2sdk;
|
||||||
};
|
};
|
||||||
@ -278,26 +312,6 @@
|
|||||||
sglr = sglr_3_10_2;
|
sglr = sglr_3_10_2;
|
||||||
};
|
};
|
||||||
|
|
||||||
strategoxt = (import ../development/compilers/strategoxt) {
|
|
||||||
inherit fetchurl stdenv aterm;
|
|
||||||
sdf = sdf2;
|
|
||||||
};
|
|
||||||
|
|
||||||
strategoxtsvn = (import ../development/compilers/strategoxt/trunk.nix) {
|
|
||||||
inherit fetchsvn stdenv autotools which aterm;
|
|
||||||
sdf = sdf2;
|
|
||||||
};
|
|
||||||
|
|
||||||
strategoxt093 = (import ../development/compilers/strategoxt/strategoxt-0.9.3.nix) {
|
|
||||||
inherit fetchurl stdenv aterm;
|
|
||||||
sdf = sdf2;
|
|
||||||
};
|
|
||||||
|
|
||||||
tiger = (import ../development/compilers/tiger) {
|
|
||||||
inherit fetchurl stdenv aterm strategoxt;
|
|
||||||
sdf = sdf2;
|
|
||||||
};
|
|
||||||
|
|
||||||
expat = (import ../development/libraries/expat) {
|
expat = (import ../development/libraries/expat) {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
@ -24,9 +24,11 @@ let {
|
|||||||
pkgs.bisonnew
|
pkgs.bisonnew
|
||||||
pkgs.flexnew
|
pkgs.flexnew
|
||||||
pkgs.gcc
|
pkgs.gcc
|
||||||
|
pkgs.strategoxt093
|
||||||
|
pkgs.ghc
|
||||||
|
pkgs.helium
|
||||||
pkgs.perl
|
pkgs.perl
|
||||||
pkgs.python
|
pkgs.python
|
||||||
pkgs.strategoxt093
|
|
||||||
pkgs.libxml2
|
pkgs.libxml2
|
||||||
pkgs.libxslt
|
pkgs.libxslt
|
||||||
pkgs.docbook_xml_dtd
|
pkgs.docbook_xml_dtd
|
||||||
|
Loading…
Reference in New Issue
Block a user