2017-05-02 09:01:22 +00:00
|
|
|
{ stdenv, fetchgit, ocaml, zlib, pcre, neko, camlp4 }:
|
2009-11-30 01:05:04 +00:00
|
|
|
|
2012-10-07 09:24:51 +00:00
|
|
|
stdenv.mkDerivation {
|
2017-05-02 09:01:22 +00:00
|
|
|
name = "haxe-3.4.2";
|
2009-12-11 13:58:23 +00:00
|
|
|
|
2017-05-02 09:01:22 +00:00
|
|
|
buildInputs = [ocaml zlib pcre neko camlp4];
|
2009-12-11 13:58:23 +00:00
|
|
|
|
2014-06-01 13:13:04 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/HaxeFoundation/haxe.git";
|
2017-05-02 09:01:22 +00:00
|
|
|
sha256 = "1m5fp183agqv8h3ynhxw4kndkpq2d6arysmirv3zl3vz5crmpwqd";
|
2014-06-01 13:13:04 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
|
2017-05-02 09:01:22 +00:00
|
|
|
# Tag 3.4.2
|
|
|
|
rev = "890f8c70cf23ce6f9fe0fdd0ee514a9699433ca7";
|
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 = ''
|
2017-05-02 09:01:22 +00:00
|
|
|
sed -i -e 's|"/usr/lib/haxe/std/";|"'"$out/lib/haxe/std/"'";\n&|g' src/main.ml
|
2012-10-07 09:24:51 +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"
|
2014-06-01 13:13:04 +00:00
|
|
|
install -vt "$out/bin" haxe haxelib
|
2012-10-08 00:20:32 +00:00
|
|
|
cp -vr std "$out/lib/haxe"
|
2012-10-07 09:24:51 +00:00
|
|
|
'';
|
|
|
|
|
2015-03-20 07:32:52 +00:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2012-10-07 09:24:51 +00:00
|
|
|
dontStrip = true;
|
|
|
|
|
2015-05-27 19:56:04 +00:00
|
|
|
meta = with stdenv.lib; {
|
2012-10-07 09:24:51 +00:00
|
|
|
description = "Programming language targeting JavaScript, Flash, NekoVM, PHP, C++";
|
2017-05-02 09:01:22 +00:00
|
|
|
homepage = https://haxe.org;
|
2015-05-27 19:56:04 +00:00
|
|
|
license = with licenses; [ gpl2 bsd2 /*?*/ ]; # -> docs/license.txt
|
|
|
|
maintainers = [ maintainers.marcweber ];
|
2016-12-13 18:22:31 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2012-10-07 09:24:51 +00:00
|
|
|
};
|
2009-11-30 01:05:04 +00:00
|
|
|
}
|