mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
3c90c28124
The source has been moved to the new upstream since Box2 is abandonned.
34 lines
879 B
Nix
34 lines
879 B
Nix
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
|
|
let
|
|
pname = "box";
|
|
version = "3.16.0";
|
|
in
|
|
mkDerivation {
|
|
inherit pname version;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/box-project/box/releases/download/${version}/box.phar";
|
|
sha256 = "sha256-9QjijzCdfpWjGb3NXxPc+7GOuRy3psrJtpvHeZ14vfk=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
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"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "An application for building and managing Phars";
|
|
license = licenses.mit;
|
|
homepage = "https://github.com/box-project/box";
|
|
maintainers = with maintainers; [ jtojnar ] ++ teams.php.members;
|
|
};
|
|
}
|