package dbus {
	description = "a message bus system";
	website = "https://www.freedesktop.org/wiki/Software/dbus";
	anitya = 5356;

	version# = "1.16.2";
	source = remoteGitLab {
		domain = "gitlab.freedesktop.org";
		suffix = "dbus/dbus";
		ref = "dbus-"+version;
		checksum = "INwOuNdrDG7XW5ilW_vn8JSxEa444rRNc5ho97i84I1CNF09OmcFcV-gzbF4uCyg";
	};

	// OSError: [Errno 30] Read-only file system: '/usr/src/dbus/subprojects/packagecache'
	writable = true;

	// PermissionError: [Errno 13] Permission denied: '/usr/src/dbus/subprojects/packagecache'
	chmod = true;

	exec = meson {
		setup = {
			"epoll": "enabled";
			"inotify": "enabled";
			"x11_autolaunch": "disabled";
		};
	};

	inputs = [
		glib,
		libexpat,
	];

	runtime = [
		glib,
		libexpat,
	];
}

package xdg-dbus-proxy {
	description = "a filtering proxy for D-Bus connections";
	website = "https://github.com/flatpak/xdg-dbus-proxy";
	anitya = 58434;

	version# = "0.1.8";
	source = remoteGitHub {
		suffix = "flatpak/xdg-dbus-proxy";
		tag = version;
		checksum = "ygdW0EEvZ-_PJfnFTNoobITmRzqJecTinBsJd_iJQrRvzidwqESCjeNkB55smZ2y";
	};

	exec = meson {
		setup = {
			"man": "disabled";
		};
	};

	inputs = [
		dbus,
		glib,
	];

	runtime = [ glib ];
}
