gnome: fix compilation with gcc 11.3.0

A new warning (`-Werror=overlength-strings`) is causing issues due to
a recent gcc version upgrade
main
Fabián Heredia Montiel 2 years ago
parent a97b262ba6
commit 251ab5f3f6
  1. 2
      pkgs/desktops/gnome/apps/cheese/default.nix
  2. 2
      pkgs/desktops/gnome/apps/gnome-maps/default.nix
  3. 2
      pkgs/desktops/gnome/apps/gnome-music/default.nix
  4. 2
      pkgs/desktops/gnome/core/gnome-shell/default.nix
  5. 2
      pkgs/desktops/gnome/core/totem/default.nix

@ -80,6 +80,8 @@ stdenv.mkDerivation rec {
pipewire # PipeWire provides a gstreamer plugin for using PipeWire for video
];
NIX_CFLAGS_COMPILE = "-Wno-error=overlength-strings";
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py

@ -69,6 +69,8 @@ stdenv.mkDerivation rec {
webkitgtk
];
NIX_CFLAGS_COMPILE = "-Wno-error=overlength-strings";
postPatch = ''
chmod +x meson_post_install.py # patchShebangs requires executable file
patchShebangs meson_post_install.py

@ -76,6 +76,8 @@ python3.pkgs.buildPythonApplication rec {
gst-plugins-ugly
]);
NIX_CFLAGS_COMPILE = "-Wno-error=overlength-strings";
pythonPath = with python3.pkgs; [
pycairo
dbus-python

@ -175,6 +175,8 @@ stdenv.mkDerivation rec {
pythonEnv
];
NIX_CFLAGS_COMPILE = "-Wno-error=overlength-strings";
mesonFlags = [
"-Dgtk_doc=true"
];

@ -77,6 +77,8 @@ stdenv.mkDerivation rec {
xvfb-run
];
NIX_CFLAGS_COMPILE = "-Wno-error=overlength-strings";
mesonFlags = [
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"

Loading…
Cancel
Save