mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
b2d7f4b1ba
Many (less easily automatically converted) old-style strings remain. Where there was any possible ambiguity about the exact version or variant intended, nothing was changed. IANAL, nor a search robot. Use `with stdenv.lib` wherever it makes sense.
43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
{ stdenv, fetchgit, ocaml, zlib, neko }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "haxe-3.1.3";
|
|
|
|
buildInputs = [ocaml zlib neko];
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/HaxeFoundation/haxe.git";
|
|
sha256 = "1p4yja6flv2r04q9lcrjxia3f3fsmhi3d88s0lz0nf0r4m61bjz0";
|
|
fetchSubmodules = true;
|
|
|
|
# Tag 3.1.3
|
|
rev = "7be30670b2f1f9b6082499c8fb9e23c0a6df6c28";
|
|
};
|
|
|
|
prePatch = ''
|
|
sed -i -e 's|com.class_path <- \[|&"'"$out/lib/haxe/std/"'";|' main.ml
|
|
'';
|
|
|
|
patches = [ ./haxelib-nix.patch ];
|
|
|
|
buildFlags = [ "all" "tools" ];
|
|
|
|
installPhase = ''
|
|
install -vd "$out/bin" "$out/lib/haxe/std"
|
|
install -vt "$out/bin" haxe haxelib
|
|
cp -vr std "$out/lib/haxe"
|
|
'';
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
dontStrip = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Programming language targeting JavaScript, Flash, NekoVM, PHP, C++";
|
|
homepage = http://haxe.org;
|
|
license = with licenses; [ gpl2 bsd2 /*?*/ ]; # -> docs/license.txt
|
|
maintainers = [ maintainers.marcweber ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|