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'"
'';
preConfigure = ''
mkdir build
meson --prefix "$out" --buildtype=release build/
postInstall = ''
install -Dm644 ../README $out/share/doc/dbus-broker/README
'';
buildPhase = "ninja -C build";
installPhase = ''
ninja -C build install
install -Dm644 README $out/share/doc/dbus-broker/README
'';
checkPhase = "ninja -C build test";
checkPhase = "ninja test";
doCheck = true;