2019-06-24 16:01:21 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, check, dbus, xvfb_run, glib, gtk, gettext, libiconv, json_c, libintl
|
2017-02-15 13:58:19 +00:00
|
|
|
}:
|
2012-05-14 22:43:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-24 16:01:21 +01:00
|
|
|
pname = "girara";
|
2018-12-25 23:08:33 +00:00
|
|
|
version = "0.3.2";
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2019-06-24 16:01:21 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2012-05-14 22:43:46 +01:00
|
|
|
src = fetchurl {
|
2019-06-24 16:01:21 +01:00
|
|
|
url = "https://pwmt.org/projects/girara/download/${pname}-${version}.tar.xz";
|
2018-12-25 23:08:33 +00:00
|
|
|
sha256 = "1kc6n1mxjxa7wvwnqy94qfg8l9jvx9qrvrr2kc7m4g0z20x3a00p";
|
2012-05-14 22:43:46 +01:00
|
|
|
};
|
|
|
|
|
2019-06-24 16:01:21 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext check dbus xvfb_run ];
|
|
|
|
buildInputs = [ libintl libiconv json_c ];
|
2018-03-27 20:35:12 +01:00
|
|
|
propagatedBuildInputs = [ glib gtk ];
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2019-06-24 16:01:21 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Ddocs=disabled" # docs do not seem to be installed
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export NO_AT_BRIDGE=1
|
|
|
|
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
|
|
meson test --print-errorlogs
|
|
|
|
'';
|
|
|
|
|
2017-02-15 13:58:19 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 22:50:51 +01:00
|
|
|
homepage = https://pwmt.org/projects/girara/;
|
2012-05-14 22:43:46 +01:00
|
|
|
description = "User interface library";
|
|
|
|
longDescription = ''
|
|
|
|
girara is a library that implements a GTK+ based VIM-like user interface
|
|
|
|
that focuses on simplicity and minimalism.
|
|
|
|
'';
|
2014-11-23 22:37:53 +00:00
|
|
|
license = licenses.zlib;
|
2017-04-21 23:44:19 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2019-07-03 10:27:39 +01:00
|
|
|
maintainers = [ ];
|
2012-05-14 22:43:46 +01:00
|
|
|
};
|
|
|
|
}
|