From 71e257b1a1558b2e3a98c458c91858eb7e688ef6 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sun, 27 Jan 2019 22:27:22 -0600 Subject: [PATCH] iwd: needs systemd now apparently, use placeholder and not /usr --- pkgs/os-specific/linux/iwd/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/os-specific/linux/iwd/default.nix b/pkgs/os-specific/linux/iwd/default.nix index 130ee95baceb0..f876f89f272cb 100644 --- a/pkgs/os-specific/linux/iwd/default.nix +++ b/pkgs/os-specific/linux/iwd/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, autoreconfHook, pkgconfig, coreutils, readline, python3Packages }: +{ stdenv, fetchgit, autoreconfHook, pkgconfig, coreutils, readline, python3Packages, systemd }: let ell = fetchgit { @@ -28,6 +28,7 @@ in stdenv.mkDerivation rec { buildInputs = [ readline python3Packages.python + systemd ]; pythonPath = [ @@ -36,9 +37,9 @@ in stdenv.mkDerivation rec { ]; configureFlags = [ - "--with-dbus-datadir=$(out)/etc/" - "--with-dbus-busdir=$(out)/usr/share/dbus-1/system-services/" - "--with-systemd-unitdir=$(out)/lib/systemd/system/" + "--with-dbus-datadir=${placeholder "out"}/etc/" + "--with-dbus-busdir=${placeholder "out"}/share/dbus-1/system-services/" + "--with-systemd-unitdir=${placeholder "out"}/lib/systemd/system/" "--localstatedir=/var/" "--enable-wired" ]; @@ -60,9 +61,9 @@ in stdenv.mkDerivation rec { ''; postFixup = '' - substituteInPlace $out/usr/share/dbus-1/system-services/net.connman.ead.service \ + substituteInPlace $out/share/dbus-1/system-services/net.connman.ead.service \ --replace /bin/false ${coreutils}/bin/false - substituteInPlace $out/usr/share/dbus-1/system-services/net.connman.iwd.service \ + substituteInPlace $out/share/dbus-1/system-services/net.connman.iwd.service \ --replace /bin/false ${coreutils}/bin/false '';