uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
44
pkgs/development/php-packages/php-parallel-lint/default.nix
Normal file
44
pkgs/development/php-packages/php-parallel-lint/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ mkDerivation, fetchFromGitHub, makeWrapper, lib, php }:
|
||||
let
|
||||
pname = "php-parallel-lint";
|
||||
version = "1.3.2";
|
||||
in
|
||||
mkDerivation {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "php-parallel-lint";
|
||||
repo = "PHP-Parallel-Lint";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-pTHH19HwqyOj5pSmH7l0JlntNVtMdu4K9Cl+qyrrg9U=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
php.packages.composer
|
||||
php.packages.box
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
composer dump-autoload
|
||||
box build
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/bin
|
||||
install -D parallel-lint.phar $out/libexec/php-parallel-lint/php-parallel-lint.phar
|
||||
makeWrapper ${php}/bin/php $out/bin/php-parallel-lint \
|
||||
--add-flags "$out/libexec/php-parallel-lint/php-parallel-lint.phar"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to check syntax of PHP files faster than serial check with fancier output";
|
||||
license = licenses.bsd2;
|
||||
homepage = "https://github.com/php-parallel-lint/PHP-Parallel-Lint";
|
||||
maintainers = with maintainers; [ jtojnar ] ++ teams.php.members;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue