Jan Tojnar 2022-03-15 20:27:59 +00:00
parent 0f97d73b74
commit 097fd04fb8

View file

@ -1,48 +1,66 @@
{ lib, stdenv { lib
, stdenv
, fetchurl , fetchurl
, meson , meson
, ninja , ninja
, pkg-config , pkg-config
, gobject-introspection , gobject-introspection
, gsettings-desktop-schemas , gsettings-desktop-schemas
, makeWrapper , makeWrapper
, dbus , dbus
, glib , glib
, dconf , dconf
, libX11 , libX11
, 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 , libXtst
, libXi , libXi
, libXext , libXext
, gnome
, gnome # To pass updateScript
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "at-spi2-core"; pname = "at-spi2-core";
version = "2.42.0"; version = "2.43.92";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "11p3lvmbm0hfck3p5xwxxycln8x0cf7l68jjz6an2g7sjh7a2pab";
};
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
nativeBuildInputs = [ meson ninja pkg-config gobject-introspection makeWrapper ]; src = fetchurl {
# libXext is a transitive dependency of libXi url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
buildInputs = [ libX11 libXtst libXi libXext ]; sha256 = "jXTuEnhOtCU34v1sGWT/J+xXHh6wh9Y8F8xDceyuhyM=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
makeWrapper
];
buildInputs = [
libX11
# 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
];
# In atspi-2.pc dbus-1 glib-2.0 # In atspi-2.pc dbus-1 glib-2.0
propagatedBuildInputs = [ dbus glib ]; propagatedBuildInputs = [
dbus
glib
];
doCheck = false; # fails with "AT-SPI: Couldn't connect to accessibility bus. Is at-spi-bus-launcher running?" # fails with "AT-SPI: Couldn't connect to accessibility bus. Is at-spi-bus-launcher running?"
doCheck = false;
# Provide dbus-daemon fallback when it is not already running when mesonFlags = [
# at-spi2-bus-launcher is executed. This allows us to avoid # Provide dbus-daemon fallback when it is not already running when
# including the entire dbus closure in libraries linked with # at-spi2-bus-launcher is executed. This allows us to avoid
# the at-spi2-core libraries. # including the entire dbus closure in libraries linked with
mesonFlags = [ "-Ddbus_daemon=/run/current-system/sw/bin/dbus-daemon" ]; # the at-spi2-core libraries.
"-Ddbus_daemon=/run/current-system/sw/bin/dbus-daemon"
];
passthru = { passthru = {
updateScript = gnome.updateScript { updateScript = gnome.updateScript {