···3333# To troubleshoot a binary wrapper after you compiled it,
3434# use the `strings` command or open the binary file in a text editor.
3535makeWrapper() {
3636- local NIX_CFLAGS_COMPILE NIX_CFLAGS_LINK
3737- unset NIX_CFLAGS_COMPILE NIX_CFLAGS_LINK
3636+ local NIX_CFLAGS_COMPILE= NIX_CFLAGS_LINK=
3837 local original="$1"
3938 local wrapper="$2"
4039 shift 2
···4645 makeDocumentedCWrapper "$original" "$@" | \
4746 @CC@ \
4847 -Wall -Werror -Wpedantic \
4848+ -Wno-overlength-strings \
4949 -Os \
5050 -x c \
5151 -o "$wrapper" -
-2
pkgs/desktops/gnome/apps/cheese/default.nix
···8080 pipewire # PipeWire provides a gstreamer plugin for using PipeWire for video
8181 ];
82828383- NIX_CFLAGS_COMPILE = "-Wno-error=overlength-strings";
8484-8583 postPatch = ''
8684 chmod +x meson_post_install.py
8785 patchShebangs meson_post_install.py
···5656 # updated version is not available. Keep aarch64-darwin on 11.2.0 so the
5757 # large body of packages which depend on gfortran are still functional
5858 # until GCC 12 is the default.
5959- version = if (stdenv.isDarwin && stdenv.isAarch64) then
5959+ # On x86_64-darwin, building libgcc suffers from some different issues with 11.3.0.
6060+ version = if stdenv.isDarwin then
6061 "${majorVersion}.2.0" else "${majorVersion}.3.0";
61626263 inherit (stdenv) buildPlatform hostPlatform targetPlatform;
···96979798 src = fetchurl {
9899 url = "mirror://gcc/releases/gcc-${version}/gcc-${version}.tar.xz";
9999- sha256 = if (stdenv.isDarwin && stdenv.isAarch64)
100100+ sha256 = if stdenv.isDarwin
100101 then "sha256-0I7cU2tUw3KhAQ/2YZ3SdMDxYDqkkhK6IPeqLNo2+os="
101102 else "sha256-tHzygYaR9bHiHfK7OMeV+sLPvWQO3i0KXhyJ4zijrDk=";
102103 };