about summary refs log tree commit diff
path: root/pkgs/development/php-packages
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2022-12-25 20:41:55 +0100
committerPol Dellaiera <pol.dellaiera@protonmail.com>2022-12-29 18:21:57 +0100
commit4ff2402e2affd1ab25ff542d73b2926c57107afc (patch)
treeeda47f78e49c00ceff8276edbb864f2a248a6514 /pkgs/development/php-packages
parent8d68955f99b2ad19023f23073d75e8c3e643b845 (diff)
php.extensions.ds: update `src` attribute
So it can be automatically updated with `nix-update`
Diffstat (limited to 'pkgs/development/php-packages')
-rw-r--r--pkgs/development/php-packages/ds/default.nix16
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/php-packages/ds/default.nix b/pkgs/development/php-packages/ds/default.nix
index 2552a5bee3b6c..7cbdfa17f9729 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";