valkey: 7.2.7 -> 8.0.1 (#347906)

This commit is contained in:
Artturin
2024-11-13 07:03:55 +02:00
committed by GitHub

View File

@@ -12,13 +12,13 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "valkey"; pname = "valkey";
version = "7.2.7"; version = "8.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "valkey-io"; owner = "valkey-io";
repo = "valkey"; repo = "valkey";
rev = finalAttrs.version; rev = finalAttrs.version;
hash = "sha256-2kbhUg+rNuIUF/Bna6jFLI6Vhg9TlSi+OZEy6jKl2X0="; hash = "sha256-WB0blQLxQOTkK8UGsH6WISZAisUAtGIDfjoc4RnPSew=";
}; };
patches = lib.optional useSystemJemalloc ./use_system_jemalloc.patch; patches = lib.optional useSystemJemalloc ./use_system_jemalloc.patch;
@@ -30,6 +30,8 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optional withSystemd systemd ++ lib.optional withSystemd systemd
++ lib.optional tlsSupport openssl; ++ lib.optional tlsSupport openssl;
strictDeps = true;
preBuild = lib.optionalString stdenv.hostPlatform.isDarwin '' preBuild = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace src/Makefile --replace-fail "-flto" "" substituteInPlace src/Makefile --replace-fail "-flto" ""
''; '';
@@ -55,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
# disable test "Connect multiple replicas at the same time": even # disable test "Connect multiple replicas at the same time": even
# upstream find this test too timing-sensitive # upstream find this test too timing-sensitive
substituteInPlace tests/integration/replication.tcl \ substituteInPlace tests/integration/replication.tcl \
--replace-fail 'foreach mdl {no yes}' 'foreach mdl {}' --replace-fail 'foreach mdl {no yes} dualchannel {no yes}' 'foreach mdl {} dualchannel {}'
substituteInPlace tests/support/server.tcl \ substituteInPlace tests/support/server.tcl \
--replace-fail 'exec /usr/bin/env' 'exec env' --replace-fail 'exec /usr/bin/env' 'exec env'