2022-05-18 14:49:53 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-11-12 09:05:59 +00:00
|
|
|
, fetchurl
|
|
|
|
, gtk3
|
2021-05-20 23:08:51 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-11-12 09:05:59 +00:00
|
|
|
, gobject-introspection
|
2022-05-18 14:49:53 +00:00
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-11-12 09:05:59 +00:00
|
|
|
, dbus
|
2021-05-20 23:08:51 +00:00
|
|
|
, xvfb-run
|
2020-11-12 09:05:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "amtk";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "5.4.1";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "frq8QpsO67KzI2DJv9vjaOSJs1w83AhqhWz8mzpGanI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
dbus
|
2020-11-12 09:05:59 +00:00
|
|
|
gobject-introspection
|
2022-05-18 14:49:53 +00:00
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = stdenv.isLinux;
|
|
|
|
checkPhase = ''
|
|
|
|
export NO_AT_BRIDGE=1
|
2021-05-20 23:08:51 +00:00
|
|
|
${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
2020-04-24 23:36:52 +00:00
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
2021-05-20 23:08:51 +00:00
|
|
|
meson test --print-errorlogs
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
passthru.updateScript = gnome.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/Amtk";
|
|
|
|
description = "Actions, Menus and Toolbars Kit for GTK applications";
|
|
|
|
maintainers = [ maintainers.manveru ];
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|