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, unzip, lib, php }:
let
pname = "composer";
version = "2.0.11";
@@ -13,17 +13,17 @@ mkDerivation {
dontUnpack = true;
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
install -D $src $out/libexec/composer/composer.phar
makeWrapper ${php}/bin/php $out/bin/composer \
--add-flags "$out/libexec/composer/composer.phar" \
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.unzip ]}
--prefix PATH : ${lib.makeBinPath [ unzip ]}
'';
meta = with pkgs.lib; {
meta = with lib; {
description = "Dependency Manager for PHP";
license = licenses.mit;
homepage = "https://getcomposer.org/";

View File

@@ -1,4 +1,4 @@
{ mkDerivation, fetchurl, pkgs, lib, php }:
{ mkDerivation, fetchurl, makeWrapper, unzip, lib, php }:
let
pname = "composer";
version = "1.10.15";
@@ -13,17 +13,17 @@ mkDerivation {
dontUnpack = true;
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
install -D $src $out/libexec/composer/composer.phar
makeWrapper ${php}/bin/php $out/bin/composer \
--add-flags "$out/libexec/composer/composer.phar" \
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.unzip ]}
--prefix PATH : ${lib.makeBinPath [ unzip ]}
'';
meta = with pkgs.lib; {
meta = with lib; {
description = "Dependency Manager for PHP";
license = licenses.mit;
homepage = "https://getcomposer.org/";