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