2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv
|
2020-09-21 02:19:39 +02:00
|
|
|
, fetchurl
|
|
|
|
, gtk3
|
2021-03-21 00:57:24 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2020-09-21 02:19:39 +02:00
|
|
|
, gobject-introspection
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2020-09-21 02:19:39 +02:00
|
|
|
, dbus
|
2021-05-08 15:45:03 +02:00
|
|
|
, xvfb-run
|
2020-09-21 02:19:39 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-06-21 13:08:26 +02:00
|
|
|
pname = "amtk";
|
2021-03-21 01:31:56 +01:00
|
|
|
version = "5.3.1";
|
2018-06-21 13:08:26 +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";
|
2021-03-21 01:31:56 +01:00
|
|
|
sha256 = "12v3nj1bb7507ndprjggq0hpz8k719b4bwvl8sm43p3ibmn27anm";
|
2018-06-21 13:08:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-03-21 00:57:24 +01:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2018-06-21 13:08:26 +02:00
|
|
|
dbus
|
2020-08-21 22:11:26 +02:00
|
|
|
gobject-introspection
|
2018-06-21 13:08:26 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-02-13 22:47:50 +01:00
|
|
|
gtk3
|
2018-06-21 13:08:26 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = stdenv.isLinux;
|
|
|
|
checkPhase = ''
|
|
|
|
export NO_AT_BRIDGE=1
|
2021-05-08 15:45:03 +02:00
|
|
|
${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
2018-06-21 13:08:26 +02:00
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
2021-03-21 00:57:24 +01:00
|
|
|
meson test --print-errorlogs
|
2018-06-21 13:08:26 +02:00
|
|
|
'';
|
|
|
|
|
2021-05-07 23:18:14 +02:00
|
|
|
passthru.updateScript = gnome.updateScript {
|
2021-03-21 00:57:24 +01:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
2018-06-21 13:08:26 +02:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/Amtk";
|
2019-09-04 00:49:40 +02:00
|
|
|
description = "Actions, Menus and Toolbars Kit for GTK applications";
|
2018-06-21 13:08:26 +02:00
|
|
|
maintainers = [ maintainers.manveru ];
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|