treewide/php-packages: Drop pkgs from arguments to packages

This commit is contained in:
Elis Hirwing
2021-02-27 11:29:20 +01:00
parent d8fb9d8222
commit 5ad7fb28f6
25 changed files with 90 additions and 91 deletions

View File

@@ -1,4 +1,4 @@
{ mkDerivation, fetchurl, pkgs, lib, php }:
{ mkDerivation, fetchurl, makeWrapper, lib, php }:
let
pname = "phpstan";
version = "0.12.78";
@@ -6,13 +6,13 @@ in
mkDerivation {
inherit pname version;
src = pkgs.fetchurl {
src = fetchurl {
url = "https://github.com/phpstan/phpstan/releases/download/${version}/phpstan.phar";
sha256 = "sha256-YPCh6HAVuFf2rJhUj/uzfqkWKN+Jd2iPfugSiTh65zc=";
};
phases = [ "installPhase" ];
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
@@ -21,7 +21,7 @@ mkDerivation {
--add-flags "$out/libexec/phpstan/phpstan.phar"
'';
meta = with pkgs.lib; {
meta = with lib; {
description = "PHP Static Analysis Tool";
longDescription = ''
PHPStan focuses on finding errors in your code without actually