87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
87 lines
1.7 KiB
Nix
87 lines
1.7 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, fetchpatch2
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, check
|
|
, dbus
|
|
, xvfb-run
|
|
, glib
|
|
, gtk
|
|
, gettext
|
|
, libiconv
|
|
, json-glib
|
|
, libintl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "girara";
|
|
version = "0.3.9";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchurl {
|
|
url = "https://git.pwmt.org/pwmt/${pname}/-/archive/${version}/${pname}-${version}.tar.gz";
|
|
hash = "sha256-DoqYykR/N17BHQ90GoLvAYluQ3odWPwUGRTacN6BiWU=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix memory management bug revealed by GLib 2.76.
|
|
# https://git.pwmt.org/pwmt/girara/-/issues/17
|
|
(fetchpatch2 {
|
|
url = "https://git.pwmt.org/pwmt/girara/-/commit/6926cc1234853ccf3010a1e2625aafcf462ed60e.patch";
|
|
hash = "sha256-uayT6ikXtaBPxhZFyskShug3Tbvy2a9qimLRwdiAsic=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gettext
|
|
check
|
|
dbus
|
|
];
|
|
|
|
buildInputs = [
|
|
libintl
|
|
libiconv
|
|
json-glib
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
glib
|
|
gtk
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
xvfb-run
|
|
];
|
|
|
|
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}/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;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = [ ];
|
|
};
|
|
}
|