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

55 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-09-21 01:19:39 +01:00
, fetchurl
, gtk3
, meson
, ninja
, pkg-config
2020-09-21 01:19:39 +01:00
, gobject-introspection
, 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 {
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 = [
meson
ninja
pkg-config
2018-06-21 12:08:26 +01:00
dbus
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 \
meson test --print-errorlogs
2018-06-21 12:08:26 +01:00
'';
passthru.updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "none";
};
2018-06-21 12:08:26 +01:00
meta = with lib; {
homepage = "https://wiki.gnome.org/Projects/Amtk";
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;
};
}