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

41 lines
1 KiB
Nix
Raw Normal View History

2019-02-13 22:47:50 +01:00
{ stdenv, fetchurl, gtk3
2018-06-21 13:08:26 +02:00
, pkgconfig, gnome3, dbus, xvfb_run }:
let
2020-06-09 08:58:24 +02:00
version = "5.1.1";
2018-06-21 13:08:26 +02:00
pname = "amtk";
in stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-06-09 08:58:24 +02:00
sha256 = "1wax6mim8dj0m21k8ima7ysm3bzzp54r00jganwbzakq8bfnnrgr";
2018-06-21 13:08:26 +02:00
};
nativeBuildInputs = [
pkgconfig
dbus
];
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
${xvfb_run}/bin/xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
make check
'';
passthru.updateScript = gnome3.updateScript { packageName = pname; };
meta = with stdenv.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;
};
}