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 ]