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: 04aa269fb1f7
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 672171be577b
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jul 13, 2017

  1. phpPackages.phpcbf: init at 2.6.0

    CMCDragonkai authored and fpletz committed Jul 13, 2017
    Copy the full SHA
    5c336fc View commit details
  2. Merge pull request #27303 from MatrixAI/phpcbf

    phpPackages.phpcbf: init at 2.6.0
    fpletz authored Jul 13, 2017
    Copy the full SHA
    672171b View commit details
Showing with 27 additions and 0 deletions.
  1. +27 −0 pkgs/top-level/php-packages.nix
27 changes: 27 additions & 0 deletions pkgs/top-level/php-packages.nix
Original file line number Diff line number Diff line change
@@ -286,4 +286,31 @@ let
maintainers = with maintainers; [ javaguirre ];
};
};

phpcbf = pkgs.stdenv.mkDerivation rec {
name = "phpcbf-${version}";
version = "2.6.0";

src = pkgs.fetchurl {
url = "https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${version}/phpcbf.phar";
sha256 = "1ijf52cgd85ypvw431nnmzij6156ryhfvmajpkr7plfw0iccqc5j";
};

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

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

meta = with pkgs.lib; {
description = "PHP coding standard beautifier and fixer";
license = licenses.bsd3;
homepage = https://squizlabs.github.io/PHP_CodeSniffer/;
maintainers = with maintainers; [ cmcdragonkai ];
};
};
}; in self