3
0
Fork 0
forked from mirrors/nixpkgs

utillinux: Fix cross-compiling when building with systemd

This commit is contained in:
Shea Levy 2018-02-27 12:50:13 -05:00
parent cfa63f9d4f
commit 085bfcefb9
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27

View file

@ -30,7 +30,8 @@ in stdenv.mkDerivation rec {
crossAttrs = {
# 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) ''