Files
nixpkgs/pkgs/by-name/gi/girara/package.nix
2026-02-11 03:19:07 -05:00

97 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
meson,
ninja,
pkg-config,
check,
dbus,
xvfb-run,
glib,
gtk3,
gettext,
libiconv,
json-glib,
libintl,
zathura,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "girara";
version = "2026.02.04";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "pwmt";
repo = "girara";
tag = finalAttrs.version;
hash = "sha256-wTVgldfo8pWdY244nNldiogioijv/k32w1A8pEqOTRE=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
check
dbus
glib # for glib-compile-resources
];
buildInputs = [
libintl
libiconv
json-glib
];
propagatedBuildInputs = [
glib
gtk3
];
nativeCheckInputs = [
xvfb-run
];
doCheck = !stdenv.hostPlatform.isDarwin;
mesonFlags = [
"-Ddocs=disabled" # docs do not seem to be installed
(lib.mesonEnable "tests" (
(stdenv.buildPlatform.canExecute stdenv.hostPlatform) && (!stdenv.hostPlatform.isDarwin)
))
];
checkPhase = ''
export NO_AT_BRIDGE=1
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
'';
passthru = {
updateScript = gitUpdater { };
tests = {
inherit zathura;
};
};
meta = {
homepage = "https://pwmt.org/projects/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 = lib.licenses.zlib;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = [ ];
};
})