nixpkgs/pkgs/development
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
..
arduino arduino: set meta.platforms and add myself as maintainer 2015-02-07 10:47:53 +01:00
compilers haxe: Add setup-hook and patch to add haxlib path. 2015-03-20 08:39:21 +01:00
coq-modules coq-contribs: fix various packages 2015-03-01 17:53:51 +01:00
eclipse
go-modules/generic Use go1.4 instead of go-1.4 in derivation names. Closes #6243 2015-02-09 10:16:14 +01:00
guile-modules rename all occurrences of stdenv.cc.gcc to stdenv.cc.cc 2015-01-14 20:27:55 -08:00
haskell-modules hackage-packages.nix: re-generate from Hackage 2015-03-19T13:39:37+0100 2015-03-19 17:55:19 +01:00
interpreters bundlerEnv: add support for additional build inputs 2015-03-18 14:15:50 +01:00
libraries Revert "VLC wants a newer version of libdvdnav" 2015-03-19 13:19:17 +01:00
lisp-modules Update CLX 2015-01-18 01:58:20 +03:00
lua-modules
misc avr-gcc-with-avr-libc: remove unused gcc-4.6 patch 2015-02-22 12:41:14 +01:00
mobile Pulled androidndk_r8e into a separate file. 2015-03-03 15:31:49 +00:00
ocaml-modules Adds ocaml-dolog-1.0 2015-03-19 19:14:18 +01:00
perl-modules perl DB_file: fix build by not changing $out/lib/perl5 2015-01-20 14:08:17 +01:00
pharo Pharo launcher 0.2.1 --> 0.2.4 2015-02-13 12:48:32 +01:00
pure-modules/pure-gsl
python-modules graph-tool: enable drawing and openmp for algorithms 2015-03-17 12:25:35 +01:00
qtcreator
r-modules RAppArmor: use AppArmor 2.9 2015-03-19 14:14:28 +01:00
ruby-modules
tools nixpkgs: arcanist 20150118 -> 20150318 2015-03-19 17:46:24 -05:00
web Fix a bad revert at 1e4ba025c2 2015-03-18 11:50:19 +01:00