phpunit: init at 10.0.11
This commit is contained in:
parent
1ff31399da
commit
5e489eee1b
35
pkgs/development/tools/misc/phpunit/default.nix
Normal file
35
pkgs/development/tools/misc/phpunit/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -17056,6 +17056,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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user