nixpkgs/pkgs/applications/misc/girara/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

88 lines
1.6 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitLab
, meson
, ninja
, pkg-config
, check
, dbus
, xvfb-run
, glib
, gtk
, gettext
, libiconv
, json-glib
, libintl
, zathura
2017-02-15 13:58:19 +00:00
}:
stdenv.mkDerivation rec {
pname = "girara";
2024-01-14 05:25:28 +00:00
version = "0.4.2";
outputs = [ "out" "dev" ];
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=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
check
dbus
2023-04-05 23:02:45 +00:00
glib # for glib-compile-resources
];
buildInputs = [
libintl
libiconv
json-glib
];
propagatedBuildInputs = [
glib
gtk
];
nativeCheckInputs = [
xvfb-run
];
2020-08-14 09:22:00 +00:00
doCheck = !stdenv.isDarwin;
mesonFlags = [
"-Ddocs=disabled" # docs do not seem to be installed
(lib.mesonEnable "tests" ((stdenv.buildPlatform.canExecute stdenv.hostPlatform) && (!stdenv.isDarwin)))
];
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 \
meson test --print-errorlogs
'';
passthru.tests = {
inherit zathura;
};
meta = with lib; {
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;
2017-04-21 22:44:19 +00:00
platforms = platforms.linux ++ platforms.darwin;
maintainers = [ ];
};
}