2021-01-21 09:00:13 -08:00
|
|
|
{ lib, stdenv
|
2020-09-20 17:19:39 -07:00
|
|
|
, fetchurl
|
|
|
|
, gtk3
|
2021-01-18 22:50:56 -08:00
|
|
|
, pkg-config
|
2020-09-20 17:19:39 -07:00
|
|
|
, gobject-introspection
|
|
|
|
, gnome3
|
|
|
|
, dbus
|
|
|
|
, xvfb_run
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-06-21 04:08:26 -07:00
|
|
|
pname = "amtk";
|
2020-10-11 00:09:36 -07:00
|
|
|
version = "5.2.0";
|
2018-06-21 04:08:26 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 09:00:13 -08:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-10-11 00:09:36 -07:00
|
|
|
sha256 = "0y3hmmflw4i0y0yb9a8rlihbv3cbwnvdcf1n5jycwzpq9jxla1c2";
|
2018-06-21 04:08:26 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-18 22:50:56 -08:00
|
|
|
pkg-config
|
2018-06-21 04:08:26 -07:00
|
|
|
dbus
|
2020-08-21 13:11:26 -07:00
|
|
|
gobject-introspection
|
2018-06-21 04:08:26 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-02-13 13:47:50 -08:00
|
|
|
gtk3
|
2018-06-21 04:08:26 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = stdenv.isLinux;
|
|
|
|
checkPhase = ''
|
|
|
|
export NO_AT_BRIDGE=1
|
|
|
|
${xvfb_run}/bin/xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
|
|
make check
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = gnome3.updateScript { packageName = pname; };
|
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/Amtk";
|
2019-09-03 15:49:40 -07:00
|
|
|
description = "Actions, Menus and Toolbars Kit for GTK applications";
|
2018-06-21 04:08:26 -07:00
|
|
|
maintainers = [ maintainers.manveru ];
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|