utillinux: Fix cross-compiling when building with systemd

This commit is contained in:
Shea Levy
2018-02-28 15:01:30 -05:00
parent cfa63f9d4f
commit 085bfcefb9
@@ -30,7 +30,8 @@ in stdenv.mkDerivation rec {
crossAttrs = { crossAttrs = {
# Work around use of `AC_RUN_IFELSE'. # Work around use of `AC_RUN_IFELSE'.
preConfigure = "export scanf_cv_type_modifier=ms"; preConfigure = "export scanf_cv_type_modifier=ms" + lib.optionalString (systemd != null)
"\nconfigureFlags+=\" --with-systemd --with-systemdsystemunitdir=$bin/lib/systemd/system/\"";
}; };
preConfigure = lib.optionalString (systemd != null) '' preConfigure = lib.optionalString (systemd != null) ''