From a381349ad82da5c85453b64fc4ae416f0a94c40f Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Tue, 5 Jun 2018 18:57:18 +0300 Subject: [PATCH] at-spi2-core: add updateScript hook --- .../libraries/at-spi2-core/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/at-spi2-core/default.nix b/pkgs/development/libraries/at-spi2-core/default.nix index cb17a026e5fa..ba34e7f5f3fe 100644 --- a/pkgs/development/libraries/at-spi2-core/default.nix +++ b/pkgs/development/libraries/at-spi2-core/default.nix @@ -9,17 +9,19 @@ , dbus , glib , libX11 -, libXtst # at-spi2-core can be build with custom option not to support X, but due to it is a aplication client-side library, GUI-less usage is a very rare case +, 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 , libXi + +, gnome3 # To pass updateScript }: stdenv.mkDerivation rec { - name = "${moduleName}-${version}"; - moduleName = "at-spi2-core"; + name = "${pname}-${version}"; + pname = "at-spi2-core"; version = "2.28.0"; src = fetchurl { - url = "mirror://gnome/sources/${moduleName}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz"; + url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz"; sha256 = "11qwdxxx4jm0zj04xydlwah41axiz276dckkiql3rr0wn5x4i8j2"; }; @@ -28,6 +30,12 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ meson ninja pkgconfig gobjectIntrospection ]; buildInputs = [ dbus glib libX11 libXtst libXi ]; + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + }; + }; + meta = with stdenv.lib; { description = "Assistive Technology Service Provider Interface protocol definitions and daemon for D-Bus"; homepage = https://gitlab.gnome.org/GNOME/at-spi2-core;