diff options
author | Austin Seipp <aseipp@pobox.com> | 2014-06-07 07:11:50 -0500 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2014-06-07 07:12:02 -0500 |
commit | 4dd5496bd427f29cffc295ad00ba47476cba303c (patch) | |
tree | 609d96f57f4c674438038e64c7c1f23a7eb3b8f1 /pkgs/development/tools/misc/arcanist | |
parent | 0136fcb3df8997a3ec89d3e072baddc66462f10c (diff) |
arcanist: build xhpast for 'arc liberate'
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/development/tools/misc/arcanist')
-rw-r--r-- | pkgs/development/tools/misc/arcanist/default.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/development/tools/misc/arcanist/default.nix b/pkgs/development/tools/misc/arcanist/default.nix index 9cc8e7c7f6bd3..02fe572edabd0 100644 --- a/pkgs/development/tools/misc/arcanist/default.nix +++ b/pkgs/development/tools/misc/arcanist/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, php, makeWrapper }: +{ stdenv, fetchgit, php, flex, makeWrapper }: let libphutil = fetchgit { @@ -17,17 +17,23 @@ stdenv.mkDerivation rec { version = "20140606"; src = [ arcanist libphutil ]; - buildInputs = [ php makeWrapper ]; + buildInputs = [ php makeWrapper flex ]; unpackPhase = "true"; - buildPhase = "true"; + buildPhase = '' + ORIG=`pwd` + chmod +w -R ${libphutil} + cd ${libphutil}/support/xhpast + ls + make clean all install + cd $ORIG + ''; installPhase = '' mkdir -p $out/bin $out/libexec cp -R ${libphutil} $out/libexec/libphutil cp -R ${arcanist} $out/libexec/arcanist ln -s $out/libexec/arcanist/bin/arc $out/bin - wrapProgram $out/bin/arc \ --prefix PATH : "${php}/bin" ''; |