diff options
author | Peter Hoeg <peter@hoeg.com> | 2017-08-23 22:50:15 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2017-08-23 22:50:26 +0800 |
commit | 9f2ef9c25b6b80cb70e2ce7cb3c78b4d1dec3b6b (patch) | |
tree | 8ca079fd2b3506ad9ec6a62294b0e0352d5cb7bb /pkgs/os-specific/linux/dbus-broker | |
parent | 508c9983183b0108c589409c39eb54900898431b (diff) | |
download | nixlib-9f2ef9c25b6b80cb70e2ce7cb3c78b4d1dec3b6b.tar nixlib-9f2ef9c25b6b80cb70e2ce7cb3c78b4d1dec3b6b.tar.gz nixlib-9f2ef9c25b6b80cb70e2ce7cb3c78b4d1dec3b6b.tar.bz2 nixlib-9f2ef9c25b6b80cb70e2ce7cb3c78b4d1dec3b6b.tar.lz nixlib-9f2ef9c25b6b80cb70e2ce7cb3c78b4d1dec3b6b.tar.xz nixlib-9f2ef9c25b6b80cb70e2ce7cb3c78b4d1dec3b6b.tar.zst nixlib-9f2ef9c25b6b80cb70e2ce7cb3c78b4d1dec3b6b.zip |
dbus-broker: init at 3
Diffstat (limited to 'pkgs/os-specific/linux/dbus-broker')
-rw-r--r-- | pkgs/os-specific/linux/dbus-broker/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/dbus-broker/default.nix b/pkgs/os-specific/linux/dbus-broker/default.nix new file mode 100644 index 000000000000..e55529608514 --- /dev/null +++ b/pkgs/os-specific/linux/dbus-broker/default.nix @@ -0,0 +1,48 @@ +{ stdenv, fetchgit, fetchFromGitHub, meson, ninja, pkgconfig +, dbus, glib, systemd }: + +stdenv.mkDerivation rec { + name = "dbus-broker-${version}"; + version = "3"; + + src = fetchFromGitHub { + owner = "bus1"; + repo = "dbus-broker"; + rev = "v${version}"; + sha256 = "1f2vw5b2cbdgd3g7vnzwr9lsw9v4xc5nc0nf9xc3qb5xqzsq7v7i"; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ meson ninja pkgconfig ]; + buildInputs = [ dbus glib systemd ]; + + prePatch = '' + substituteInPlace meson.build \ + --replace "dep_systemd.get_pkgconfig_variable('systemdsystemunitdir')" "'$out/lib/systemd/system'" \ + --replace "dep_systemd.get_pkgconfig_variable('systemduserunitdir')" "'$out/lib/systemd/user'" + ''; + + preConfigure = '' + mkdir build + meson --prefix "$out" --buildtype=release build/ + ''; + + buildPhase = "ninja -C build"; + + installPhase = '' + ninja -C build install + install -Dm644 README $out/share/doc/dbus-broker/README + ''; + + checkPhase = "ninja -C build test"; + + doCheck = true; + + meta = with stdenv.lib; { + description = "Linux D-Bus Message Broker"; + homepage = https://github.com/bus1/dbus-broker/wiki; + license = licenses.apache2; + platforms = platforms.linux; + maintainers = with maintainers; [ peterhoeg ]; + }; +} |