aszlig d68e9b855c
haxe: Add setup-hook and patch to add haxlib path.
Introduces a new environment variable called HAXELIB_PATH and the patch
for haxelib is trying to search that environment variable for other
libraries. If the haxelib path for a particular library isn't found, it
reverts to the normal behaviour of searching the user's home directory
for a file called .haxelib, which in turn points to a repsitory path and
that in turn has .current/.dev files to point it to the right version
number.

This avoids workarounds like this when using Nix to build Haxe projects:

configurePhase = ''
  export HOME="$(pwd)"
  echo "$(pwd)" > .haxelib

  mkdir dependency1
  echo dev > dependency1/.current
  echo "${dependency1}" > dependency1/.dev

  mkdir dependency2
  echo dev > dependency2/.current
  echo "${dependency2}" > dependency2/.dev
'';

Now every haxelib is expected to be in $out/lib/haxe/$name and whenever
it is listed in buildInputs of another Haxe derivation, HAXELIB_PATH
gets automatically set in the build environment.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2015-03-20 08:39:21 +01:00
..
2014-12-10 09:48:11 +00:00
2015-03-16 15:50:48 +01:00
2015-03-05 18:21:56 -05:00
2015-01-13 22:33:49 +01:00
2014-11-29 06:14:53 +00:00
2015-02-24 22:15:51 -05:00
2014-11-20 08:38:09 -06:00
2015-03-04 22:15:46 +01:00
2015-03-09 01:03:01 +03:00
2015-01-19 09:31:35 +00:00
2014-10-24 23:04:48 -05:00
2015-03-04 22:15:46 +01:00
2015-03-04 11:55:47 +00:00
2015-03-18 05:11:31 -05:00
2015-01-02 00:01:40 +01:00
2015-02-19 00:07:20 -08:00
2015-01-07 12:56:59 +01:00
2014-09-13 12:26:07 +02:00
2015-01-13 22:33:49 +01:00
2015-01-20 09:30:09 +01:00
2015-02-10 09:48:41 -05:00
2014-11-10 10:03:52 +01:00
2014-11-18 07:26:16 +00:00
2015-03-05 18:04:21 +01:00
2015-03-05 23:01:21 +09:00
2014-12-25 11:44:33 +01:00
2015-01-19 14:50:52 +01:00
2015-01-01 15:45:30 +01:00
2014-11-13 20:51:32 +00:00
2015-03-09 01:03:01 +03:00
2015-03-05 20:49:28 +01:00
2015-02-21 19:55:24 -05:00
2015-02-23 02:40:27 -08:00
2015-03-04 11:14:58 +01:00