From 4ff2402e2affd1ab25ff542d73b2926c57107afc Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 25 Dec 2022 20:41:55 +0100 Subject: [PATCH] php.extensions.ds: update `src` attribute So it can be automatically updated with `nix-update` --- pkgs/development/php-packages/ds/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/development/php-packages/ds/default.nix b/pkgs/development/php-packages/ds/default.nix index 2552a5bee3b6..7cbdfa17f972 100644 --- a/pkgs/development/php-packages/ds/default.nix +++ b/pkgs/development/php-packages/ds/default.nix @@ -1,14 +1,22 @@ -{ buildPecl, lib, pcre2, php }: +{ buildPecl, lib, pcre2, php, fetchFromGitHub }: -buildPecl { +let + version = "1.4.0"; +in buildPecl { + inherit version; pname = "ds"; - version = "1.4.0"; - sha256 = "1vwk5d27zd746767l8cvbcdr8r70v74vw0im38mlw1g85mc31fd9"; + src = fetchFromGitHub { + owner = "php-ds"; + repo = "ext-ds"; + rev = "v${version}"; + sha256 = "sha256-IqNv2jVW1Hg1hV8H9vEyLT5BWsFkGHR+WlAOHJhlW84="; + }; buildInputs = [ pcre2 ]; meta = with lib; { + changelog = "https://github.com/php-ds/ext-ds/releases/tag/v${version}"; description = "An extension providing efficient data structures for PHP"; license = licenses.mit; homepage = "https://github.com/php-ds/ext-ds";