From 6d58b9b86864e9bc1ebb7ebed7dd1e2fe927891e Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Sun, 24 Jun 2018 22:01:04 +0200 Subject: [PATCH] phpPackages.psysh: init at 0.9.6 (#42377) --- pkgs/top-level/php-packages.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index f62c1154c9d2..f50a3fe37d71 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -494,4 +494,30 @@ let maintainers = with maintainers; [ cmcdragonkai etu ]; }; }; + + psysh = pkgs.stdenv.mkDerivation rec { + name = "psysh-${version}"; + version = "0.9.6"; + + src = pkgs.fetchurl { + url = "https://github.com/bobthecow/psysh/releases/download/v${version}/psysh-v${version}.tar.gz"; + sha256 = "06icmyn7v229mpfplqj76kjnp1gh4ns0nrxa7bsckyqhzi425kc6"; + }; + + phases = [ "installPhase" ]; + nativeBuildInputs = [ pkgs.makeWrapper ]; + + installPhase = '' + mkdir -p $out/bin + tar -xzf $src -C $out/bin + wrapProgram $out/bin/psysh + ''; + + meta = with pkgs.lib; { + description = "PsySH is a runtime developer console, interactive debugger and REPL for PHP."; + license = licenses.mit; + homepage = https://psysh.org/; + maintainers = with maintainers; [ caugner ]; + }; + }; }; in self