php.extensions.swoole: update src attribute

So it can be automatically updated with `nix-update`
This commit is contained in:
Pol Dellaiera 2022-12-26 11:09:41 +01:00
parent 4c5efee1da
commit 0ded0f9be1
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -1,10 +1,17 @@
{ lib, stdenv, buildPecl, php, valgrind, pcre2 }:
{ lib, stdenv, buildPecl, php, valgrind, pcre2, fetchFromGitHub }:
buildPecl {
let
version = "5.0.1";
in buildPecl {
inherit version;
pname = "swoole";
version = "5.0.1";
sha256 = "1zq5vvwjqpg3d4qv8902w54gvghjgcb3c7szi7fpqi6f51mhhwvf";
src = fetchFromGitHub {
owner = "swoole";
repo = "swoole-src";
rev = "v${version}";
sha256 = "sha256-d0xccbfOmebWR14oTUviWz/mB5IA7iXn0uUWxTQRd9w=";
};
buildInputs = [ pcre2 ] ++ lib.optionals (!stdenv.isDarwin) [ valgrind ];
@ -12,6 +19,7 @@ buildPecl {
checkTarget = "tests";
meta = with lib; {
changelog = "https://github.com/swoole/swoole-src/releases/tag/v${version}";
description = "Coroutine-based concurrency library for PHP";
license = licenses.asl20;
homepage = "https://www.swoole.co.uk/";