php.extensions.swoole: update src
attribute
So it can be automatically updated with `nix-update`
This commit is contained in:
parent
4c5efee1da
commit
0ded0f9be1
1 changed files with 12 additions and 4 deletions
|
@ -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/";
|
||||
|
|
Loading…
Reference in a new issue