Merge pull request #87406 from talyz/master

arcanist: Fix on darwin
This commit is contained in:
Kim Lindberger 2020-05-14 21:15:31 +02:00 committed by GitHub
commit 11399d1e76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,10 +42,12 @@ stdenv.mkDerivation {
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"
${if stdenv.isDarwin then ''
echo "#! $shell -e" > $out/bin/arc
echo "exec ${php}/bin/php $out/libexec/arcanist/scripts/arcanist.php "'"$@"' >> $out/bin/arc
chmod +x $out/bin/arc''
else ''
ln -s $out/libexec/arcanist/scripts/arcanist.php $out/bin/arc''}
'';
meta = {