rspamd: fix builds on non-x86_64-linux platforms
LuaJIT is built in rspamd only on x86_64-linux, and LuaJIT support
became enabled by default in 2.6, breaking builds without it. This
commit explicitly disables LuaJIT support on non-x86_64 architectures.
commit71998ddc339c9b5efafbe4d261bb0773ee8cff55
authorVika <vika@fireburn.ru>
dateMon 16 Nov 2020, 16:13 (6 years ago)
parentad37c2c
pkgs/servers/mail/rspamd/default.nix+2−1
@@ -33,7 +33,8 @@ stdenv.mkDerivation rec {
3333 "-DLOGDIR=/var/log/rspamd"
3434 "-DLOCAL_CONFDIR=/etc/rspamd"
3535 "-DENABLE_JEMALLOC=ON"
36− ] ++ lib.optional withHyperscan "-DENABLE_HYPERSCAN=ON";
36+ ] ++ lib.optional withHyperscan "-DENABLE_HYPERSCAN=ON"
37+ ++ lib.optional (!withLuaJIT) "-DENABLE_LUAJIT=OFF";
3738
3839 passthru.tests.rspamd = nixosTests.rspamd;
3940