package wireplumber {
	description = "session / policy manager implementation for PipeWire";
	website = "https://gitlab.freedesktop.org/pipewire/wireplumber";
	anitya = 235056;

	version# = "0.5.15";
	source = remoteGitLab {
		domain = "gitlab.freedesktop.org";
		suffix = "pipewire/wireplumber";
		ref = version;
		checksum = "Vqj8zddEfDt5ktRlnhqB6qD24LD2IlI3HnTnvssO7mWJ1cO1iGJVSkqHrLosFFfp";
	};

	// OSError: [Errno 30] Read-only file system: '../../usr/src/wireplumber/po/conf.pot'
	writable = true;
	chmod = true;

	exec = meson {
		setup = {
			// "bundled" actually means meson wrap here
			"system-lua": "true";

			"elogind": "disabled";
			"systemd": "disabled";
		};
	};

	inputs = [
		lua,
		glib,
		pipewire,
	];

	runtime = [
		glib,
		pipewire,
	];
}

package pipewire {
	description = "multimedia processing graphs";
	website = "https://pipewire.org";
	anitya = 57357;

	version# = "1.6.8";
	source = remoteGitLab {
		domain = "gitlab.freedesktop.org";
		suffix = "pipewire/pipewire";
		ref = version;
		checksum = "KPPJDODFi6RpNpoGztQGNTiINRubQ_7WVIngsboHQi0XzEhMAKVp7iaUG74QX3aE";
	};

	exec = meson {
		setup = {
			// built separately to avoid wrap
			"session-managers": "[]";

			"libsystemd": "disabled";
			"logind": "disabled";
			"udev": "disabled";
		};
	};

	inputs = [
		dbus,

		kernel-headers,
	];

	runtime = [ dbus ];
}
