Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8618334d8308
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6b11080f9f88
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Sep 30, 2019

  1. Copy the full SHA
    9cd1e90 View commit details

Commits on Oct 1, 2019

  1. Merge pull request #70069 from shyim/add-psalm

    phpPackages.psalm: init at 3.5.3
    etu authored Oct 1, 2019
    Copy the full SHA
    6b11080 View commit details
Showing with 26 additions and 0 deletions.
  1. +26 −0 pkgs/top-level/php-packages.nix
26 changes: 26 additions & 0 deletions pkgs/top-level/php-packages.nix
Original file line number Diff line number Diff line change
@@ -486,6 +486,32 @@ let
};
};

psalm = mkDerivation rec {
version = "3.5.3";
pname = "psalm";

src = pkgs.fetchurl {
url = "https://github.com/vimeo/psalm/releases/download/${version}/psalm.phar";
sha256 = "1n5pfzln82wzk1qa40c436lhbin1g06lfdk89q720yzrrs07r8sw";
};

phases = [ "installPhase" ];
nativeBuildInputs = [ pkgs.makeWrapper ];

installPhase = ''
mkdir -p $out/bin
install -D $src $out/libexec/psalm/psalm.phar
makeWrapper ${php}/bin/php $out/bin/psalm \
--add-flags "$out/libexec/psalm/psalm.phar"
'';

meta = with pkgs.lib; {
description = "A static analysis tool for finding errors in PHP applications";
license = licenses.mit;
homepage = https://github.com/vimeo/psalm;
};
};

psysh = mkDerivation rec {
version = "0.9.9";
pname = "psysh";