2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
fetchurl,
|
2024-05-15 15:35:15 +00:00
|
|
|
lib,
|
|
|
|
php,
|
|
|
|
}:
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
let
|
2020-10-16 20:44:37 +00:00
|
|
|
pname = "psysh";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.12.4";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bobthecow";
|
|
|
|
repo = "psysh";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-Zvo0QWHkQhYD9OeT8cgTo2AW5tClzQfwdohSUd8pRBQ=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
composerLock = fetchurl {
|
|
|
|
name = "composer.lock";
|
|
|
|
url = "https://github.com/bobthecow/psysh/releases/download/v${version}/composer-v${version}.lock";
|
|
|
|
hash = "sha256-ur6mzla3uXeFL6aEHAPdpxGdvcgzOgTLW/CKPbNqeCg=";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
php.buildComposerProject2 (finalAttrs: {
|
|
|
|
inherit
|
|
|
|
pname
|
|
|
|
version
|
|
|
|
composerLock
|
|
|
|
src
|
|
|
|
;
|
|
|
|
|
|
|
|
composerVendor = php.mkComposerVendor {
|
|
|
|
inherit
|
|
|
|
src
|
|
|
|
version
|
|
|
|
pname
|
|
|
|
composerLock
|
|
|
|
;
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
composer config platform.php 7.4
|
|
|
|
composer require --no-update symfony/polyfill-iconv:1.29 symfony/polyfill-mbstring:1.29
|
|
|
|
composer require --no-update --dev roave/security-advisories:dev-latest
|
|
|
|
composer update --lock --no-install
|
|
|
|
'';
|
|
|
|
|
|
|
|
vendorHash = "sha256-mW276lzOTCY68EnvSVR+tD+gh3Y61GrWchVJHDZ4dpg=";
|
|
|
|
};
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/bobthecow/psysh/releases/tag/v${finalAttrs.version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "PsySH is a runtime developer console, interactive debugger and REPL for PHP";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "psysh";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-10-16 20:44:37 +00:00
|
|
|
homepage = "https://psysh.org/";
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = lib.teams.php.members;
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|