2012-10-07 09:24:51 +00:00
|
|
|
{ stdenv, fetchsvn, ocaml, zlib, neko }:
|
2009-11-30 01:05:04 +00:00
|
|
|
|
2012-10-07 09:24:51 +00:00
|
|
|
stdenv.mkDerivation {
|
2013-05-25 16:33:48 +00:00
|
|
|
name = "haxe-3.00";
|
2009-12-11 13:58:23 +00:00
|
|
|
|
2012-10-07 09:24:51 +00:00
|
|
|
buildInputs = [ocaml zlib neko];
|
2009-12-11 13:58:23 +00:00
|
|
|
|
2013-05-25 16:44:15 +00:00
|
|
|
src = fetchsvn {
|
2013-05-25 16:33:48 +00:00
|
|
|
url = "http://haxe.googlecode.com/svn/trunk";
|
2013-05-25 16:44:15 +00:00
|
|
|
sha256 = "0hg8qailhgrcdk7r4k9kmwfl9d9ds0vy0l7wbv5wdrrc34qzifm4";
|
2013-05-25 16:33:48 +00:00
|
|
|
rev = 6706;
|
2009-11-30 01:05:04 +00:00
|
|
|
};
|
2010-03-16 23:34:56 +00:00
|
|
|
|
2012-10-07 09:24:51 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's|com.class_path <- \[|&"'"$out/lib/haxe/std/"'";|' main.ml
|
|
|
|
'';
|
|
|
|
|
2012-10-08 00:20:32 +00:00
|
|
|
postBuild = ''
|
|
|
|
find std/tools -name '*.n' -delete
|
2013-05-25 16:41:11 +00:00
|
|
|
rm -f std/tools/haxedoc/haxedoc std/tools/haxelib/haxelib
|
2012-10-08 00:20:32 +00:00
|
|
|
'';
|
|
|
|
|
2013-05-25 16:33:48 +00:00
|
|
|
buildFlags = [ "all" "tools" ];
|
|
|
|
|
2012-10-07 09:24:51 +00:00
|
|
|
installPhase = ''
|
|
|
|
install -vd "$out/bin" "$out/lib/haxe/std"
|
|
|
|
install -vt "$out/bin" haxe haxelib haxedoc
|
2012-10-08 00:20:32 +00:00
|
|
|
cp -vr std "$out/lib/haxe"
|
2012-10-07 09:24:51 +00: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
|
|
|
}
|