Merge pull request #99366 from Mic92/redis

redis: disable systemd in musl build

authored by

Jörg Thalheim and committed by
GitHub
a5b56b6a c35d468f

+2 -2
+2 -2
pkgs/servers/nosql/redis/default.nix
··· 18 18 ''} 19 19 ''; 20 20 21 - buildInputs = [ lua pkgconfig ] ++ stdenv.lib.optional (stdenv.isLinux) systemd; 21 + buildInputs = [ lua pkgconfig ] ++ stdenv.lib.optional (stdenv.isLinux && !stdenv.hostPlatform.isMusl) 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 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 + ++ stdenv.lib.optional (stdenv.isLinux && !stdenv.hostPlatform.isMusl) ["USE_SYSTEMD=yes"]; 29 29 30 30 enableParallelBuilding = true; 31 31