diff options
author | Elis Hirwing <elis@hirwing.se> | 2020-10-11 16:33:54 +0200 |
---|---|---|
committer | Elis Hirwing <elis@hirwing.se> | 2020-10-11 17:03:34 +0200 |
commit | 5c8e29da49a08631c2bda58d35df2f4da53e2f89 (patch) | |
tree | 871961ef723c9689637d6b2167b01d852dda2122 /pkgs/top-level | |
parent | c665e4d12e8842826a451c5c06d0a111d1cb3c32 (diff) |
phpPackages.box: Move to separate directory
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/php-packages.nix | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 1e915f93851f..1713d1b777f1 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -23,38 +23,17 @@ let isPhp74 = pkgs.lib.versionAtLeast php.version "7.4"; pcre' = if (lib.versionAtLeast php.version "7.3") then pcre2 else pcre; + + callPackage = pkgs.newScope { + inherit mkDerivation php isPhp73 isPhp74 buildPecl pcre'; + }; in { inherit buildPecl; # This is a set of interactive tools based on PHP. packages = { - box = mkDerivation rec { - version = "2.7.5"; - pname = "box"; - - 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 ] ++ teams.php.members; - }; - }; + box = callPackage ../development/php-packages/box { }; composer = mkDerivation rec { version = "1.10.13"; |