From 7b0736b7c01958036c8fc58f72f48a34306f64c6 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Fri, 30 May 2014 15:19:12 -0500 Subject: arcanist: Fix php exec (needed for arc diff) Signed-off-by: Austin Seipp --- pkgs/development/tools/misc/arcanist/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/tools/misc/arcanist/default.nix b/pkgs/development/tools/misc/arcanist/default.nix index add2f8621b0..58957a82752 100644 --- a/pkgs/development/tools/misc/arcanist/default.nix +++ b/pkgs/development/tools/misc/arcanist/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, php }: +{ stdenv, fetchgit, php, makeWrapper }: let libphutil = fetchgit { @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { version = "20140530"; src = [ arcanist libphutil ]; - buildInputs = [ php ]; + buildInputs = [ php makeWrapper ]; unpackPhase = "true"; buildPhase = "true"; @@ -27,6 +27,9 @@ stdenv.mkDerivation rec { cp -R ${arcanist} $out/libexec/arcanist ln -s $out/libexec/arcanist/bin/arc $out/bin + + wrapProgram $out/bin/arc \ + --prefix PATH : "${php}/bin" ''; meta = { -- cgit 1.4.1