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

55 lines
1.1 KiB
Nix
Raw Normal View History

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