about summary refs log tree commit diff
path: root/pkgs/servers/nosql
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2024-01-14 23:15:38 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2024-01-14 23:42:01 +0100
commit5cd9b0a6ba85d41061779de6b11d0d079cda0804 (patch)
treefb45ad2f52d05517b5d488466bcc5418e95e1052 /pkgs/servers/nosql
parent6c08fe3ccf437d8b26bec010fd925ddd6bb0d0d5 (diff)
downloadnixlib-5cd9b0a6ba85d41061779de6b11d0d079cda0804.tar
nixlib-5cd9b0a6ba85d41061779de6b11d0d079cda0804.tar.gz
nixlib-5cd9b0a6ba85d41061779de6b11d0d079cda0804.tar.bz2
nixlib-5cd9b0a6ba85d41061779de6b11d0d079cda0804.tar.lz
nixlib-5cd9b0a6ba85d41061779de6b11d0d079cda0804.tar.xz
nixlib-5cd9b0a6ba85d41061779de6b11d0d079cda0804.tar.zst
nixlib-5cd9b0a6ba85d41061779de6b11d0d079cda0804.zip
redis: fix oom-score-adj test due to no permission
Diffstat (limited to 'pkgs/servers/nosql')
-rw-r--r--pkgs/servers/nosql/redis/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/servers/nosql/redis/default.nix b/pkgs/servers/nosql/redis/default.nix
index c3ac0ebbf969..796490a1ffd1 100644
--- a/pkgs/servers/nosql/redis/default.nix
+++ b/pkgs/servers/nosql/redis/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, lua, jemalloc, pkg-config, nixosTests
+{ lib, stdenv, fetchurl, fetchpatch, lua, jemalloc, 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
@@ -19,7 +19,14 @@ stdenv.mkDerivation (finalAttrs: {
     hash = "sha256-PisZbW603bnnQwiL/CkVzLtC1A9aij7djLaccW7DS+c=";
   };
 
-  patches = lib.optionals useSystemJemalloc [
+  patches = [
+    # fixes: make test [exception]: Executing test client: permission denied
+    # https://github.com/redis/redis/issues/12792
+    (fetchpatch {
+      url = "https://github.com/redis/redis/pull/12887.diff";
+      hash = "sha256-VZEMShW7Ckn5hLJHffQvE94Uly41WZW1bwvxny+Y3W8=";
+    })
+  ] ++ lib.optionals useSystemJemalloc [
     # use system jemalloc
     (fetchurl {
       url = "https://gitlab.archlinux.org/archlinux/packaging/packages/redis/-/raw/102cc861713c796756abd541bf341a4512eb06e6/redis-5.0-use-system-jemalloc.patch";