mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
hiredis: 1.2.0 -> 1.3.0
changelog: https://github.com/redis/hiredis/releases/tag/v1.3.0 diff: https://github.com/redis/hiredis/compare/v1.2.0...v1.3.0
This commit is contained in:
@@ -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 = [
|
||||
|
||||
@@ -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
|
||||
''
|
||||
+ (
|
||||
|
||||
Reference in New Issue
Block a user