phpPackages.box: init at 2.7.5

This commit is contained in:
Jan Tojnar 2017-12-06 16:38:34 +01:00
parent b2e315f97f
commit 26293bae50
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -347,6 +347,33 @@ let
};
};
box = pkgs.stdenv.mkDerivation rec {
name = "box-${version}";
version = "2.7.5";
src = pkgs.fetchurl {
url = "https://github.com/box-project/box2/releases/download/${version}/box-${version}.phar";
sha256 = "1zmxdadrv0i2l8cz7xb38gnfmfyljpsaz2nnkjzqzksdmncbgd18";
};
phases = [ "installPhase" ];
buildInputs = [ pkgs.makeWrapper ];
installPhase = ''
mkdir -p $out/bin
install -D $src $out/libexec/box/box.phar
makeWrapper ${php}/bin/php $out/bin/box \
--add-flags "-d phar.readonly=0 $out/libexec/box/box.phar"
'';
meta = with pkgs.lib; {
description = "An application for building and managing Phars";
license = licenses.mit;
homepage = https://box-project.github.io/box2/;
maintainers = with maintainers; [ jtojnar ];
};
};
php-cs-fixer = pkgs.stdenv.mkDerivation rec {
name = "php-cs-fixer-${version}";
version = "2.8.3";