4793f2c7d3
Signed-off-by: Austin Seipp <aseipp@pobox.com>
50 lines
1.4 KiB
Nix
50 lines
1.4 KiB
Nix
{ stdenv, fetchgit, php, flex, makeWrapper }:
|
|
|
|
let
|
|
libphutil = fetchgit {
|
|
url = "git://github.com/phacility/libphutil.git";
|
|
rev = "672c0f7d5da9be6cda619428a9da3b91a670ea2f";
|
|
sha256 = "830c7abce7244afa188255a6f288c345004cc4be1c8bbe93afa2aa2f1768f025";
|
|
};
|
|
arcanist = fetchgit {
|
|
url = "git://github.com/phacility/arcanist.git";
|
|
rev = "64d03ff68bf2ff4ef99186472704df8aface9ef3";
|
|
sha256 = "e9c5f9a9dcb1be0b7fd6f5fbda865e14277ddb0c1cedd256c459b3540ec6ded7";
|
|
};
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "arcanist-${version}";
|
|
version = "20150525";
|
|
|
|
src = [ arcanist libphutil ];
|
|
buildInputs = [ php makeWrapper flex ];
|
|
|
|
unpackPhase = "true";
|
|
buildPhase = ''
|
|
ORIG=`pwd`
|
|
cp -R ${libphutil} libphutil
|
|
cp -R ${arcanist} arcanist
|
|
chmod +w -R libphutil arcanist
|
|
cd libphutil/support/xhpast
|
|
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"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Command line interface to Phabricator";
|
|
homepage = "http://phabricator.org";
|
|
license = stdenv.lib.licenses.asl20;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|