hiredis: 1.2.0 -> 1.3.0, adopt (#517392)

This commit is contained in:
Weijia Wang
2026-05-16 11:46:50 +00:00
committed by GitHub
2 changed files with 13 additions and 2 deletions
+3 -2
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 = [
@@ -29,6 +29,7 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://github.com/redis/hiredis";
description = "Minimalistic C client for Redis >= 1.2";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ hythera ];
platforms = lib.platforms.all;
};
})
@@ -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
''
+ (