libgnt: 2.14.3 -> 2.14.4-dev

Without the update build will fail on `ncurses-6.5` update as:

    ../gntwm.c:183:52: error: invalid use of incomplete typedef 'PANEL' {aka 'struct panel'}
      183 |                                 if (mvwin_wch(below->win, y - getbegy(below->win), sx - 1 - getbegx(below->win), &ch) != OK)
          |                                                    ^~

This is caused by `ncurses` hiding opaque fields by default in a new
release.
This commit is contained in:
Sergei Trofimovich 2024-05-04 22:01:25 +01:00
parent 343b0a2225
commit f64a3cb81f

View File

@ -6,13 +6,13 @@
}:
stdenv.mkDerivation rec {
pname = "libgnt";
version = "2.14.3";
version = "2.14.4-dev";
outputs = [ "out" "dev" ] ++ lib.optional buildDocs "devdoc";
src = fetchurl {
url = "mirror://sourceforge/pidgin/${pname}-${version}.tar.xz";
hash = "sha256-V/VFf3KZnQuxoTmjfydG7BtaAsCU8nEKM52LzqQjYSM=";
hash = "sha256-GVkzqacx01dXkbiBulzArSpxXh6cTCPMqqKhfhZMluw=";
};
nativeBuildInputs = [ glib meson ninja pkg-config ]
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
buildInputs = [ glib ncurses libxml2 ];
postPatch = ''
substituteInPlace meson.build --replace \
substituteInPlace meson.build --replace-fail \
"ncurses_sys_prefix = '/usr'" \
"ncurses_sys_prefix = '${lib.getDev ncurses}'"
'';