2017-08-23 15:50:15 +01:00
|
|
|
{ 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'"
|
|
|
|
'';
|
|
|
|
|
2017-09-05 02:51:54 +01:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 ../README $out/share/doc/dbus-broker/README
|
2017-08-23 15:50:15 +01:00
|
|
|
'';
|
|
|
|
|
2017-09-05 02:51:54 +01:00
|
|
|
checkPhase = "ninja test";
|
2017-08-23 15:50:15 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Linux D-Bus Message Broker";
|
|
|
|
homepage = https://github.com/bus1/dbus-broker/wiki;
|
2017-08-23 16:51:00 +01:00
|
|
|
license = licenses.asl20;
|
2017-08-23 15:50:15 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|