nixpkgs/pkgs/development/libraries/amtk/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv
, lib
2020-09-21 00:19:39 +00:00
, fetchurl
, gtk3
, meson
, mesonEmulatorHook
, ninja
, pkg-config
2020-09-21 00:19:39 +00:00
, gobject-introspection
, gtk-doc
, docbook-xsl-nons
, gnome
2020-09-21 00:19:39 +00:00
, dbus
2021-05-08 13:45:03 +00:00
, xvfb-run
2020-09-21 00:19:39 +00:00
}:
stdenv.mkDerivation rec {
2018-06-21 11:08:26 +00:00
pname = "amtk";
version = "5.6.1";
outputs = [ "out" "dev" "devdoc" ];
2018-06-21 11:08:26 +00:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1QEVuFyHKqwpaTS17nJqP6FWxvWtltJ+Dt0Kpa0XMig=";
2018-06-21 11:08:26 +00:00
};
strictDeps = true;
2018-06-21 11:08:26 +00:00
nativeBuildInputs = [
meson
ninja
pkg-config
2018-06-21 11:08:26 +00:00
dbus
gobject-introspection
gtk-doc
docbook-xsl-nons
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
2018-06-21 11:08:26 +00:00
];
buildInputs = [
2019-02-13 21:47:50 +00:00
gtk3
2018-06-21 11:08:26 +00:00
];
doCheck = stdenv.isLinux;
checkPhase = ''
export NO_AT_BRIDGE=1
2021-05-08 13:45:03 +00:00
${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
2022-11-21 02:03:50 +00:00
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
2018-06-21 11:08:26 +00:00
'';
passthru.updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "none";
};
2018-06-21 11:08:26 +00:00
meta = with lib; {
homepage = "https://wiki.gnome.org/Projects/Amtk";
description = "Actions, Menus and Toolbars Kit for GTK applications";
2018-06-21 11:08:26 +00:00
maintainers = [ maintainers.manveru ];
license = licenses.lgpl21Plus;
platforms = platforms.linux;
};
}