@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, lua, jemalloc, nixosTests }:
1+{ stdenv, fetchurl, lua, pkgconfig, systemd, jemalloc, nixosTests }:
22
33stdenv.mkDerivation rec {
44 version = "6.0.1";
@@ -18,13 +18,14 @@ stdenv.mkDerivation rec {
1818 ''}
1919 '';
2020
21− buildInputs = [ lua ];
21+ buildInputs = [ lua pkgconfig ] ++ stdenv.lib.optional (stdenv.isLinux) systemd;
2222 # More cross-compiling fixes.
2323 # Note: this enables libc malloc as a temporary fix for cross-compiling.
2424 # Due to hardcoded configure flags in jemalloc, we can't cross-compile vendored jemalloc properly, and so we're forced to use libc allocator.
2525 # It's weird that the build isn't failing because of failure to compile dependencies, it's from failure to link them!
2626 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"];
2829
2930 enableParallelBuilding = true;
3031