1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/os-specific/linux/dbus-broker/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

2017-11-29 00:42:27 +00:00
{ stdenv, fetchgit, fetchFromGitHub, docutils, meson, ninja, pkgconfig
2018-02-22 03:52:04 +00:00
, dbus, glib, linuxHeaders, systemd }:
2017-08-23 15:50:15 +01:00
stdenv.mkDerivation rec {
name = "dbus-broker-${version}";
2018-02-22 03:52:04 +00:00
version = "11";
2017-08-23 15:50:15 +01:00
src = fetchFromGitHub {
owner = "bus1";
repo = "dbus-broker";
rev = "v${version}";
2018-02-22 03:52:04 +00:00
sha256 = "19sszb6ac7md494i996ixqmz9b3gim8rrv2nbrmlgjd59gk6hf7b";
2017-08-23 15:50:15 +01:00
fetchSubmodules = true;
};
2017-11-29 00:42:27 +00:00
nativeBuildInputs = [ docutils meson ninja pkgconfig ];
2018-02-22 03:52:04 +00:00
buildInputs = [ dbus glib linuxHeaders systemd ];
2017-08-23 15:50:15 +01:00
2018-03-22 07:47:40 +00:00
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
PKG_CONFIG_SYSTEMD_SYSTEMDUSERUNITDIR = "${placeholder "out"}/lib/systemd/user";
2017-08-23 15:50:15 +01:00
postInstall = ''
install -Dm644 ../README $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 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 ];
};
}