iwd: don't use '/usr' prefix, prefer placeholder over quote-and-pray

This commit is contained in:
Will Dietz 2019-01-28 21:41:23 -06:00
parent 8238e19c2f
commit d5c660c9dd

View file

@ -33,9 +33,9 @@ in stdenv.mkDerivation rec {
]; ];
configureFlags = [ configureFlags = [
"--with-dbus-datadir=$(out)/etc/" "--with-dbus-datadir=${placeholder "out"}/etc/"
"--with-dbus-busdir=$(out)/usr/share/dbus-1/system-services/" "--with-dbus-busdir=${placeholder "out"}/share/dbus-1/system-services/"
"--with-systemd-unitdir=$(out)/lib/systemd/system/" "--with-systemd-unitdir=${placeholder "out"}/lib/systemd/system/"
"--localstatedir=/var/" "--localstatedir=/var/"
"--enable-wired" "--enable-wired"
]; ];
@ -57,9 +57,9 @@ in stdenv.mkDerivation rec {
''; '';
postFixup = '' 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 --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 --replace /bin/false ${coreutils}/bin/false
''; '';