2014-06-01 14:13:04 +01:00
|
|
|
{ stdenv, fetchgit, ocaml, zlib, neko }:
|
2009-11-30 01:05:04 +00:00
|
|
|
|
2012-10-07 10:24:51 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-06-01 14:13:04 +01:00
|
|
|
name = "haxe-3.1.3";
|
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
|
|
|
|
2014-06-01 14:13:04 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/HaxeFoundation/haxe.git";
|
|
|
|
sha256 = "1p4yja6flv2r04q9lcrjxia3f3fsmhi3d88s0lz0nf0r4m61bjz0";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
|
|
|
|
# Tag 3.1.3
|
|
|
|
rev = "7be30670b2f1f9b6082499c8fb9e23c0a6df6c28";
|
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 = ''
|
|
|
|
sed -i -e 's|com.class_path <- \[|&"'"$out/lib/haxe/std/"'";|' main.ml
|
|
|
|
'';
|
|
|
|
|
2013-05-25 17:33:48 +01:00
|
|
|
buildFlags = [ "all" "tools" ];
|
|
|
|
|
2012-10-07 10:24:51 +01:00
|
|
|
installPhase = ''
|
|
|
|
install -vd "$out/bin" "$out/lib/haxe/std"
|
2014-06-01 14:13:04 +01:00
|
|
|
install -vt "$out/bin" haxe haxelib
|
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
|
|
|
}
|