Skip to content

Commit

Permalink
Merge pull request NixOS#217207 from onny/phpunit
Browse files Browse the repository at this point in the history
phpunit: init at 10.0.11
  • Loading branch information
onny committed Feb 22, 2023
2 parents bf02778 + 5e489ee commit 0e36aa1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/development/tools/misc/phpunit/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ stdenv, fetchurl, makeWrapper, lib, php }:

let
pname = "phpunit";
version = "10.0.11";
in
stdenv.mkDerivation {
inherit pname version;

src = fetchurl {
url = "https://phar.phpunit.de/phpunit-${version}.phar";
hash = "sha256-zAAFDiZ2wjncGMI4c74+tzWR++rKMjv1h5gk2GobhbI=";
};

dontUnpack = true;

nativeBuildInputs = [ makeWrapper ];

installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -D $src $out/libexec/phpunit/phpunit.phar
makeWrapper ${php}/bin/php $out/bin/phpunit \
--add-flags "$out/libexec/phpunit/phpunit.phar"
runHook postInstall
'';

meta = with lib; {
description = "PHP Unit Testing framework";
license = licenses.bsd3;
homepage = "https://phpunit.de";
changelog = "https://github.com/sebastianbergmann/phpunit/blob/${version}/ChangeLog-${lib.versions.majorMinor version}.md";
maintainers = with maintainers; [ onny ] ++ teams.php.members;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17052,6 +17052,8 @@ with pkgs;

ansible-doctor = with python3.pkgs; toPythonApplication ansible-doctor;

phpunit = callPackage ../development/tools/misc/phpunit { };

### DEVELOPMENT / TOOLS / LANGUAGE-SERVERS

ansible-language-server = callPackage ../development/tools/language-servers/ansible-language-server { };
Expand Down

0 comments on commit 0e36aa1

Please sign in to comment.