2018-06-02 14:48:43 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
2018-12-02 12:41:15 +01:00
|
|
|
, gobject-introspection
|
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
|
2018-06-05 17:57:18 +02:00
|
|
|
, libXtst # 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
|
2018-06-02 14:48:43 +02:00
|
|
|
, libXi
|
2018-06-05 17:57:18 +02:00
|
|
|
|
|
|
|
, gnome3 # To pass updateScript
|
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";
|
2020-09-21 04:15:04 +02:00
|
|
|
version = "2.38.0";
|
2012-07-10 18:03:13 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-09-21 04:15:04 +02:00
|
|
|
sha256 = "hONsP+ZoYhM/X+Ipdyt2qiUm4Q3lAUo3ePL6Rs5VDaU=";
|
2012-07-10 18:03:13 +02:00
|
|
|
};
|
|
|
|
|
2016-08-29 02:30:01 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
2015-07-26 13:43:49 +02:00
|
|
|
|
2019-09-02 18:43:57 +02:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gobject-introspection makeWrapper ];
|
2020-01-20 19:16:21 +01:00
|
|
|
buildInputs = [ libX11 libXtst libXi ];
|
|
|
|
# In atspi-2.pc dbus-1 glib-2.0
|
|
|
|
propagatedBuildInputs = [ dbus glib ];
|
2018-04-25 05:20:18 +02:00
|
|
|
|
2018-07-18 01:10:30 +02:00
|
|
|
doCheck = false; # fails with "AT-SPI: Couldn't connect to accessibility bus. Is at-spi-bus-launcher running?"
|
|
|
|
|
2019-08-14 20:18:49 +02:00
|
|
|
# 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.
|
|
|
|
mesonFlags = [ "-Ddbus_daemon=/run/current-system/sw/bin/dbus-daemon" ];
|
|
|
|
|
2018-06-05 17:57:18 +02:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-08-23 04:30:31 +02:00
|
|
|
postFixup = ''
|
|
|
|
# Cannot use wrapGAppsHook'due to a dependency cycle
|
|
|
|
wrapProgram $out/libexec/at-spi-bus-launcher \
|
2019-12-01 00:11:47 +01:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${stdenv.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}
|
|
|
|
'';
|
|
|
|
|
2014-01-10 01:09:26 +01:00
|
|
|
meta = with stdenv.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;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
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
|
|
|
}
|