From 50b6e06bfe8c7d0d1a753e24820be913ab548012 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 25 Dec 2022 19:46:47 +0100 Subject: [PATCH] php.packages.composer: update `src` attribute So it can be automatically updated with `nix-update` --- pkgs/development/php-packages/composer/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/php-packages/composer/default.nix b/pkgs/development/php-packages/composer/default.nix index d7c686a7db13..c8ee78a3c5d0 100644 --- a/pkgs/development/php-packages/composer/default.nix +++ b/pkgs/development/php-packages/composer/default.nix @@ -1,4 +1,5 @@ { mkDerivation, fetchurl, makeWrapper, unzip, lib, php }: + let pname = "composer"; version = "2.5.1"; @@ -7,7 +8,7 @@ mkDerivation { inherit pname version; src = fetchurl { - url = "https://getcomposer.org/download/${version}/composer.phar"; + url = "https://github.com/composer/composer/releases/download/${version}/composer.phar"; sha256 = "sha256-8blP7hGlvWoarl13yNomnfJ8cF/MgG6/TIwub6hkXCA="; };