nixpkgs/pkgs/os-specific/linux/dbus-broker/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

2017-11-29 01:42:27 +01:00
{ stdenv, fetchgit, fetchFromGitHub, docutils, meson, ninja, pkgconfig
2018-02-22 04:52:04 +01:00
, dbus, glib, linuxHeaders, systemd }:
2017-08-23 16:50:15 +02:00
stdenv.mkDerivation rec {
name = "dbus-broker-${version}";
2018-04-26 12:56:21 +02:00
version = "13";
2017-08-23 16:50:15 +02:00
src = fetchFromGitHub {
2018-04-26 12:56:21 +02:00
owner = "bus1";
repo = "dbus-broker";
rev = "v${version}";
sha256 = "1yjkxpnl54pky6ha3y8dsds57lnk10lmriyzpzy0ha2npng2614x";
2017-08-23 16:50:15 +02:00
fetchSubmodules = true;
};
2017-11-29 01:42:27 +01:00
nativeBuildInputs = [ docutils meson ninja pkgconfig ];
2018-02-22 04:52:04 +01:00
buildInputs = [ dbus glib linuxHeaders systemd ];
2017-08-23 16:50:15 +02:00
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "lib/systemd/system";
PKG_CONFIG_SYSTEMD_SYSTEMDUSERUNITDIR = "lib/systemd/user";
2017-08-23 16:50:15 +02:00
postInstall = ''
install -Dm644 ../README $out/share/doc/dbus-broker/README
2018-02-22 04:52:04 +01:00
sed -i $out/lib/systemd/{system,user}/dbus-broker.service \
-e 's,^ExecReload.*busctl,ExecReload=${systemd}/bin/busctl,'
2017-08-23 16:50:15 +02:00
'';
doCheck = true;
meta = with stdenv.lib; {
description = "Linux D-Bus Message Broker";
homepage = https://github.com/bus1/dbus-broker/wiki;
2017-08-23 17:51:00 +02:00
license = licenses.asl20;
2017-08-23 16:50:15 +02:00
platforms = platforms.linux;
maintainers = with maintainers; [ peterhoeg ];
};
}