nixpkgs-suyu/pkgs
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
..
applications Update Conkeror. Works now 2015-03-19 22:13:07 +03:00
build-support grsecurity: Update stable and test patches 2015-03-15 03:49:58 +01:00
data Merge #6472: add ddccontrol 2015-03-16 21:52:59 +01:00
desktops Patch gnome-control-center not to override VPN plugin paths. 2015-03-16 13:21:23 +01:00
development haxe: Add setup-hook and patch to add haxlib path. 2015-03-20 08:39:21 +01:00
games flightgear: bump version to 3.4 (close #6385) 2015-03-17 22:58:39 +01:00
misc vim-plugins: wakatime 3.0.7 -> 3.0.8 2015-03-10 04:58:45 +01:00
os-specific Merge pull request #6897 from joachifm/apparmor-revdeps 2015-03-19 19:53:27 +03:00
servers Merge pull request #6611 from jagajaga/slurm 2015-03-19 21:06:49 +03:00
shells fish: 2.1.1 -> 2.1.2 2015-03-05 01:55:45 +01:00
stdenv Fix eval-release.nix evaluation 2015-03-06 15:09:51 +01:00
test
tools Merge pull request #6884 from offlinehacker/pkgs/t/add 2015-03-19 03:14:58 +03:00
top-level Adds ocaml-dolog-1.0 2015-03-19 19:14:18 +01:00