phpPackages.composer: switch to finalAttrs
pattern
This commit is contained in:
parent
1bcbba5012
commit
39bea5f1ba
|
@ -1,11 +1,11 @@
|
|||
{ mkDerivation, fetchurl, makeBinaryWrapper, unzip, lib, php }:
|
||||
|
||||
mkDerivation rec {
|
||||
mkDerivation (finalAttrs: {
|
||||
pname = "composer";
|
||||
version = "2.5.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/composer/composer/releases/download/${version}/composer.phar";
|
||||
url = "https://github.com/composer/composer/releases/download/${finalAttrs.version}/composer.phar";
|
||||
hash = "sha256-8Hk0+tRPkEjA3IdaUGzKMcwnlNauv8GGfzsfv0jc4sU=";
|
||||
};
|
||||
|
||||
|
@ -24,10 +24,10 @@ mkDerivation rec {
|
|||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/composer/composer/releases/tag/${version}";
|
||||
changelog = "https://github.com/composer/composer/releases/tag/${finalAttrs.version}";
|
||||
description = "Dependency Manager for PHP";
|
||||
homepage = "https://getcomposer.org/";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ offline ] ++ lib.teams.php.members;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue