2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, docutils, meson, ninja, pkg-config
|
2019-01-03 10:10:42 +00:00
|
|
|
, dbus, linuxHeaders, systemd }:
|
2017-08-23 14:50:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "dbus-broker";
|
2021-06-04 14:27:20 +00:00
|
|
|
version = "29";
|
2017-08-23 14:50:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-04-26 10:56:21 +00:00
|
|
|
owner = "bus1";
|
|
|
|
repo = "dbus-broker";
|
|
|
|
rev = "v${version}";
|
2021-06-04 14:27:20 +00:00
|
|
|
sha256 = "1abbi8c0mgdqjidlp2wnmy0a88xv173hq88sh5m966c5r1h6alkq";
|
2017-08-23 14:50:15 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ docutils meson ninja pkg-config ];
|
2017-11-29 00:42:27 +00:00
|
|
|
|
2019-01-03 10:10:42 +00:00
|
|
|
buildInputs = [ dbus linuxHeaders systemd ];
|
2017-08-23 14:50:15 +00:00
|
|
|
|
2021-05-04 07:43:34 +00:00
|
|
|
mesonFlags = [ "-D=system-console-users=gdm,sddm,lightdm" ];
|
|
|
|
|
2018-04-26 20:59:34 +00:00
|
|
|
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
|
|
|
|
PKG_CONFIG_SYSTEMD_SYSTEMDUSERUNITDIR = "${placeholder "out"}/lib/systemd/user";
|
2019-06-16 09:25:47 +00:00
|
|
|
PKG_CONFIG_SYSTEMD_CATALOGDIR = "${placeholder "out"}/lib/systemd/catalog";
|
2017-08-23 14:50:15 +00:00
|
|
|
|
2017-09-05 01:51:54 +00:00
|
|
|
postInstall = ''
|
2019-01-03 10:10:42 +00:00
|
|
|
install -Dm644 $src/README.md $out/share/doc/dbus-broker/README
|
2018-02-22 03:52:04 +00:00
|
|
|
|
|
|
|
sed -i $out/lib/systemd/{system,user}/dbus-broker.service \
|
|
|
|
-e 's,^ExecReload.*busctl,ExecReload=${systemd}/bin/busctl,'
|
2017-08-23 14:50:15 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-08-23 14:50:15 +00:00
|
|
|
description = "Linux D-Bus Message Broker";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/bus1/dbus-broker/wiki";
|
2017-08-23 15:51:00 +00:00
|
|
|
license = licenses.asl20;
|
2017-08-23 14:50:15 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|