Commit 566c0f95 authored by Dmitry Ivankov's avatar Dmitry Ivankov
Browse files

gdl: suppress gcc14 warning

https://gitlab.gnome.org/Archive/gdl/-/issues/9

A patch is also listed there but not clear if it is accepted upstream
yet, disabling warning is probably safer.

`gdl` is dependency of `gpx-viewer` which gets fixed by this change,
and the app starts ok.

Failure log example
https://hydra.nixos.org/build/294736426/nixlog/2

ZHF: #403336
parent 4997b19d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -18,6 +18,11 @@ stdenv.mkDerivation rec {
    sha256 = "NkHU/WadHhgYrv88+f+3iH/Fw2eFC3jCjHdeukq2pVU=";
  };

  env = lib.optionalAttrs stdenv.cc.isGNU {
    # https://gitlab.gnome.org/Archive/gdl/-/issues/9
    NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
  };

  nativeBuildInputs = [
    pkg-config
    intltool