phpPackages.box: init at 2.7.5
This commit is contained in:
parent
b2e315f97f
commit
26293bae50
|
@ -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 {
|
php-cs-fixer = pkgs.stdenv.mkDerivation rec {
|
||||||
name = "php-cs-fixer-${version}";
|
name = "php-cs-fixer-${version}";
|
||||||
version = "2.8.3";
|
version = "2.8.3";
|
||||||
|
|
Loading…
Reference in New Issue