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