dbus-broker: init at 3
This commit is contained in:
parent
508c998318
commit
9f2ef9c25b
48
pkgs/os-specific/linux/dbus-broker/default.nix
Normal file
48
pkgs/os-specific/linux/dbus-broker/default.nix
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
{ 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'"
|
||||||
|
'';
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
mkdir build
|
||||||
|
meson --prefix "$out" --buildtype=release build/
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = "ninja -C build";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
ninja -C build install
|
||||||
|
install -Dm644 README $out/share/doc/dbus-broker/README
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = "ninja -C build test";
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Linux D-Bus Message Broker";
|
||||||
|
homepage = https://github.com/bus1/dbus-broker/wiki;
|
||||||
|
license = licenses.apache2;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
};
|
||||||
|
}
|
@ -926,6 +926,8 @@ with pkgs;
|
|||||||
|
|
||||||
devmem2 = callPackage ../os-specific/linux/devmem2 { };
|
devmem2 = callPackage ../os-specific/linux/devmem2 { };
|
||||||
|
|
||||||
|
dbus-broker = callPackage ../os-specific/linux/dbus-broker {};
|
||||||
|
|
||||||
ioport = callPackage ../os-specific/linux/ioport {};
|
ioport = callPackage ../os-specific/linux/ioport {};
|
||||||
|
|
||||||
diagrams-builder = callPackage ../tools/graphics/diagrams-builder {
|
diagrams-builder = callPackage ../tools/graphics/diagrams-builder {
|
||||||
|
Loading…
Reference in New Issue
Block a user