From a2fe9a01e55e474dfb0e981b9210d9faccbe4438 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sat, 11 Mar 2023 12:16:11 +0100 Subject: [PATCH] redis: fix flaky test tests/unit/memefficiency.tcl --- pkgs/servers/nosql/redis/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/nosql/redis/default.nix b/pkgs/servers/nosql/redis/default.nix index 85e9fe5022e5..2f43e2c402ba 100644 --- a/pkgs/servers/nosql/redis/default.nix +++ b/pkgs/servers/nosql/redis/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, lua, pkg-config, nixosTests +{ lib, stdenv, fetchurl, fetchpatch, lua, pkg-config, nixosTests , tcl, which, ps, getconf , withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd # dependency ordering is broken at the moment when building with openssl @@ -14,6 +14,14 @@ stdenv.mkDerivation rec { hash = "sha256-93E1wqR8kVHUAov+o7NEcKtNMk0UhPeahMbzKjz7n2U="; }; + patches = [ + # Fix flaky test tests/unit/memefficiency.tcl + (fetchpatch { + url = "https://github.com/redis/redis/commit/bfe50a30edff6837897964ac3374c082b0d9e5da.patch"; + sha256 = "sha256-0GMiygbO7LbL1rnuOByOJYE2BKUSI+yy6YH781E2zBw="; + }) + ]; + nativeBuildInputs = [ pkg-config ]; buildInputs = [ lua ]