mirror of
https://codeberg.org/icewind/flakelight-php.git
synced 2026-06-03 09:54:20 +02:00
per php-version phpunit
This commit is contained in:
parent
d143b04ec3
commit
3afda04092
2 changed files with 27 additions and 15 deletions
|
|
@ -1,12 +1,18 @@
|
|||
{
|
||||
phpunit,
|
||||
callPackage,
|
||||
php,
|
||||
majorVersion,
|
||||
testDependencies,
|
||||
writeShellApplication,
|
||||
}:
|
||||
writeShellApplication {
|
||||
name = "phpunit";
|
||||
runtimeInputs = [phpunit] ++ testDependencies;
|
||||
text = ''
|
||||
phpunit "$@"
|
||||
'';
|
||||
}
|
||||
}: let
|
||||
unwrapped = callPackage ../pkgs/phpunit.nix {
|
||||
inherit php majorVersion;
|
||||
};
|
||||
in
|
||||
writeShellApplication {
|
||||
name = "phpunit";
|
||||
runtimeInputs = [unwrapped] ++ testDependencies;
|
||||
text = ''
|
||||
phpunit "$@"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue