2022-03-15 21:27:59 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2018-06-02 14:48:43 +02:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2018-12-02 12:41:15 +01:00
|
|
|
, gobject-introspection
|
2023-02-06 16:28:47 +01:00
|
|
|
, buildPackages
|
2023-10-12 15:13:57 +02:00
|
|
|
, withIntrospection ? lib.meta.availableOn stdenv.hostPlatform gobject-introspection && stdenv.hostPlatform.emulatorAvailable buildPackages
|
2019-08-23 04:30:31 +02:00
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, makeWrapper
|
2018-06-02 14:48:43 +02:00
|
|
|
, dbus
|
|
|
|
, glib
|
2019-12-01 00:11:47 +01:00
|
|
|
, dconf
|
2018-06-02 14:48:43 +02:00
|
|
|
, libX11
|
2022-07-23 17:44:06 +02:00
|
|
|
, libxml2
|
2022-03-15 21:27:59 +01:00
|
|
|
, libXtst
|
2018-06-02 14:48:43 +02:00
|
|
|
, libXi
|
2021-03-21 01:31:55 +01:00
|
|
|
, libXext
|
2022-03-15 21:27:59 +01:00
|
|
|
, gnome
|
2023-03-14 19:24:20 +01:00
|
|
|
, systemd
|
2018-06-02 14:48:43 +02:00
|
|
|
}:
|
2012-07-10 18:03:13 +02:00
|
|
|
|
2014-10-21 20:47:30 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-06-05 17:57:18 +02:00
|
|
|
pname = "at-spi2-core";
|
2024-03-03 01:27:45 +01:00
|
|
|
version = "2.52.0";
|
2022-03-15 21:27:59 +01:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2024-01-25 20:21:19 +01:00
|
|
|
separateDebugInfo = true;
|
2012-07-10 18:03:13 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 18:00:13 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2024-03-03 01:27:45 +01:00
|
|
|
hash = "sha256-CsP8gyDI0B+hR8Jyun+gOAY4nGsD08QG0II+MONf9as=";
|
2012-07-10 18:03:13 +02:00
|
|
|
};
|
|
|
|
|
2022-03-15 21:27:59 +01:00
|
|
|
nativeBuildInputs = [
|
2023-02-06 16:28:47 +01:00
|
|
|
glib
|
2022-03-15 21:27:59 +01:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
makeWrapper
|
2023-02-06 16:28:47 +01:00
|
|
|
] ++ lib.optionals withIntrospection [
|
|
|
|
gobject-introspection
|
2022-03-15 21:27:59 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libX11
|
2022-07-23 17:44:06 +02:00
|
|
|
libxml2
|
2022-03-15 21:27:59 +01:00
|
|
|
# at-spi2-core can be build without X support, but due it is a client-side library, GUI-less usage is a very rare case
|
|
|
|
libXtst
|
|
|
|
libXi
|
|
|
|
# libXext is a transitive dependency of libXi
|
|
|
|
libXext
|
2023-04-16 20:20:44 +02:00
|
|
|
] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform systemd) [
|
2023-03-14 19:24:20 +01:00
|
|
|
# libsystemd is a needed for dbus-broker support
|
|
|
|
systemd
|
2022-03-15 21:27:59 +01:00
|
|
|
];
|
2015-07-26 13:43:49 +02:00
|
|
|
|
2020-01-20 19:16:21 +01:00
|
|
|
# In atspi-2.pc dbus-1 glib-2.0
|
2022-07-23 17:44:06 +02:00
|
|
|
# In atk.pc gobject-2.0
|
2022-03-15 21:27:59 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dbus
|
|
|
|
glib
|
|
|
|
];
|
2018-04-25 05:20:18 +02:00
|
|
|
|
2022-03-15 21:27:59 +01:00
|
|
|
# fails with "AT-SPI: Couldn't connect to accessibility bus. Is at-spi-bus-launcher running?"
|
|
|
|
doCheck = false;
|
2018-07-18 01:10:30 +02:00
|
|
|
|
2022-03-15 21:27:59 +01:00
|
|
|
mesonFlags = [
|
|
|
|
# Provide dbus-daemon fallback when it is not already running when
|
|
|
|
# at-spi2-bus-launcher is executed. This allows us to avoid
|
|
|
|
# including the entire dbus closure in libraries linked with
|
|
|
|
# the at-spi2-core libraries.
|
|
|
|
"-Ddbus_daemon=/run/current-system/sw/bin/dbus-daemon"
|
2023-03-14 19:24:20 +01:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
|
|
# Same as the above, but for dbus-broker
|
|
|
|
"-Ddbus_broker=/run/current-system/sw/bin/dbus-broker-launch"
|
2022-03-15 21:27:59 +01:00
|
|
|
];
|
2019-08-14 20:18:49 +02:00
|
|
|
|
2018-06-05 17:57:18 +02:00
|
|
|
passthru = {
|
2021-05-07 23:18:14 +02:00
|
|
|
updateScript = gnome.updateScript {
|
2018-06-05 17:57:18 +02:00
|
|
|
packageName = pname;
|
2021-03-21 00:57:24 +01:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-06-05 17:57:18 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-08-23 04:30:31 +02:00
|
|
|
postFixup = ''
|
|
|
|
# Cannot use wrapGAppsHook'due to a dependency cycle
|
|
|
|
wrapProgram $out/libexec/at-spi-bus-launcher \
|
2021-01-21 18:00:13 +01:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules" \
|
2019-08-23 04:30:31 +02:00
|
|
|
--prefix XDG_DATA_DIRS : ${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}
|
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2018-06-02 14:48:43 +02:00
|
|
|
description = "Assistive Technology Service Provider Interface protocol definitions and daemon for D-Bus";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/at-spi2-core";
|
2019-09-02 18:43:57 +02:00
|
|
|
license = licenses.lgpl21Plus;
|
2022-07-23 17:44:06 +02:00
|
|
|
maintainers = teams.gnome.members ++ (with maintainers; [ raskin ]);
|
2015-03-31 21:23:26 +02:00
|
|
|
platforms = platforms.unix;
|
2014-01-10 01:09:26 +01:00
|
|
|
};
|
2012-07-10 18:03:13 +02:00
|
|
|
}
|