2023-03-11 22:55:49 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2023-08-19 04:20:00 +00:00
|
|
|
, fetchFromGitLab
|
2023-03-11 22:55:49 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, check
|
|
|
|
, dbus
|
|
|
|
, xvfb-run
|
|
|
|
, glib
|
|
|
|
, gtk
|
|
|
|
, gettext
|
|
|
|
, libiconv
|
|
|
|
, json-glib
|
|
|
|
, libintl
|
2023-08-19 04:20:00 +00:00
|
|
|
, zathura
|
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";
|
2024-01-14 05:25:28 +00:00
|
|
|
version = "0.4.2";
|
2012-05-14 21:43:46 +00:00
|
|
|
|
2019-06-24 15:01:21 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2023-08-19 04:20:00 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "git.pwmt.org";
|
|
|
|
owner = "pwmt";
|
|
|
|
repo = "girara";
|
|
|
|
rev = version;
|
2024-01-14 05:25:28 +00:00
|
|
|
hash = "sha256-/9pj6gB46sKIilImDGdJ8H7UHip/z5ckZWZnJLw/0YU=";
|
2012-05-14 21:43:46 +00:00
|
|
|
};
|
|
|
|
|
2023-03-11 22:55:49 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gettext
|
|
|
|
check
|
|
|
|
dbus
|
2023-04-05 23:02:45 +00:00
|
|
|
glib # for glib-compile-resources
|
2023-03-11 22:55:49 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libintl
|
|
|
|
libiconv
|
|
|
|
json-glib
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
gtk
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
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
|
2023-12-19 14:42:07 +00:00
|
|
|
(lib.mesonEnable "tests" ((stdenv.buildPlatform.canExecute stdenv.hostPlatform) && (!stdenv.isDarwin)))
|
2019-06-24 15:01:21 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export NO_AT_BRIDGE=1
|
|
|
|
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
2022-11-21 02:03:50 +00:00
|
|
|
--config-file=${dbus}/share/dbus-1/session.conf \
|
2019-06-24 15:01:21 +00:00
|
|
|
meson test --print-errorlogs
|
|
|
|
'';
|
|
|
|
|
2023-08-19 04:20:00 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit zathura;
|
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|