···3535 fi
36363737 # `git` flag here is to be used by local maintainers to speed up the bump process
3838- if [ "$1" = "git" ]; then
3838+ if [ $# -eq 1 ] && [ "$1" = "git" ]; then
3939 git switch -c "package-fluxcd-${LATEST_VERSION}"
4040 git add "$FLUXCD_PATH"/default.nix
4141 git commit -m "fluxcd: ${OLD_VERSION} -> ${LATEST_VERSION}"
···11+{ lib, stdenv, buildPecl, php, valgrind, pcre2 }:
22+let
33+ pname = "openswoole";
44+ version = "4.11.1";
55+in
66+buildPecl {
77+ inherit pname version;
88+99+ sha256 = "sha256-Rhoa4ny86dwB3e86/1W30AlDGRUDYjK8RusquKF5Izg=";
1010+1111+ buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
1212+ internalDeps = lib.optionals (lib.versionOlder php.version "7.4") [ php.extensions.hash ];
1313+1414+ meta = with lib; {
1515+ changelog = "https://pecl.php.net/package/openswoole/${version}";
1616+ description = "Coroutine-based concurrency library and high performance programmatic server for PHP";
1717+ homepage = "https://www.openswoole.com/";
1818+ license = licenses.asl20;
1919+ longDescription = "Open Swoole allows you to build high-performance, async multi-tasking webservices and applications using an easy to use Coroutine API.\nOpen Swoole is a complete async solution that has built-in support for async programming via coroutines.\nIt offers a range of multi-threaded I/O modules (HTTP Server, WebSockets, TaskWorkers, Process Pools) out of the box and support for popular PHP clients like PDO for MySQL, and CURL.\nYou can use the sync or async, Coroutine API to write whole applications or create thousands of light weight Coroutines within one Linux process.";
2020+ maintainers = teams.php.members;
2121+ };
2222+}
+41
pkgs/development/php-packages/pdepend/default.nix
···11+{ stdenv, fetchurl, makeWrapper, lib, php }:
22+33+let
44+ pname = "pdepend";
55+ version = "2.10.3";
66+in
77+stdenv.mkDerivation {
88+ inherit pname version;
99+1010+ src = fetchurl {
1111+ url = "https://github.com/pdepend/pdepend/releases/download/${version}/pdepend.phar";
1212+ sha256 = "I5+n8+a3rHRgW4OM6FbVcf3T1wu9zBrTSb5sGq7ArH4=";
1313+ };
1414+1515+ dontUnpack = true;
1616+1717+ nativeBuildInputs = [ makeWrapper ];
1818+1919+ installPhase = ''
2020+ runHook preInstall
2121+ mkdir -p $out/bin
2222+ install -D $src $out/libexec/pdepend/pdepend.phar
2323+ makeWrapper ${php}/bin/php $out/bin/pdepend \
2424+ --add-flags "$out/libexec/pdepend/pdepend.phar"
2525+ runHook postInstall
2626+ '';
2727+2828+ meta = with lib; {
2929+ description = "An adaptation of JDepend for PHP";
3030+ homepage = "https://github.com/pdepend/pdepend";
3131+ license = licenses.bsd3;
3232+ longDescription = "
3333+ PHP Depend is an adaptation of the established Java
3434+ development tool JDepend. This tool shows you the quality
3535+ of your design in terms of extensibility, reusability and
3636+ maintainability.
3737+ ";
3838+ maintainers = teams.php.members;
3939+ platforms = platforms.all;
4040+ };
4141+}