2015-07-21 18:14:28 +03:00
|
|
|
{ stdenv, fetchgit, ocaml, zlib, neko, camlp4 }:
|
2009-11-30 04:05:04 +03:00
|
|
|
|
2012-10-07 13:24:51 +04:00
|
|
|
stdenv.mkDerivation {
|
2014-06-01 17:13:04 +04:00
|
|
|
name = "haxe-3.1.3";
|
2009-12-11 16:58:23 +03:00
|
|
|
|
2015-07-21 18:14:28 +03:00
|
|
|
buildInputs = [ocaml zlib neko camlp4];
|
2009-12-11 16:58:23 +03:00
|
|
|
|
2014-06-01 17:13:04 +04:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/HaxeFoundation/haxe.git";
|
2016-06-02 14:26:44 +03:00
|
|
|
sha256 = "0d8s9yqsqcbr2lfw4xnmg7vzgb6k1jq6hlwwaf1kmn9wxpvcc6x9";
|
2014-06-01 17:13:04 +04:00
|
|
|
fetchSubmodules = true;
|
|
|
|
|
|
|
|
# Tag 3.1.3
|
|
|
|
rev = "7be30670b2f1f9b6082499c8fb9e23c0a6df6c28";
|
2009-11-30 04:05:04 +03:00
|
|
|
};
|
2010-03-17 02:34:56 +03:00
|
|
|
|
2012-10-07 13:24:51 +04:00
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's|com.class_path <- \[|&"'"$out/lib/haxe/std/"'";|' main.ml
|
|
|
|
'';
|
|
|
|
|
2015-03-20 10:32:52 +03:00
|
|
|
patches = [ ./haxelib-nix.patch ];
|
|
|
|
|
2013-05-25 20:33:48 +04:00
|
|
|
buildFlags = [ "all" "tools" ];
|
|
|
|
|
2012-10-07 13:24:51 +04:00
|
|
|
installPhase = ''
|
|
|
|
install -vd "$out/bin" "$out/lib/haxe/std"
|
2014-06-01 17:13:04 +04:00
|
|
|
install -vt "$out/bin" haxe haxelib
|
2012-10-08 04:20:32 +04:00
|
|
|
cp -vr std "$out/lib/haxe"
|
2012-10-07 13:24:51 +04:00
|
|
|
'';
|
|
|
|
|
2015-03-20 10:32:52 +03:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2012-10-07 13:24:51 +04:00
|
|
|
dontStrip = true;
|
|
|
|
|
2015-05-27 22:56:04 +03:00
|
|
|
meta = with stdenv.lib; {
|
2012-10-07 13:24:51 +04:00
|
|
|
description = "Programming language targeting JavaScript, Flash, NekoVM, PHP, C++";
|
|
|
|
homepage = http://haxe.org;
|
2015-05-27 22:56:04 +03:00
|
|
|
license = with licenses; [ gpl2 bsd2 /*?*/ ]; # -> docs/license.txt
|
|
|
|
maintainers = [ maintainers.marcweber ];
|
|
|
|
platforms = platforms.linux;
|
2012-10-07 13:24:51 +04:00
|
|
|
};
|
2009-11-30 04:05:04 +03:00
|
|
|
}
|