nixpkgs/pkgs/development/compilers/haxe
aszlig 3bb0e6df8a
haxe: Add package for the hxcpp runtime library.
I'm not adding this to pkgs/development/libraries because it somewhat is
strongly tied to Haxe itself, because otherwise you can't compile to C++
and in the event that someone is going to create something like
"haxePackages" someday it is easier to notice when it's residing in the
Haxe folder.

In theory it would also work by using imperative haxelib, but you'll get
precompiled libraries which need to be patched on NixOS systems. That's
the main reason I was packaging this, among from the fact that even when
patching the libraries, it still leads to occasional library hell and
instabilities.

The package has two outputs: One with the library itself, needed for
compile time ($out) and another one ($lib) which is needed at runtime,
so after compiling, the $out path can be safely garbage collected.

Right now, I've set meta.platforms to Linux only, because that's where
I've tested it. In order to get it running on other platforms the
targetArch attribute has to be set accordingly.

We also build everything completely from scratch, even though there are
binaries within the source ZIP file. The main reason is to make smaller
library dependencies by avoiding bundled libraries and using the ones we
already ship with nixpkgs.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2015-03-20 08:47:11 +01:00
..
default.nix haxe: Add setup-hook and patch to add haxlib path. 2015-03-20 08:39:21 +01:00
haxelib-nix.patch haxe: Add setup-hook and patch to add haxlib path. 2015-03-20 08:39:21 +01:00
hxcpp.nix haxe: Add package for the hxcpp runtime library. 2015-03-20 08:47:11 +01:00
setup-hook.sh haxe: Add setup-hook and patch to add haxlib path. 2015-03-20 08:39:21 +01:00