···33# To troubleshoot a binary wrapper after you compiled it,
34# use the `strings` command or open the binary file in a text editor.
35makeWrapper() {
36- local NIX_CFLAGS_COMPILE NIX_CFLAGS_LINK
37- unset NIX_CFLAGS_COMPILE NIX_CFLAGS_LINK
38 local original="$1"
39 local wrapper="$2"
40 shift 2
···46 makeDocumentedCWrapper "$original" "$@" | \
47 @CC@ \
48 -Wall -Werror -Wpedantic \
049 -Os \
50 -x c \
51 -o "$wrapper" -
···33# To troubleshoot a binary wrapper after you compiled it,
34# use the `strings` command or open the binary file in a text editor.
35makeWrapper() {
36+ local NIX_CFLAGS_COMPILE= NIX_CFLAGS_LINK=
037 local original="$1"
38 local wrapper="$2"
39 shift 2
···45 makeDocumentedCWrapper "$original" "$@" | \
46 @CC@ \
47 -Wall -Werror -Wpedantic \
48+ -Wno-overlength-strings \
49 -Os \
50 -x c \
51 -o "$wrapper" -
-2
pkgs/desktops/gnome/apps/cheese/default.nix
···80 pipewire # PipeWire provides a gstreamer plugin for using PipeWire for video
81 ];
8283- NIX_CFLAGS_COMPILE = "-Wno-error=overlength-strings";
84-85 postPatch = ''
86 chmod +x meson_post_install.py
87 patchShebangs meson_post_install.py
···80 pipewire # PipeWire provides a gstreamer plugin for using PipeWire for video
81 ];
820083 postPatch = ''
84 chmod +x meson_post_install.py
85 patchShebangs meson_post_install.py
···56 # updated version is not available. Keep aarch64-darwin on 11.2.0 so the
57 # large body of packages which depend on gfortran are still functional
58 # until GCC 12 is the default.
59- version = if (stdenv.isDarwin && stdenv.isAarch64) then
060 "${majorVersion}.2.0" else "${majorVersion}.3.0";
6162 inherit (stdenv) buildPlatform hostPlatform targetPlatform;
···9697 src = fetchurl {
98 url = "mirror://gcc/releases/gcc-${version}/gcc-${version}.tar.xz";
99- sha256 = if (stdenv.isDarwin && stdenv.isAarch64)
100 then "sha256-0I7cU2tUw3KhAQ/2YZ3SdMDxYDqkkhK6IPeqLNo2+os="
101 else "sha256-tHzygYaR9bHiHfK7OMeV+sLPvWQO3i0KXhyJ4zijrDk=";
102 };
···56 # updated version is not available. Keep aarch64-darwin on 11.2.0 so the
57 # large body of packages which depend on gfortran are still functional
58 # until GCC 12 is the default.
59+ # On x86_64-darwin, building libgcc suffers from some different issues with 11.3.0.
60+ version = if stdenv.isDarwin then
61 "${majorVersion}.2.0" else "${majorVersion}.3.0";
6263 inherit (stdenv) buildPlatform hostPlatform targetPlatform;
···9798 src = fetchurl {
99 url = "mirror://gcc/releases/gcc-${version}/gcc-${version}.tar.xz";
100+ sha256 = if stdenv.isDarwin
101 then "sha256-0I7cU2tUw3KhAQ/2YZ3SdMDxYDqkkhK6IPeqLNo2+os="
102 else "sha256-tHzygYaR9bHiHfK7OMeV+sLPvWQO3i0KXhyJ4zijrDk=";
103 };