Skip to content

Commit

Permalink
dbus-broker: meson and ninja hooks handle most things for us
Browse files Browse the repository at this point in the history
(cherry picked from commit 6f6a7aa)
  • Loading branch information
peterhoeg committed Sep 5, 2017
1 parent ae0babc commit 5ab8db6
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions pkgs/os-specific/linux/dbus-broker/default.nix
Expand Up @@ -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;

Expand Down

0 comments on commit 5ab8db6

Please sign in to comment.