summary refs log tree commit diff
path: root/pkgs/os-specific/linux/util-linux
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-02-27 12:50:13 -0500
committerShea Levy <shea@shealevy.com>2018-02-28 15:01:30 -0500
commit085bfcefb908fb503a16bd8fba9d4f5ba82d37ad (patch)
tree0b737a72925a20e7578678ac6cf7e5a1f40d5051 /pkgs/os-specific/linux/util-linux
parentcfa63f9d4fb5f61c89e9442e7d0e0a875d68e585 (diff)
downloadnixpkgs-085bfcefb908fb503a16bd8fba9d4f5ba82d37ad.tar
nixpkgs-085bfcefb908fb503a16bd8fba9d4f5ba82d37ad.tar.gz
nixpkgs-085bfcefb908fb503a16bd8fba9d4f5ba82d37ad.tar.bz2
nixpkgs-085bfcefb908fb503a16bd8fba9d4f5ba82d37ad.tar.lz
nixpkgs-085bfcefb908fb503a16bd8fba9d4f5ba82d37ad.tar.xz
nixpkgs-085bfcefb908fb503a16bd8fba9d4f5ba82d37ad.tar.zst
nixpkgs-085bfcefb908fb503a16bd8fba9d4f5ba82d37ad.zip
utillinux: Fix cross-compiling when building with systemd
Diffstat (limited to 'pkgs/os-specific/linux/util-linux')
-rw-r--r--pkgs/os-specific/linux/util-linux/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/util-linux/default.nix b/pkgs/os-specific/linux/util-linux/default.nix
index e8a2b342849..618ba42e741 100644
--- a/pkgs/os-specific/linux/util-linux/default.nix
+++ b/pkgs/os-specific/linux/util-linux/default.nix
@@ -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) ''