diff options
| author | aszlig <aszlig@redmoonstudios.org> | 2015-03-20 08:32:52 +0100 |
|---|---|---|
| committer | aszlig <aszlig@redmoonstudios.org> | 2015-03-20 08:39:21 +0100 |
| commit | d68e9b855c0a8fffef309bb5ce702b299664e591 (patch) | |
| tree | 7f83ffd3d33aff168f88a7f417e5ae019fb3d63d /pkgs/development/python-modules/GitPython/hardcode-git-path.patch | |
| parent | 9b41cf0281974ad92f8bb97f0b2a5a84e92a01ed (diff) | |
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>
Diffstat (limited to 'pkgs/development/python-modules/GitPython/hardcode-git-path.patch')
0 files changed, 0 insertions, 0 deletions
