phpunit: 10.3.3 -> 10.4.1
Also switch to the new Composer builder
This commit is contained in:
parent
a1e85db798
commit
dfa9e40a0f
2 changed files with 1559 additions and 27 deletions
1542
pkgs/development/tools/misc/phpunit/composer.lock
generated
Normal file
1542
pkgs/development/tools/misc/phpunit/composer.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,36 +1,26 @@
|
||||||
{ stdenv, fetchurl, makeWrapper, lib, php }:
|
{ lib, fetchFromGitHub, php }:
|
||||||
|
|
||||||
let
|
php.buildComposerProject (finalAttrs: {
|
||||||
pname = "phpunit";
|
pname = "phpunit";
|
||||||
version = "10.3.3";
|
version = "10.4.1";
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
inherit pname version;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://phar.phpunit.de/phpunit-${version}.phar";
|
owner = "sebastianbergmann";
|
||||||
hash = "sha256-fhgsP/sA2nQXBQ34V2/Zvc+SPiDYWfkEXKKHoD+Heak=";
|
repo = "phpunit";
|
||||||
|
rev = finalAttrs.version;
|
||||||
|
hash = "sha256-AKUMCa8QuXqE0HrMaxR8SvhdoYjL/CmaTzf5UhszPPw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontUnpack = true;
|
# TODO: Open a PR against https://github.com/sebastianbergmann/phpunit
|
||||||
|
# Missing `composer.lock` from the repository.
|
||||||
|
composerLock = ./composer.lock;
|
||||||
|
vendorHash = "sha256-xFXf9Nc6OxvZJ4Bt9zFhhdsJY4VwnztfCE4j5tOqQKQ=";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
meta = {
|
||||||
|
changelog = "https://github.com/sebastianbergmann/phpunit/blob/${finalAttrs.version}/ChangeLog-${lib.versions.majorMinor finalAttrs.version}.md";
|
||||||
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";
|
description = "PHP Unit Testing framework";
|
||||||
license = licenses.bsd3;
|
|
||||||
homepage = "https://phpunit.de";
|
homepage = "https://phpunit.de";
|
||||||
changelog = "https://github.com/sebastianbergmann/phpunit/blob/${version}/ChangeLog-${lib.versions.majorMinor version}.md";
|
license = lib.licenses.bsd3;
|
||||||
maintainers = with maintainers; [ onny ] ++ teams.php.members;
|
maintainers = [ lib.maintainers.onny ] ++ lib.teams.php.members;
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue