Hythera
2026-05-06 20:06:01 +02:00
parent 1c6764f0f1
commit 8318bd7dbf
2 changed files with 12 additions and 2 deletions

View File

@@ -7,13 +7,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "hiredis";
version = "1.2.0";
version = "1.3.0";
src = fetchFromGitHub {
owner = "redis";
repo = "hiredis";
rev = "v${finalAttrs.version}";
sha256 = "sha256-ZxUITm3OcbERcvaNqGQU46bEfV+jN6safPalG0TVfBg=";
hash = "sha256-gbCLIz6nOpPbu0xbsxUVvr7XmvGdVWZQJWjpE76NIXY=";
};
buildInputs = [

View File

@@ -83,6 +83,16 @@ stdenv.mkDerivation (finalAttrs: {
internalDeps = [ php.extensions.session ];
installPhase = ''
runHook preInstall
''
+ lib.optionalString stdenv.hostPlatform.isLinux ''
# Temporary patch as relay isn't compatible with the latest version of hiredis out of
# the box.
patchelf \
--replace-needed libhiredis.so.1.1.0 libhiredis.so.1 \
--replace-needed libhiredis_ssl.so.1.1.0 libhiredis_ssl.so.1 \
relay.so
''
+ ''
install -Dm755 relay.so -t $out/lib/php/extensions
''
+ (