2012-10-07 11:24:51 +02:00
|
|
|
{ stdenv, fetchsvn, ocaml, zlib, neko }:
|
2009-11-30 02:05:04 +01:00
|
|
|
|
2012-10-07 11:24:51 +02:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "haxe-2.10";
|
2009-12-11 14:58:23 +01:00
|
|
|
|
2012-10-07 11:24:51 +02:00
|
|
|
buildInputs = [ocaml zlib neko];
|
2009-12-11 14:58:23 +01:00
|
|
|
|
2012-10-07 11:24:51 +02:00
|
|
|
src = fetchsvn {
|
|
|
|
url = "http://haxe.googlecode.com/svn/tags/v2-10";
|
|
|
|
sha256 = "dbd3c655e4136eb68a165ef83b96bfc1f0f2eb9ec8729603b19bcd717a61a679";
|
2009-11-30 02:05:04 +01:00
|
|
|
};
|
2010-03-17 00:34:56 +01:00
|
|
|
|
2012-10-07 11:24:51 +02:00
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's|com.class_path <- \[|&"'"$out/lib/haxe/std/"'";|' main.ml
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -vd "$out/bin" "$out/lib/haxe/std"
|
|
|
|
install -vt "$out/bin" haxe haxelib haxedoc
|
|
|
|
find std -mindepth 1 -maxdepth 1 -path std/tools -o \
|
|
|
|
-exec cp -vr '{}' "$out/lib/haxe/std" \;
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 02:05:04 +01:00
|
|
|
}
|