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 = "phpmd";
version = "2.8.2";
@@ -8,13 +8,13 @@ in
mkDerivation {
inherit pname version;
src = pkgs.fetchurl {
src = fetchurl {
url = "https://github.com/phpmd/phpmd/releases/download/${version}/phpmd.phar";
sha256 = "1i8qgzxniw5d8zjpypalm384y7qfczapfq70xmg129laq6xiqlqb";
};
phases = [ "installPhase" ];
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
@@ -23,7 +23,7 @@ mkDerivation {
--add-flags "$out/libexec/phpmd/phpmd.phar"
'';
meta = with pkgs.lib; {
meta = with lib; {
description = "PHP code quality analyzer";
license = licenses.bsd3;
homepage = "https://phpmd.org/";