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

41 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, docutils, meson, ninja, pkg-config
2019-01-03 11:10:42 +01:00
, dbus, linuxHeaders, systemd }:
2017-08-23 16:50:15 +02:00
stdenv.mkDerivation rec {
pname = "dbus-broker";
2020-02-18 12:12:48 +01:00
version = "22";
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}";
2020-02-18 12:12:48 +01:00
sha256 = "0vxr73afix5wjxy8g4cckwhl242rrlazm52673iwmdyfz5nskj2x";
2017-08-23 16:50:15 +02:00
fetchSubmodules = true;
};
nativeBuildInputs = [ docutils meson ninja pkg-config ];
2017-11-29 01:42:27 +01:00
2019-01-03 11:10:42 +01:00
buildInputs = [ dbus linuxHeaders systemd ];
2017-08-23 16:50:15 +02:00
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
PKG_CONFIG_SYSTEMD_SYSTEMDUSERUNITDIR = "${placeholder "out"}/lib/systemd/user";
2019-06-16 11:25:47 +02:00
PKG_CONFIG_SYSTEMD_CATALOGDIR = "${placeholder "out"}/lib/systemd/catalog";
2017-08-23 16:50:15 +02:00
postInstall = ''
2019-01-03 11:10:42 +01:00
install -Dm644 $src/README.md $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 lib; {
2017-08-23 16:50:15 +02:00
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 ];
};
}