2012-10-07 10:24:51 +01:00
|
|
|
{ stdenv, fetchsvn, ocaml, zlib, neko }:
|
2009-11-30 01:05:04 +00:00
|
|
|
|
2012-10-07 10:24:51 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "haxe-2.10";
|
2009-12-11 13:58:23 +00:00
|
|
|
|
2012-10-07 10:24:51 +01:00
|
|
|
buildInputs = [ocaml zlib neko];
|
2009-12-11 13:58:23 +00:00
|
|
|
|
2013-03-26 18:56:09 +00:00
|
|
|
srcs = fetchsvn {
|
2012-10-07 10:24:51 +01:00
|
|
|
url = "http://haxe.googlecode.com/svn/tags/v2-10";
|
2013-03-26 18:56:09 +00:00
|
|
|
sha256 = "0vwdlj0vmmf97bg6cish7yah36aca2q599vwzbr1m0jpjbvindkh";
|
|
|
|
ignoreExternals = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
ocamllibs = fetchsvn {
|
|
|
|
url = "http://ocamllibs.googlecode.com/svn/trunk";
|
|
|
|
sha256 = "143s320xn2xalm0lnw46h1fvy48qg7my3j8cf66f0wwzv2fisr1q";
|
|
|
|
rev = 256;
|
|
|
|
ignoreExternals = true;
|
2009-11-30 01:05:04 +00:00
|
|
|
};
|
2010-03-16 23:34:56 +00:00
|
|
|
|
2012-10-07 10:24:51 +01:00
|
|
|
prePatch = ''
|
2013-03-26 18:56:09 +00:00
|
|
|
cp -r "$ocamllibs" libs
|
|
|
|
chmod -R u+w libs
|
2012-10-07 10:24:51 +01:00
|
|
|
sed -i -e 's|com.class_path <- \[|&"'"$out/lib/haxe/std/"'";|' main.ml
|
|
|
|
'';
|
|
|
|
|
2012-10-08 01:20:32 +01:00
|
|
|
postBuild = ''
|
|
|
|
find std/tools -name '*.n' -delete
|
|
|
|
rm std/tools/haxedoc/haxedoc std/tools/haxelib/haxelib
|
|
|
|
'';
|
|
|
|
|
2012-10-07 10:24:51 +01:00
|
|
|
installPhase = ''
|
|
|
|
install -vd "$out/bin" "$out/lib/haxe/std"
|
|
|
|
install -vt "$out/bin" haxe haxelib haxedoc
|
2012-10-08 01:20:32 +01:00
|
|
|
cp -vr std "$out/lib/haxe"
|
2012-10-07 10:24:51 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Programming language targeting JavaScript, Flash, NekoVM, PHP, C++";
|
|
|
|
homepage = http://haxe.org;
|
|
|
|
license = ["GPLv2" "BSD2" /*?*/ ]; # -> docs/license.txt
|
|
|
|
maintainers = [stdenv.lib.maintainers.marcweber];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2009-11-30 01:05:04 +00:00
|
|
|
}
|