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

45 lines
1.3 KiB
Nix
Raw Normal View History

2021-05-08 15:45:03 +02:00
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, check, dbus, xvfb-run, glib, gtk, gettext, libiconv, json_c, libintl
2017-02-15 14:58:19 +01:00
}:
stdenv.mkDerivation rec {
pname = "girara";
2021-07-20 22:19:38 +02:00
version = "0.3.6";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "https://git.pwmt.org/pwmt/${pname}/-/archive/${version}/${pname}-${version}.tar.gz";
2021-07-20 22:19:38 +02:00
sha256 = "sha256-GPECj0CVxKh+gTfAkkvs13tdiy93il97iqbSTxLQSiM=";
};
2021-05-25 09:11:34 +02:00
nativeBuildInputs = [ meson ninja pkg-config gettext check dbus ];
buildInputs = [ libintl libiconv json_c ];
2018-03-27 21:35:12 +02:00
propagatedBuildInputs = [ glib gtk ];
2021-05-25 09:11:34 +02:00
checkInputs = [ xvfb-run ];
2020-08-14 11:22:00 +02:00
doCheck = !stdenv.isDarwin;
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
'';
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-22 00:44:19 +02:00
platforms = platforms.linux ++ platforms.darwin;
maintainers = [ ];
};
}