lol

Merge pull request #88009 from JJJollyjim/redis-systemd-fixes

redis: handle changes to systemd support

authored by

adisbladis and committed by
GitHub
1ccc512b eeb14812

+5 -5
+1 -2
nixos/modules/services/databases/redis.nix
··· 11 11 port ${toString cfg.port} 12 12 ${condOption "bind" cfg.bind} 13 13 ${condOption "unixsocket" cfg.unixSocket} 14 - daemonize yes 14 + daemonize no 15 15 supervised systemd 16 16 loglevel ${cfg.logLevel} 17 17 logfile ${cfg.logfile} 18 18 syslog-enabled ${redisBool cfg.syslog} 19 - pidfile /run/redis/redis.pid 20 19 databases ${toString cfg.databases} 21 20 ${concatMapStrings (d: "save ${toString (builtins.elemAt d 0)} ${toString (builtins.elemAt d 1)}\n") cfg.save} 22 21 dbfilename dump.rdb
+4 -3
pkgs/servers/nosql/redis/default.nix
··· 1 - { stdenv, fetchurl, lua, jemalloc, nixosTests }: 1 + { stdenv, fetchurl, lua, pkgconfig, systemd, jemalloc, nixosTests }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "6.0.1"; ··· 18 18 ''} 19 19 ''; 20 20 21 - buildInputs = [ lua ]; 21 + buildInputs = [ lua pkgconfig ] ++ stdenv.lib.optional (stdenv.isLinux) systemd; 22 22 # More cross-compiling fixes. 23 23 # Note: this enables libc malloc as a temporary fix for cross-compiling. 24 24 # Due to hardcoded configure flags in jemalloc, we can't cross-compile vendored jemalloc properly, and so we're forced to use libc allocator. 25 25 # It's weird that the build isn't failing because of failure to compile dependencies, it's from failure to link them! 26 26 makeFlags = [ "PREFIX=$(out)" ] 27 - ++ stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "AR=${stdenv.cc.targetPrefix}ar" "RANLIB=${stdenv.cc.targetPrefix}ranlib" "MALLOC=libc" ]; 27 + ++ stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "AR=${stdenv.cc.targetPrefix}ar" "RANLIB=${stdenv.cc.targetPrefix}ranlib" "MALLOC=libc" ] 28 + ++ stdenv.lib.optional (stdenv.isLinux) ["USE_SYSTEMD=yes"]; 28 29 29 30 enableParallelBuilding = true; 30 31