diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/girara/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/misc/girara/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/girara/default.nix b/nixpkgs/pkgs/applications/misc/girara/default.nix new file mode 100644 index 00000000000..6bfb4907807 --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/girara/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchurl, meson, ninja, pkgconfig, check, dbus, xvfb_run, glib, gtk, gettext, libiconv, json_c, libintl +}: + +stdenv.mkDerivation rec { + pname = "girara"; + version = "0.3.3"; + + outputs = [ "out" "dev" ]; + + src = fetchurl { + url = "https://git.pwmt.org/pwmt/${pname}/-/archive/${version}/${pname}-${version}.tar.gz"; + sha256 = "13vr62kkkqs2xsrmsn114n6c6084ix1qyjksczqsc3s2y3bdsmj4"; + }; + + nativeBuildInputs = [ meson ninja pkgconfig gettext check dbus xvfb_run ]; + buildInputs = [ libintl libiconv json_c ]; + propagatedBuildInputs = [ glib gtk ]; + + doCheck = true; + + 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 stdenv.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; + platforms = platforms.linux ++ platforms.darwin; + maintainers = [ ]; + }; +} |