lol
at release-16.03-start 42 lines 1.1 kB view raw
1{ stdenv, fetchgit, ocaml, zlib, neko, camlp4 }: 2 3stdenv.mkDerivation { 4 name = "haxe-3.1.3"; 5 6 buildInputs = [ocaml zlib neko camlp4]; 7 8 src = fetchgit { 9 url = "https://github.com/HaxeFoundation/haxe.git"; 10 sha256 = "1p4yja6flv2r04q9lcrjxia3f3fsmhi3d88s0lz0nf0r4m61bjz0"; 11 fetchSubmodules = true; 12 13 # Tag 3.1.3 14 rev = "7be30670b2f1f9b6082499c8fb9e23c0a6df6c28"; 15 }; 16 17 prePatch = '' 18 sed -i -e 's|com.class_path <- \[|&"'"$out/lib/haxe/std/"'";|' main.ml 19 ''; 20 21 patches = [ ./haxelib-nix.patch ]; 22 23 buildFlags = [ "all" "tools" ]; 24 25 installPhase = '' 26 install -vd "$out/bin" "$out/lib/haxe/std" 27 install -vt "$out/bin" haxe haxelib 28 cp -vr std "$out/lib/haxe" 29 ''; 30 31 setupHook = ./setup-hook.sh; 32 33 dontStrip = true; 34 35 meta = with stdenv.lib; { 36 description = "Programming language targeting JavaScript, Flash, NekoVM, PHP, C++"; 37 homepage = http://haxe.org; 38 license = with licenses; [ gpl2 bsd2 /*?*/ ]; # -> docs/license.txt 39 maintainers = [ maintainers.marcweber ]; 40 platforms = platforms.linux; 41 }; 42}