2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, check, dbus, xvfb-run, glib, gtk, gettext, libiconv, json_c, libintl
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "girara";
|
2022-02-21 08:47:16 +00:00
|
|
|
version = "0.3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://git.pwmt.org/pwmt/${pname}/-/archive/${version}/${pname}-${version}.tar.gz";
|
2022-02-21 08:47:16 +00:00
|
|
|
sha256 = "sha256-QTQiE/jnRSWPHbKMu2zMJ6YwCaXgAb95G74BzkNtTbc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config gettext check dbus ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libintl libiconv json_c ];
|
|
|
|
propagatedBuildInputs = [ glib gtk ];
|
2021-05-28 09:39:13 +00:00
|
|
|
checkInputs = [ xvfb-run ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://git.pwmt.org/pwmt/girara";
|
|
|
|
description = "User interface library";
|
|
|
|
longDescription = ''
|
|
|
|
girara is a library that implements a GTK based VIM-like user interface
|
|
|
|
that focuses on simplicity and minimalism.
|
|
|
|
'';
|
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = [ ];
|
|
|
|
};
|
|
|
|
}
|