2021-05-08 13:45:03 +00:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, check, dbus, xvfb-run, glib, gtk, gettext, libiconv, json_c, libintl
|
2017-02-15 13:58:19 +00:00
|
|
|
}:
|
2012-05-14 21:43:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-24 15:01:21 +00:00
|
|
|
pname = "girara";
|
2022-02-16 07:04:02 +00:00
|
|
|
version = "0.3.7";
|
2012-05-14 21:43:46 +00:00
|
|
|
|
2019-06-24 15:01:21 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2012-05-14 21:43:46 +00:00
|
|
|
src = fetchurl {
|
2019-10-06 14:18:42 +00:00
|
|
|
url = "https://git.pwmt.org/pwmt/${pname}/-/archive/${version}/${pname}-${version}.tar.gz";
|
2022-02-16 07:04:02 +00:00
|
|
|
sha256 = "sha256-QTQiE/jnRSWPHbKMu2zMJ6YwCaXgAb95G74BzkNtTbc=";
|
2012-05-14 21:43:46 +00:00
|
|
|
};
|
|
|
|
|
2021-05-25 07:11:34 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config gettext check dbus ];
|
2019-06-24 15:01:21 +00:00
|
|
|
buildInputs = [ libintl libiconv json_c ];
|
2018-03-27 19:35:12 +00:00
|
|
|
propagatedBuildInputs = [ glib gtk ];
|
2021-05-25 07:11:34 +00:00
|
|
|
checkInputs = [ xvfb-run ];
|
2012-05-14 21:43:46 +00:00
|
|
|
|
2020-08-14 09:22:00 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2019-06-24 15:01:21 +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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-06 14:18:42 +00:00
|
|
|
homepage = "https://git.pwmt.org/pwmt/girara";
|
2012-05-14 21:43:46 +00:00
|
|
|
description = "User interface library";
|
|
|
|
longDescription = ''
|
2019-09-03 22:49:40 +00:00
|
|
|
girara is a library that implements a GTK based VIM-like user interface
|
2012-05-14 21:43:46 +00:00
|
|
|
that focuses on simplicity and minimalism.
|
|
|
|
'';
|
2014-11-23 22:37:53 +00:00
|
|
|
license = licenses.zlib;
|
2017-04-21 22:44:19 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2019-07-03 09:27:39 +00:00
|
|
|
maintainers = [ ];
|
2012-05-14 21:43:46 +00:00
|
|
|
};
|
|
|
|
}
|