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