dbus-broker: meson and ninja hooks handle most things for us

This commit is contained in:
Peter Hoeg 2017-09-05 09:51:54 +08:00
parent fd2c8d0a00
commit 6f6a7aae8f

View File

@ -22,19 +22,11 @@ stdenv.mkDerivation rec {
--replace "dep_systemd.get_pkgconfig_variable('systemduserunitdir')" "'$out/lib/systemd/user'" --replace "dep_systemd.get_pkgconfig_variable('systemduserunitdir')" "'$out/lib/systemd/user'"
''; '';
preConfigure = '' postInstall = ''
mkdir build install -Dm644 ../README $out/share/doc/dbus-broker/README
meson --prefix "$out" --buildtype=release build/
''; '';
buildPhase = "ninja -C build"; checkPhase = "ninja test";
installPhase = ''
ninja -C build install
install -Dm644 README $out/share/doc/dbus-broker/README
'';
checkPhase = "ninja -C build test";
doCheck = true; doCheck = true;