c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
35 lines
937 B
Nix
35 lines
937 B
Nix
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
|
|
|
|
let
|
|
pname = "psysh";
|
|
version = "0.11.16";
|
|
in
|
|
mkDerivation {
|
|
inherit pname version;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/bobthecow/psysh/releases/download/v${version}/psysh-v${version}.tar.gz";
|
|
sha256 = "sha256-4FEjMtp7MRTjpdb1ZpKqCa0erxrW90JyGy1ZmMBVdZE=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
tar -xzf $src -C $out/bin
|
|
chmod +x $out/bin/psysh
|
|
wrapProgram $out/bin/psysh --prefix PATH : "${lib.makeBinPath [ php ]}"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/bobthecow/psysh/releases/tag/v${version}";
|
|
description = "PsySH is a runtime developer console, interactive debugger and REPL for PHP.";
|
|
license = licenses.mit;
|
|
homepage = "https://psysh.org/";
|
|
maintainers = teams.php.members;
|
|
};
|
|
}
|