Merge pull request #217206 from Artturin/stdenvimprovements1

authored by Bernardo Meurer and committed by GitHub 42008a14 984655a3

+867 -866
+1 -1
doc/languages-frameworks/emscripten.section.md
··· 60 (old: rec { 61 buildInputs = old.buildInputs ++ [ pkg-config ]; 62 # we need to reset this setting! 63 - NIX_CFLAGS_COMPILE=""; 64 configurePhase = '' 65 # FIXME: Some tests require writing at $HOME 66 HOME=$TMPDIR
··· 60 (old: rec { 61 buildInputs = old.buildInputs ++ [ pkg-config ]; 62 # we need to reset this setting! 63 + env = (old.env or { }) // { NIX_CFLAGS_COMPILE = ""; }; 64 configurePhase = '' 65 # FIXME: Some tests require writing at $HOME 66 HOME=$TMPDIR
+1 -1
doc/stdenv/stdenv.chapter.md
··· 1329 1330 Adds the `-O2 -D_FORTIFY_SOURCE=2` compiler options. During code generation the compiler knows a great deal of information about buffer sizes (where possible), and attempts to replace insecure unlimited length buffer function calls with length-limited ones. This is especially useful for old, crufty code. Additionally, format strings in writable memory that contain `%n` are blocked. If an application depends on such a format string, it will need to be worked around. 1331 1332 - Additionally, some warnings are enabled which might trigger build failures if compiler warnings are treated as errors in the package build. In this case, set `NIX_CFLAGS_COMPILE` to `-Wno-error=warning-type`. 1333 1334 This needs to be turned off or fixed for errors similar to: 1335
··· 1329 1330 Adds the `-O2 -D_FORTIFY_SOURCE=2` compiler options. During code generation the compiler knows a great deal of information about buffer sizes (where possible), and attempts to replace insecure unlimited length buffer function calls with length-limited ones. This is especially useful for old, crufty code. Additionally, format strings in writable memory that contain `%n` are blocked. If an application depends on such a format string, it will need to be worked around. 1331 1332 + Additionally, some warnings are enabled which might trigger build failures if compiler warnings are treated as errors in the package build. In this case, set `env.NIX_CFLAGS_COMPILE` to `-Wno-error=warning-type`. 1333 1334 This needs to be turned off or fixed for errors similar to: 1335
+1 -1
pkgs/applications/audio/aacgain/default.nix
··· 33 libtool 34 ]; 35 36 - NIX_CFLAGS_COMPILE = "-Wno-error=narrowing"; 37 38 meta = with lib; { 39 description = "ReplayGain for AAC files";
··· 33 libtool 34 ]; 35 36 + env.NIX_CFLAGS_COMPILE = "-Wno-error=narrowing"; 37 38 meta = with lib; { 39 description = "ReplayGain for AAC files";
+1 -1
pkgs/applications/audio/adlplug/default.nix
··· 62 "-DADLplug_Jack=${if withJack then "ON" else "OFF"}" 63 ]; 64 65 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin (toString [ 66 # "fp.h" file not found 67 "-isystem ${CoreServices}/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers" 68 ]);
··· 62 "-DADLplug_Jack=${if withJack then "ON" else "OFF"}" 63 ]; 64 65 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin (toString [ 66 # "fp.h" file not found 67 "-isystem ${CoreServices}/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers" 68 ]);
+1 -1
pkgs/applications/audio/aether-lv2/default.nix
··· 18 lv2 libX11 libGL libGLU mesa 19 ]; 20 21 - NIX_CFLAGS_COMPILE = [ 22 # Needed with GCC 12 23 "-Wno-error=array-bounds" 24 "-Wno-error=stringop-overflow"
··· 18 lv2 libX11 libGL libGLU mesa 19 ]; 20 21 + env.NIX_CFLAGS_COMPILE = toString [ 22 # Needed with GCC 12 23 "-Wno-error=array-bounds" 24 "-Wno-error=stringop-overflow"
+1 -1
pkgs/applications/audio/audio-recorder/default.nix
··· 15 }; 16 17 # https://bugs.launchpad.net/audio-recorder/+bug/1784622 18 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 19 20 nativeBuildInputs = [ pkg-config intltool wrapGAppsHook ]; 21
··· 15 }; 16 17 # https://bugs.launchpad.net/audio-recorder/+bug/1784622 18 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 19 20 nativeBuildInputs = [ pkg-config intltool wrapGAppsHook ]; 21
+1 -1
pkgs/applications/audio/bespokesynth/default.nix
··· 108 CoreAudioKit 109 ]; 110 111 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin (toString [ 112 # Fails to find fp.h on its own 113 "-isystem ${CoreServices}/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/CarbonCore.framework/Versions/Current/Headers/" 114 ]);
··· 108 CoreAudioKit 109 ]; 110 111 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin (toString [ 112 # Fails to find fp.h on its own 113 "-isystem ${CoreServices}/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/CarbonCore.framework/Versions/Current/Headers/" 114 ]);
+1 -1
pkgs/applications/audio/bristol/default.nix
··· 23 # gcc-10. Otherwise build fails as: 24 # ld: brightonCLI.o:/build/bristol-0.60.11/brighton/brightonCLI.c:139: multiple definition of 25 # `event'; brightonMixerMenu.o:/build/bristol-0.60.11/brighton/brightonMixerMenu.c:1182: first defined here 26 - NIX_CFLAGS_COMPILE = "-fcommon"; 27 28 preInstall = '' 29 sed -e "s@\`which bristol\`@$out/bin/bristol@g" -i bin/startBristol
··· 23 # gcc-10. Otherwise build fails as: 24 # ld: brightonCLI.o:/build/bristol-0.60.11/brighton/brightonCLI.c:139: multiple definition of 25 # `event'; brightonMixerMenu.o:/build/bristol-0.60.11/brighton/brightonMixerMenu.c:1182: first defined here 26 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 27 28 preInstall = '' 29 sed -e "s@\`which bristol\`@$out/bin/bristol@g" -i bin/startBristol
+1 -1
pkgs/applications/audio/fire/default.nix
··· 103 ''; 104 105 # Fails to find fp.h on its own 106 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-isystem ${CoreServices}/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/CarbonCore.framework/Versions/Current/Headers/"; 107 108 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; 109
··· 103 ''; 104 105 # Fails to find fp.h on its own 106 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-isystem ${CoreServices}/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/CarbonCore.framework/Versions/Current/Headers/"; 107 108 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; 109
+1 -1
pkgs/applications/audio/freewheeling/default.nix
··· 25 configureFlags = oldAttrs.configureFlags ++ [ "--enable-openssl-compatibility" ]; 26 })) 27 ]; 28 - NIX_CFLAGS_COMPILE = toString 29 (makeSDLFlags [ SDL SDL_ttf SDL_gfx ] ++ [ "-I${libxml2.dev}/include/libxml2" ]); 30 31 hardeningDisable = [ "format" ];
··· 25 configureFlags = oldAttrs.configureFlags ++ [ "--enable-openssl-compatibility" ]; 26 })) 27 ]; 28 + env.NIX_CFLAGS_COMPILE = toString 29 (makeSDLFlags [ SDL SDL_ttf SDL_gfx ] ++ [ "-I${libxml2.dev}/include/libxml2" ]); 30 31 hardeningDisable = [ "format" ];
+2 -2
pkgs/applications/audio/furnace/default.nix
··· 63 "-DWARNINGS_ARE_ERRORS=ON" 64 ]; 65 66 - NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 67 # Needed with GCC 12 but breaks on darwin (with clang) or aarch64 (old gcc) 68 "-Wno-error=mismatched-new-delete" 69 "-Wno-error=use-after-free" 70 - ]; 71 72 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' 73 # Normal CMake install phase on Darwin only installs the binary, the user is expected to use CPack to build a
··· 63 "-DWARNINGS_ARE_ERRORS=ON" 64 ]; 65 66 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 67 # Needed with GCC 12 but breaks on darwin (with clang) or aarch64 (old gcc) 68 "-Wno-error=mismatched-new-delete" 69 "-Wno-error=use-after-free" 70 + ]); 71 72 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' 73 # Normal CMake install phase on Darwin only installs the binary, the user is expected to use CPack to build a
+1 -1
pkgs/applications/audio/giada/default.nix
··· 30 fetchSubmodules = true; 31 }; 32 33 - NIX_CFLAGS_COMPILE = [ 34 "-w" 35 "-Wno-error" 36 ];
··· 30 fetchSubmodules = true; 31 }; 32 33 + env.NIX_CFLAGS_COMPILE = toString [ 34 "-w" 35 "-Wno-error" 36 ];
+1 -1
pkgs/applications/audio/gnaural/default.nix
··· 15 # Workaround build failure on -fno-common toolchains: 16 # ld: src/net/../gnauralnet.h:233: multiple definition of `GN_ScheduleFingerprint'; 17 # src/net/../../src/gnauralnet.h:233: first defined here 18 - NIX_CFLAGS_COMPILE = "-fcommon"; 19 20 postInstall = '' 21 mkdir -p $out/share/applications
··· 15 # Workaround build failure on -fno-common toolchains: 16 # ld: src/net/../gnauralnet.h:233: multiple definition of `GN_ScheduleFingerprint'; 17 # src/net/../../src/gnauralnet.h:233: first defined here 18 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 19 20 postInstall = '' 21 mkdir -p $out/share/applications
+1 -1
pkgs/applications/audio/grandorgue/default.nix
··· 36 "-DINSTALL_DEPEND=OFF" 37 ] ++ lib.optional (!includeDemo) "-DINSTALL_DEMO=OFF"; 38 39 - NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-DTARGET_OS_IPHONE=0"; 40 41 postInstall = lib.optionalString stdenv.isDarwin '' 42 mkdir -p $out/{Applications,bin,lib}
··· 36 "-DINSTALL_DEPEND=OFF" 37 ] ++ lib.optional (!includeDemo) "-DINSTALL_DEMO=OFF"; 38 39 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DTARGET_OS_IPHONE=0"; 40 41 postInstall = lib.optionalString stdenv.isDarwin '' 42 mkdir -p $out/{Applications,bin,lib}
+1 -1
pkgs/applications/audio/gtkpod/default.nix
··· 26 # gcc-10. Otherwise build fails as: 27 # ld: .libs/autodetection.o:/build/gtkpod-2.1.5/libgtkpod/gtkpod_app_iface.h:248: multiple definition of 28 # `gtkpod_app'; .libs/gtkpod_app_iface.o:/build/gtkpod-2.1.5/libgtkpod/gtkpod_app_iface.h:248: first defined here 29 - NIX_CFLAGS_COMPILE = "-fcommon"; 30 31 enableParallelBuilding = true; 32
··· 26 # gcc-10. Otherwise build fails as: 27 # ld: .libs/autodetection.o:/build/gtkpod-2.1.5/libgtkpod/gtkpod_app_iface.h:248: multiple definition of 28 # `gtkpod_app'; .libs/gtkpod_app_iface.o:/build/gtkpod-2.1.5/libgtkpod/gtkpod_app_iface.h:248: first defined here 29 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 30 31 enableParallelBuilding = true; 32
+1 -1
pkgs/applications/audio/guitarix/default.nix
··· 97 "--install-roboto-font" 98 ] ++ optional optimizationSupport "--optimization"; 99 100 - NIX_CFLAGS_COMPILE = [ "-fpermissive" ]; 101 102 meta = with lib; { 103 description = "A virtual guitar amplifier for Linux running with JACK";
··· 97 "--install-roboto-font" 98 ] ++ optional optimizationSupport "--optimization"; 99 100 + env.NIX_CFLAGS_COMPILE = toString [ "-fpermissive" ]; 101 102 meta = with lib; { 103 description = "A virtual guitar amplifier for Linux running with JACK";
+1 -1
pkgs/applications/audio/jamin/default.nix
··· 19 # gcc-10. Otherwise build fails as: 20 # ld: jamin-preferences.o:/build/jamin-0.95.0/src/hdeq.h:64: multiple definition of 21 # `l_notebook1'; jamin-callbacks.o:/build/jamin-0.95.0/src/hdeq.h:64: first defined here 22 - NIX_CFLAGS_COMPILE = "-fcommon"; 23 24 postInstall = '' 25 wrapProgram $out/bin/jamin --set LADSPA_PATH ${ladspaPlugins}/lib/ladspa
··· 19 # gcc-10. Otherwise build fails as: 20 # ld: jamin-preferences.o:/build/jamin-0.95.0/src/hdeq.h:64: multiple definition of 21 # `l_notebook1'; jamin-callbacks.o:/build/jamin-0.95.0/src/hdeq.h:64: first defined here 22 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 23 24 postInstall = '' 25 wrapProgram $out/bin/jamin --set LADSPA_PATH ${ladspaPlugins}/lib/ladspa
+1 -1
pkgs/applications/audio/klystrack/default.nix
··· 31 # ld: libengine_gui.a(gui_menu.o):(.bss+0x0): multiple definition of 32 # `menu_t'; objs.release/action.o:(.bss+0x20): first defined here 33 # TODO: remove it for 1.7.7+ release as it was fixed upstream. 34 - NIX_CFLAGS_COMPILE = "-fcommon"; 35 36 buildFlags = [ "PREFIX=${placeholder "out"}" "CFG=release" ]; 37
··· 31 # ld: libengine_gui.a(gui_menu.o):(.bss+0x0): multiple definition of 32 # `menu_t'; objs.release/action.o:(.bss+0x20): first defined here 33 # TODO: remove it for 1.7.7+ release as it was fixed upstream. 34 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 35 36 buildFlags = [ "PREFIX=${placeholder "out"}" "CFG=release" ]; 37
+2 -2
pkgs/applications/audio/littlegptracker/default.nix
··· 35 ++ lib.optionals stdenv.isLinux [ "PLATFORM=DEB" ] 36 ++ lib.optionals stdenv.isDarwin [ "PLATFORM=OSX" ]; 37 38 - NIX_CFLAGS_COMPILE = [ "-fpermissive" ] ++ 39 - lib.optional stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing"; 40 41 NIX_LDFLAGS = lib.optional stdenv.isDarwin "-framework Foundation"; 42
··· 35 ++ lib.optionals stdenv.isLinux [ "PLATFORM=DEB" ] 36 ++ lib.optionals stdenv.isDarwin [ "PLATFORM=OSX" ]; 37 38 + env.NIX_CFLAGS_COMPILE = toString ([ "-fpermissive" ] ++ 39 + lib.optional stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing"); 40 41 NIX_LDFLAGS = lib.optional stdenv.isDarwin "-framework Foundation"; 42
+1 -1
pkgs/applications/audio/lsp-plugins/default.nix
··· 21 "PREFIX=${placeholder "out"}" 22 ]; 23 24 - NIX_CFLAGS_COMPILE = "-DLSP_NO_EXPERIMENTAL"; 25 26 configurePhase = '' 27 make config PREFIX=${placeholder "out"}
··· 21 "PREFIX=${placeholder "out"}" 22 ]; 23 24 + env.NIX_CFLAGS_COMPILE = "-DLSP_NO_EXPERIMENTAL"; 25 26 configurePhase = '' 27 make config PREFIX=${placeholder "out"}
+1 -1
pkgs/applications/audio/mi2ly/default.nix
··· 13 14 hardeningDisable = [ "format" ]; 15 16 - NIX_CFLAGS_COMPILE = [ "-fgnu89-inline" ]; 17 18 buildPhase = "./cc"; 19 installPhase = ''
··· 13 14 hardeningDisable = [ "format" ]; 15 16 + env.NIX_CFLAGS_COMPILE = toString [ "-fgnu89-inline" ]; 17 18 buildPhase = "./cc"; 19 installPhase = ''
+1 -1
pkgs/applications/audio/mimic/default.nix
··· 38 pcre2 39 ] ++ lib.optional pulseaudioSupport libpulseaudio; 40 41 - NIX_CFLAGS_COMPILE = [ 42 # Needed with GCC 12 43 "-Wno-error=free-nonheap-object" 44 ];
··· 38 pcre2 39 ] ++ lib.optional pulseaudioSupport libpulseaudio; 40 41 + env.NIX_CFLAGS_COMPILE = toString [ 42 # Needed with GCC 12 43 "-Wno-error=free-nonheap-object" 44 ];
+1 -1
pkgs/applications/audio/mp3blaster/default.nix
··· 26 libvorbis 27 ] ++ lib.optional stdenv.isDarwin SDL; 28 29 - NIX_CFLAGS_COMPILE = toString ([ 30 "-Wno-narrowing" 31 ] ++ lib.optionals stdenv.cc.isClang [ 32 "-Wno-reserved-user-defined-literal"
··· 26 libvorbis 27 ] ++ lib.optional stdenv.isDarwin SDL; 28 29 + env.NIX_CFLAGS_COMPILE = toString ([ 30 "-Wno-narrowing" 31 ] ++ lib.optionals stdenv.cc.isClang [ 32 "-Wno-reserved-user-defined-literal"
+1 -1
pkgs/applications/audio/mpc123/default.nix
··· 15 # Workaround build failure on -fno-common toolchains like upstream 16 # gcc-10. Otherwise build fails as: 17 # ld: /build/cc566Cj9.o:(.bss+0x0): multiple definition of `mpc123_file_reader'; ao.o:(.bss+0x40): first defined here 18 - NIX_CFLAGS_COMPILE = "-fcommon"; 19 20 buildInputs = [ gettext libmpcdec libao ]; 21
··· 15 # Workaround build failure on -fno-common toolchains like upstream 16 # gcc-10. Otherwise build fails as: 17 # ld: /build/cc566Cj9.o:(.bss+0x0): multiple definition of `mpc123_file_reader'; ao.o:(.bss+0x40): first defined here 18 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 19 20 buildInputs = [ gettext libmpcdec libao ]; 21
+1 -1
pkgs/applications/audio/mpg321/default.nix
··· 32 # gcc-10. Otherwise build fails as: 33 # ld: volume.o:/build/mpg321-0.3.2-orig/mpg321.h:119: multiple definition of 34 # `loop_remaining'; mpg321.o:/build/mpg321-0.3.2-orig/mpg321.h:119: first defined here 35 - NIX_CFLAGS_COMPILE = "-fcommon"; 36 37 configureFlags = 38 [ ("--enable-alsa=" + (if stdenv.isLinux then "yes" else "no")) ]
··· 32 # gcc-10. Otherwise build fails as: 33 # ld: volume.o:/build/mpg321-0.3.2-orig/mpg321.h:119: multiple definition of 34 # `loop_remaining'; mpg321.o:/build/mpg321-0.3.2-orig/mpg321.h:119: first defined here 35 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 36 37 configureFlags = 38 [ ("--enable-alsa=" + (if stdenv.isLinux then "yes" else "no")) ]
+1 -1
pkgs/applications/audio/muse/default.nix
··· 25 libsamplerate libsndfile lilv lrdf lv2 qtsvg rtaudio rubberband sord 26 ]; 27 28 - NIX_CFLAGS_COMPILE = [ "-I${lib.getDev serd}/include/serd-0" ]; 29 30 meta = with lib; { 31 homepage = "https://muse-sequencer.github.io/";
··· 25 libsamplerate libsndfile lilv lrdf lv2 qtsvg rtaudio rubberband sord 26 ]; 27 28 + env.NIX_CFLAGS_COMPILE = toString [ "-I${lib.getDev serd}/include/serd-0" ]; 29 30 meta = with lib; { 31 homepage = "https://muse-sequencer.github.io/";
+1 -1
pkgs/applications/audio/oxefmsynth/default.nix
··· 22 sha256 = "1rk71ls33a38wx8i22plsi7d89cqqxrfxknq5i4f9igsw1ipm4gn"; 23 }; 24 25 - NIX_CFLAGS_COMPILE = [ "-Wno-narrowing" ]; 26 27 buildFlags = [ "VSTSDK_PATH=${vst-sdk}/VST2_SDK" ]; 28
··· 22 sha256 = "1rk71ls33a38wx8i22plsi7d89cqqxrfxknq5i4f9igsw1ipm4gn"; 23 }; 24 25 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-narrowing" ]; 26 27 buildFlags = [ "VSTSDK_PATH=${vst-sdk}/VST2_SDK" ]; 28
+1 -1
pkgs/applications/audio/picoloop/default.nix
··· 25 26 makeFlags = [ "-f Makefile.PatternPlayer_debian_RtAudio_sdl20" ]; 27 28 - NIX_CFLAGS_COMPILE = [ "-I${SDL2.dev}/include/SDL2" ]; 29 30 hardeningDisable = [ "format" ]; 31
··· 25 26 makeFlags = [ "-f Makefile.PatternPlayer_debian_RtAudio_sdl20" ]; 27 28 + env.NIX_CFLAGS_COMPILE = toString [ "-I${SDL2.dev}/include/SDL2" ]; 29 30 hardeningDisable = [ "format" ]; 31
+1 -1
pkgs/applications/audio/pragha/default.nix
··· 83 84 CFLAGS = [ "-DHAVE_PARANOIA_NEW_INCLUDES" ]; 85 86 - NIX_CFLAGS_COMPILE = "-I${lib.getDev gst_all_1.gst-plugins-base}/include/gstreamer-1.0"; 87 88 postInstall = '' 89 qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
··· 83 84 CFLAGS = [ "-DHAVE_PARANOIA_NEW_INCLUDES" ]; 85 86 + env.NIX_CFLAGS_COMPILE = "-I${lib.getDev gst_all_1.gst-plugins-base}/include/gstreamer-1.0"; 87 88 postInstall = '' 89 qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
+1 -1
pkgs/applications/audio/sayonara/default.nix
··· 56 ]; 57 58 # gstreamer cannot otherwise be found 59 - NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"; 60 61 postInstall = '' 62 qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
··· 56 ]; 57 58 # gstreamer cannot otherwise be found 59 + env.NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"; 60 61 postInstall = '' 62 qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
+1 -1
pkgs/applications/audio/soundscape-renderer/default.nix
··· 30 # Without it doesn't find all of the boost libraries. 31 BOOST_LIB_DIR = "${boost}/lib"; 32 # uses the deprecated get_generic_category() in boost_system 33 - NIX_CFLAGS_COMPILE = "-DBOOST_SYSTEM_ENABLE_DEPRECATED=1"; 34 35 LC_ALL = "en_US.UTF-8"; 36
··· 30 # Without it doesn't find all of the boost libraries. 31 BOOST_LIB_DIR = "${boost}/lib"; 32 # uses the deprecated get_generic_category() in boost_system 33 + env.NIX_CFLAGS_COMPILE = "-DBOOST_SYSTEM_ENABLE_DEPRECATED=1"; 34 35 LC_ALL = "en_US.UTF-8"; 36
+1 -1
pkgs/applications/audio/tenacity/default.nix
··· 82 --prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" 83 ''; 84 85 - NIX_CFLAGS_COMPILE = "-D GIT_DESCRIBE=\"\""; 86 87 # tenacity only looks for ffmpeg at runtime, so we need to link it in manually 88 NIX_LDFLAGS = toString [
··· 82 --prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" 83 ''; 84 85 + env.NIX_CFLAGS_COMPILE = "-D GIT_DESCRIBE=\"\""; 86 87 # tenacity only looks for ffmpeg at runtime, so we need to link it in manually 88 NIX_LDFLAGS = toString [
+1 -1
pkgs/applications/audio/transcode/default.nix
··· 24 # gcc-10. Otherwise build fails as: 25 # ld: tcextract-extract_pcm.o:/build/transcode-1.1.7/import/extract_pcm.c:36: multiple definition of 26 # `audio'; tcextract-extract_ac3.o:/build/transcode-1.1.7/import/extract_ac3.c:337: first defined here 27 - NIX_CFLAGS_COMPILE = "-fcommon"; 28 29 meta = with lib; { 30 description = "Suite of command line utilities for transcoding video and audio codecs, and for converting between different container formats";
··· 24 # gcc-10. Otherwise build fails as: 25 # ld: tcextract-extract_pcm.o:/build/transcode-1.1.7/import/extract_pcm.c:36: multiple definition of 26 # `audio'; tcextract-extract_ac3.o:/build/transcode-1.1.7/import/extract_ac3.c:337: first defined here 27 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 28 29 meta = with lib; { 30 description = "Suite of command line utilities for transcoding video and audio codecs, and for converting between different container formats";
+1 -1
pkgs/applications/audio/ympd/default.nix
··· 23 # ld: CMakeFiles/ympd.dir/src/mpd_client.c.o:(.bss+0x0): multiple definition of `mpd'; 24 # CMakeFiles/ympd.dir/src/ympd.c.o:(.bss+0x20): first defined here 25 # Should be fixed by pending https://github.com/notandy/ympd/pull/191 (does not apply as is). 26 - NIX_CFLAGS_COMPILE = "-fcommon"; 27 28 nativeBuildInputs = [ cmake pkg-config ]; 29 buildInputs = [ libmpdclient openssl ];
··· 23 # ld: CMakeFiles/ympd.dir/src/mpd_client.c.o:(.bss+0x0): multiple definition of `mpd'; 24 # CMakeFiles/ympd.dir/src/ympd.c.o:(.bss+0x20): first defined here 25 # Should be fixed by pending https://github.com/notandy/ympd/pull/191 (does not apply as is). 26 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 27 28 nativeBuildInputs = [ cmake pkg-config ]; 29 buildInputs = [ libmpdclient openssl ];
+1 -1
pkgs/applications/audio/zynaddsubfx/mruby-zest/default.nix
··· 41 42 # Force optimization to fix: 43 # warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) 44 - NIX_CFLAGS_COMPILE = "-O3"; 45 46 # Remove pre-built y.tab.c to generate with nixpkgs bison 47 preBuild = ''
··· 41 42 # Force optimization to fix: 43 # warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) 44 + env.NIX_CFLAGS_COMPILE = "-O3"; 45 46 # Remove pre-built y.tab.c to generate with nixpkgs bison 47 preBuild = ''
+1 -1
pkgs/applications/blockchains/cgminer/default.nix
··· 44 # ld: cgminer-driver-modminer.o:/build/source/miner.h:285: 45 # multiple definition of `bitforce_drv'; cgminer-cgminer.o:/build/source/miner.h:285: 46 # first defined here 47 - NIX_CFLAGS_COMPILE = "-fcommon"; 48 49 meta = with lib; { 50 description = "CPU/GPU miner in c for bitcoin";
··· 44 # ld: cgminer-driver-modminer.o:/build/source/miner.h:285: 45 # multiple definition of `bitforce_drv'; cgminer-cgminer.o:/build/source/miner.h:285: 46 # first defined here 47 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 48 49 meta = with lib; { 50 description = "CPU/GPU miner in c for bitcoin";
+1 -1
pkgs/applications/display-managers/greetd/gtkgreet.nix
··· 41 ]; 42 43 # G_APPLICATION_FLAGS_NONE is deprecated in GLib 2.73.3+. 44 - NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 45 46 meta = with lib; { 47 description = "GTK based greeter for greetd, to be run under cage or similar";
··· 41 ]; 42 43 # G_APPLICATION_FLAGS_NONE is deprecated in GLib 2.73.3+. 44 + env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 45 46 meta = with lib; { 47 description = "GTK based greeter for greetd, to be run under cage or similar";
+1 -1
pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix
··· 266 267 irony = super.irony.overrideAttrs (old: { 268 cmakeFlags = old.cmakeFlags or [ ] ++ [ "-DCMAKE_INSTALL_BINDIR=bin" ]; 269 - NIX_CFLAGS_COMPILE = "-UCLANG_RESOURCE_DIR"; 270 preConfigure = '' 271 cd server 272 '';
··· 266 267 irony = super.irony.overrideAttrs (old: { 268 cmakeFlags = old.cmakeFlags or [ ] ++ [ "-DCMAKE_INSTALL_BINDIR=bin" ]; 269 + env.NIX_CFLAGS_COMPILE = "-UCLANG_RESOURCE_DIR"; 270 preConfigure = '' 271 cd server 272 '';
+1 -1
pkgs/applications/editors/gnome-latex/default.nix
··· 58 59 doCheck = true; 60 61 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 62 63 passthru.updateScript = gnome.updateScript { 64 packageName = pname;
··· 58 59 doCheck = true; 60 61 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 62 63 passthru.updateScript = gnome.updateScript { 64 packageName = pname;
+1 -1
pkgs/applications/editors/hexcurse/default.nix
··· 11 sha256 = "17ckkxfzbqvvfdnh10if4aqdcq98q3vl6dn1v6f4lhr4ifnyjdlk"; 12 }; 13 buildInputs = [ ncurses ]; 14 - NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-overflow" "-Wno-error=stringop-truncation" ]; 15 patches = [ 16 # gcc7 compat 17 (fetchpatch {
··· 11 sha256 = "17ckkxfzbqvvfdnh10if4aqdcq98q3vl6dn1v6f4lhr4ifnyjdlk"; 12 }; 13 buildInputs = [ ncurses ]; 14 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=stringop-overflow" "-Wno-error=stringop-truncation" ]; 15 patches = [ 16 # gcc7 compat 17 (fetchpatch {
+1 -1
pkgs/applications/editors/ht/default.nix
··· 17 18 patches = [ ./gcc7.patch ]; 19 20 - NIX_CFLAGS_COMPILE = [ "-Wno-narrowing" ]; 21 22 meta = with lib; { 23 description = "File editor/viewer/analyzer for executables";
··· 17 18 patches = [ ./gcc7.patch ]; 19 20 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-narrowing" ]; 21 22 meta = with lib; { 23 description = "File editor/viewer/analyzer for executables";
+1 -1
pkgs/applications/editors/nedit/default.nix
··· 16 # the linux config works fine on darwin too! 17 buildFlags = lib.optional (stdenv.isLinux || stdenv.isDarwin) "linux"; 18 19 - NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L${motif}/lib"; 20 21 installPhase = '' 22 mkdir -p $out/bin
··· 16 # the linux config works fine on darwin too! 17 buildFlags = lib.optional (stdenv.isLinux || stdenv.isDarwin) "linux"; 18 19 + env.NIX_CFLAGS_COMPILE = "-DBUILD_UNTESTED_NEDIT -L${motif}/lib"; 20 21 installPhase = '' 22 mkdir -p $out/bin
+1 -1
pkgs/applications/editors/texmaker/default.nix
··· 11 12 buildInputs = [ qtbase qtscript poppler zlib qtwebengine ]; 13 nativeBuildInputs = [ pkg-config poppler qmake ]; 14 - NIX_CFLAGS_COMPILE="-I${poppler.dev}/include/poppler"; 15 16 qmakeFlags = [ 17 "DESKTOPDIR=${placeholder "out"}/share/applications"
··· 11 12 buildInputs = [ qtbase qtscript poppler zlib qtwebengine ]; 13 nativeBuildInputs = [ pkg-config poppler qmake ]; 14 + env.NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler"; 15 16 qmakeFlags = [ 17 "DESKTOPDIR=${placeholder "out"}/share/applications"
+1 -1
pkgs/applications/emulators/bsnes/ares/default.nix
··· 83 "-C desktop-ui" 84 ]; 85 86 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-mmacosx-version-min=10.14"; 87 88 meta = with lib; { 89 homepage = "https://ares-emu.net";
··· 83 "-C desktop-ui" 84 ]; 85 86 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-mmacosx-version-min=10.14"; 87 88 meta = with lib; { 89 homepage = "https://ares-emu.net";
+1 -1
pkgs/applications/emulators/dosbox-staging/default.nix
··· 69 speexdsp 70 ]; 71 72 - NIX_CFLAGS_COMPILE = [ 73 "-I${SDL2_image}/include/SDL2" 74 "-I${SDL2_net}/include/SDL2" 75 ];
··· 69 speexdsp 70 ]; 71 72 + env.NIX_CFLAGS_COMPILE = toString [ 73 "-I${SDL2_image}/include/SDL2" 74 "-I${SDL2_net}/include/SDL2" 75 ];
+1 -1
pkgs/applications/emulators/gens-gs/default.nix
··· 14 15 # Work around build failures on recent GTK. 16 # See http://ubuntuforums.org/showthread.php?p=10535837 17 - NIX_CFLAGS_COMPILE = "-UGTK_DISABLE_DEPRECATED -UGSEAL_ENABLE"; 18 19 meta = with lib; { 20 homepage = "https://segaretro.org/Gens/GS";
··· 14 15 # Work around build failures on recent GTK. 16 # See http://ubuntuforums.org/showthread.php?p=10535837 17 + env.NIX_CFLAGS_COMPILE = "-UGTK_DISABLE_DEPRECATED -UGSEAL_ENABLE"; 18 19 meta = with lib; { 20 homepage = "https://segaretro.org/Gens/GS";
+1 -1
pkgs/applications/emulators/mame/default.nix
··· 117 --subst-var-by mamePath "$out/opt/mame" 118 ''; 119 120 - NIX_CFLAGS_COMPILE = [ 121 "-Wno-error=use-after-free" 122 ]; 123
··· 117 --subst-var-by mamePath "$out/opt/mame" 118 ''; 119 120 + env.NIX_CFLAGS_COMPILE = toString [ 121 "-Wno-error=use-after-free" 122 ]; 123
+1 -1
pkgs/applications/emulators/np2kai/default.nix
··· 157 enableParallelBuilding = true; 158 159 # TODO Remove when bumping past rev22 160 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE"; 161 162 buildPhase = optionalString enableSDL '' 163 cd sdl2
··· 157 enableParallelBuilding = true; 158 159 # TODO Remove when bumping past rev22 160 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE"; 161 162 buildPhase = optionalString enableSDL '' 163 cd sdl2
+1 -1
pkgs/applications/emulators/pcsxr/default.nix
··· 60 # gcc-10. Otherwise build fails as: 61 # ld: AboutDlg.o:/build/pcsxr/gui/Linux.h:42: multiple definition of `cfgfile'; 62 # LnxMain.o:/build/pcsxr/gui/Linux.h:42: first defined here 63 - NIX_CFLAGS_COMPILE = "-fcommon"; 64 65 dynarecTarget = 66 if stdenv.isx86_64 then "x86_64"
··· 60 # gcc-10. Otherwise build fails as: 61 # ld: AboutDlg.o:/build/pcsxr/gui/Linux.h:42: multiple definition of `cfgfile'; 62 # LnxMain.o:/build/pcsxr/gui/Linux.h:42: first defined here 63 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 64 65 dynarecTarget = 66 if stdenv.isx86_64 then "x86_64"
+1 -1
pkgs/applications/emulators/simh/default.nix
··· 25 # Workaround to build against upstream gcc-10 and clang-11. 26 # Can be removed when next release contains 27 # https://github.com/simh/simh/issues/794 28 - NIX_CFLAGS_COMPILE = [ "-fcommon" ]; 29 30 makeFlags = [ "GCC=${stdenv.cc.targetPrefix}cc" "CC_STD=-std=c99" "LDFLAGS=-lm" ]; 31
··· 25 # Workaround to build against upstream gcc-10 and clang-11. 26 # Can be removed when next release contains 27 # https://github.com/simh/simh/issues/794 28 + env.NIX_CFLAGS_COMPILE = toString [ "-fcommon" ]; 29 30 makeFlags = [ "GCC=${stdenv.cc.targetPrefix}cc" "CC_STD=-std=c99" "LDFLAGS=-lm" ]; 31
+1 -1
pkgs/applications/emulators/tilem/default.nix
··· 19 }; 20 nativeBuildInputs = [ pkg-config ]; 21 buildInputs = [ glib gtk2 libticonv libtifiles2 libticables2 libticalcs2 ]; 22 - NIX_CFLAGS_COMPILE = [ "-lm" ]; 23 meta = with lib; { 24 homepage = "http://lpg.ticalc.org/prj_tilem/"; 25 description = "Emulator and debugger for Texas Instruments Z80-based graphing calculators";
··· 19 }; 20 nativeBuildInputs = [ pkg-config ]; 21 buildInputs = [ glib gtk2 libticonv libtifiles2 libticables2 libticalcs2 ]; 22 + env.NIX_CFLAGS_COMPILE = toString [ "-lm" ]; 23 meta = with lib; { 24 homepage = "http://lpg.ticalc.org/prj_tilem/"; 25 description = "Emulator and debugger for Texas Instruments Z80-based graphing calculators";
+1 -1
pkgs/applications/emulators/uae/default.nix
··· 18 # Workaround build failure on -fno-common toolchains: 19 # ld: bsdsocket.o:(.bss+0x0): multiple definition of 20 # `socketbases'; main.o:(.bss+0x2792c0): first defined here 21 - NIX_CFLAGS_COMPILE = "-fcommon"; 22 LDFLAGS = [ "-lm" ]; 23 24 meta = {
··· 18 # Workaround build failure on -fno-common toolchains: 19 # ld: bsdsocket.o:(.bss+0x0): multiple definition of 20 # `socketbases'; main.o:(.bss+0x2792c0): first defined here 21 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 22 LDFLAGS = [ "-lm" ]; 23 24 meta = {
+1 -1
pkgs/applications/emulators/zsnes/2.x.nix
··· 36 37 dontConfigure = true; 38 39 - NIX_CFLAGS_COMPILE = [ 40 # Until upstream fixes the issues... 41 "-Wp,-D_FORTIFY_SOURCE=0" 42 ];
··· 36 37 dontConfigure = true; 38 39 + env.NIX_CFLAGS_COMPILE = toString [ 40 # Until upstream fixes the issues... 41 "-Wp,-D_FORTIFY_SOURCE=0" 42 ];
+1 -1
pkgs/applications/emulators/zsnes/default.nix
··· 35 # Workaround build failure on -fno-common toolchains: 36 # ld: initc.o:(.bss+0x28): multiple definition of `HacksDisable'; cfg.o:(.bss+0x59e3): first defined here 37 # Use pre-c++17 standard (c++17 forbids throw annotations) 38 - NIX_CFLAGS_COMPILE = "-fcommon -std=c++14"; 39 40 preConfigure = '' 41 cd src
··· 35 # Workaround build failure on -fno-common toolchains: 36 # ld: initc.o:(.bss+0x28): multiple definition of `HacksDisable'; cfg.o:(.bss+0x59e3): first defined here 37 # Use pre-c++17 standard (c++17 forbids throw annotations) 38 + env.NIX_CFLAGS_COMPILE = "-fcommon -std=c++14"; 39 40 preConfigure = '' 41 cd src
+1 -1
pkgs/applications/file-managers/nnn/default.nix
··· 36 nativeBuildInputs = [ installShellFiles makeWrapper pkg-config ]; 37 buildInputs = [ readline ncurses ] ++ lib.optional stdenv.hostPlatform.isMusl musl-fts; 38 39 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isMusl "-I${musl-fts}/include"; 40 NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-lfts"; 41 42 makeFlags = [ "PREFIX=$(out)" ]
··· 36 nativeBuildInputs = [ installShellFiles makeWrapper pkg-config ]; 37 buildInputs = [ readline ncurses ] ++ lib.optional stdenv.hostPlatform.isMusl musl-fts; 38 39 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isMusl "-I${musl-fts}/include"; 40 NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isMusl "-lfts"; 41 42 makeFlags = [ "PREFIX=$(out)" ]
+1 -1
pkgs/applications/file-managers/spacefm/default.nix
··· 26 # `xsets'; vfs/spacefm-vfs-file-info.o:src/settings.h:123: first defined here 27 # TODO: can be removed once https://github.com/IgnorantGuru/spacefm/pull/772 28 # or equivalent is merged upstream. 29 - NIX_CFLAGS_COMPILE = "-fcommon"; 30 31 configureFlags = [ 32 "--with-bash-path=${pkgs.bash}/bin/bash"
··· 26 # `xsets'; vfs/spacefm-vfs-file-info.o:src/settings.h:123: first defined here 27 # TODO: can be removed once https://github.com/IgnorantGuru/spacefm/pull/772 28 # or equivalent is merged upstream. 29 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 30 31 configureFlags = [ 32 "--with-bash-path=${pkgs.bash}/bin/bash"
+1 -1
pkgs/applications/graphics/foxotron/default.nix
··· 46 ++ lib.optionals stdenv.hostPlatform.isLinux [ libX11 libXrandr libXinerama libXcursor libXi libXext alsa-lib fontconfig libGLU ] 47 ++ lib.optionals stdenv.hostPlatform.isDarwin [ AVFoundation Carbon Cocoa CoreAudio Kernel OpenGL ]; 48 49 - NIX_CFLAGS_COMPILE = [ 50 # Needed with GCC 12 51 "-Wno-error=array-bounds" 52 ];
··· 46 ++ lib.optionals stdenv.hostPlatform.isLinux [ libX11 libXrandr libXinerama libXcursor libXi libXext alsa-lib fontconfig libGLU ] 47 ++ lib.optionals stdenv.hostPlatform.isDarwin [ AVFoundation Carbon Cocoa CoreAudio Kernel OpenGL ]; 48 49 + env.NIX_CFLAGS_COMPILE = toString [ 50 # Needed with GCC 12 51 "-Wno-error=array-bounds" 52 ];
+1 -1
pkgs/applications/graphics/freepv/default.nix
··· 38 --replace png_set_gray_1_2_4_to_8 png_set_expand_gray_1_2_4_to_8 39 ''; 40 41 - NIX_CFLAGS_COMPILE = "-fpermissive -Wno-narrowing"; 42 43 meta = { 44 description = "Open source panorama viewer using GL";
··· 38 --replace png_set_gray_1_2_4_to_8 png_set_expand_gray_1_2_4_to_8 39 ''; 40 41 + env.NIX_CFLAGS_COMPILE = "-fpermissive -Wno-narrowing"; 42 43 meta = { 44 description = "Open source panorama viewer using GL";
+1 -1
pkgs/applications/graphics/gimp/default.nix
··· 154 155 doCheck = true; 156 157 - NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-DGDK_OSX_BIG_SUR=16"; 158 159 # Check if librsvg was built with --disable-pixbuf-loader. 160 PKG_CONFIG_GDK_PIXBUF_2_0_GDK_PIXBUF_MODULEDIR = "${librsvg}/${gdk-pixbuf.moduleDir}";
··· 154 155 doCheck = true; 156 157 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DGDK_OSX_BIG_SUR=16"; 158 159 # Check if librsvg was built with --disable-pixbuf-loader. 160 PKG_CONFIG_GDK_PIXBUF_2_0_GDK_PIXBUF_MODULEDIR = "${librsvg}/${gdk-pixbuf.moduleDir}";
+1 -1
pkgs/applications/graphics/gimp/plugins/default.nix
··· 236 # Workaround build failure on -fno-common toolchains like upstream 237 # gcc-10. Otherwise build fails as: 238 # ld: interface.o:(.bss+0xe0): multiple definition of `fimg'; plugin.o:(.bss+0x40): first defined here 239 - NIX_CFLAGS_COMPILE = "-fcommon"; 240 NIX_LDFLAGS = "-lm"; 241 src = fetchurl { 242 url = "https://github.com/pixlsus/registry.gimp.org_static/raw/master/registry.gimp.org/files/wavelet-sharpen-0.1.2.tar.gz";
··· 236 # Workaround build failure on -fno-common toolchains like upstream 237 # gcc-10. Otherwise build fails as: 238 # ld: interface.o:(.bss+0xe0): multiple definition of `fimg'; plugin.o:(.bss+0x40): first defined here 239 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 240 NIX_LDFLAGS = "-lm"; 241 src = fetchurl { 242 url = "https://github.com/pixlsus/registry.gimp.org_static/raw/master/registry.gimp.org/files/wavelet-sharpen-0.1.2.tar.gz";
+1 -1
pkgs/applications/graphics/gnuclad/default.nix
··· 10 sha256 = "0ka2kscpjff7gflsargv3r9fdaxhkf3nym9mfaln3pnq6q7fwdki"; 11 }; 12 13 - NIX_CFLAGS_COMPILE = lib.optional stdenv.cc.isGNU "-Wno-error=catch-value"; 14 15 nativeBuildInputs = [ pkg-config ]; 16
··· 10 sha256 = "0ka2kscpjff7gflsargv3r9fdaxhkf3nym9mfaln3pnq6q7fwdki"; 11 }; 12 13 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=catch-value"; 14 15 nativeBuildInputs = [ pkg-config ]; 16
+1 -1
pkgs/applications/graphics/goxel/default.nix
··· 17 nativeBuildInputs = [ scons pkg-config wrapGAppsHook ]; 18 buildInputs = [ glfw3 gtk3 libpng12 ]; 19 20 - NIX_CFLAGS_COMPILE = [ 21 # Needed with GCC 12 22 "-Wno-error=format-truncation" 23 ];
··· 17 nativeBuildInputs = [ scons pkg-config wrapGAppsHook ]; 18 buildInputs = [ glfw3 gtk3 libpng12 ]; 19 20 + env.NIX_CFLAGS_COMPILE = toString [ 21 # Needed with GCC 12 22 "-Wno-error=format-truncation" 23 ];
+1 -1
pkgs/applications/graphics/gqview/default.nix
··· 15 16 hardeningDisable = [ "format" ]; 17 18 - NIX_CFLAGS_COMPILE = "-fcommon"; 19 NIX_LDFLAGS = "-lm"; 20 21 meta = with lib; {
··· 15 16 hardeningDisable = [ "format" ]; 17 18 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 19 NIX_LDFLAGS = "-lm"; 20 21 meta = with lib; {
+1 -1
pkgs/applications/graphics/grafx2/default.nix
··· 19 # gcc-10. Otherwise build fails as: 20 # ld: ../obj/unix/tiles.o:/build/grafx2/src/global.h:306: multiple definition of 21 # `Main_selector'; ../obj/unix/main.o:/build/grafx2/src/global.h:306: first defined here 22 - NIX_CFLAGS_COMPILE = "-fcommon"; 23 24 preInstall = '' mkdir -p "$out" ''; 25
··· 19 # gcc-10. Otherwise build fails as: 20 # ld: ../obj/unix/tiles.o:/build/grafx2/src/global.h:306: multiple definition of 21 # `Main_selector'; ../obj/unix/main.o:/build/grafx2/src/global.h:306: first defined here 22 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 23 24 preInstall = '' mkdir -p "$out" ''; 25
+1 -1
pkgs/applications/graphics/hugin/default.nix
··· 75 # disable installation of the python scripting interface 76 cmakeFlags = [ "-DBUILD_HSI:BOOl=OFF" ]; 77 78 - NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR"; 79 80 postInstall = '' 81 for p in $out/bin/*; do
··· 75 # disable installation of the python scripting interface 76 cmakeFlags = [ "-DBUILD_HSI:BOOl=OFF" ]; 77 78 + env.NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR"; 79 80 postInstall = '' 81 for p in $out/bin/*; do
+1 -1
pkgs/applications/graphics/imgcat/default.nix
··· 19 sha256 = "sha256-EkVE6BgoA1lo4oqlNETTxLILIVvGXspFyXykxpmYk8M="; 20 }; 21 22 - NIX_CFLAGS_COMPILE = "-Wno-error"; 23 24 meta = with lib; { 25 description = "It's like cat, but for images";
··· 19 sha256 = "sha256-EkVE6BgoA1lo4oqlNETTxLILIVvGXspFyXykxpmYk8M="; 20 }; 21 22 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 23 24 meta = with lib; { 25 description = "It's like cat, but for images";
+1 -1
pkgs/applications/graphics/jpeg-archive/default.nix
··· 25 # gcc-10. Otherwise build fails as: 26 # ld: src/util.o:(.bss+0x0): multiple definition of `progname'; /build/ccBZT2Za.o:(.bss+0x20): first defined here 27 # https://github.com/danielgtaylor/jpeg-archive/issues/119 28 - NIX_CFLAGS_COMPILE = "-fcommon"; 29 30 makeFlags = [ 31 "CC=${stdenv.cc.targetPrefix}cc"
··· 25 # gcc-10. Otherwise build fails as: 26 # ld: src/util.o:(.bss+0x0): multiple definition of `progname'; /build/ccBZT2Za.o:(.bss+0x20): first defined here 27 # https://github.com/danielgtaylor/jpeg-archive/issues/119 28 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 29 30 makeFlags = [ 31 "CC=${stdenv.cc.targetPrefix}cc"
+2 -2
pkgs/applications/graphics/krita/generic.nix
··· 33 xsimd 34 ]; 35 36 - NIX_CFLAGS_COMPILE = [ "-I${ilmbase.dev}/include/OpenEXR" ] 37 - ++ lib.optional stdenv.cc.isGNU "-Wno-deprecated-copy"; 38 39 # Krita runs custom python scripts in CMake with custom PYTHONPATH which krita determined in their CMake script. 40 # Patch the PYTHONPATH so python scripts can import sip successfully.
··· 33 xsimd 34 ]; 35 36 + env.NIX_CFLAGS_COMPILE = toString ([ "-I${ilmbase.dev}/include/OpenEXR" ] 37 + ++ lib.optional stdenv.cc.isGNU "-Wno-deprecated-copy"); 38 39 # Krita runs custom python scripts in CMake with custom PYTHONPATH which krita determined in their CMake script. 40 # Patch the PYTHONPATH so python scripts can import sip successfully.
+1 -1
pkgs/applications/graphics/luminance-hdr/default.nix
··· 15 sha256 = "1izmgjjp8mgyxv57sjjr05z7g7059ykb5wchlcn4wrnnb6aslnvn"; 16 }; 17 18 - NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR"; 19 20 buildInputs = [ 21 qtbase qtdeclarative qttools qtwebengine eigen
··· 15 sha256 = "1izmgjjp8mgyxv57sjjr05z7g7059ykb5wchlcn4wrnnb6aslnvn"; 16 }; 17 18 + env.NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR"; 19 20 buildInputs = [ 21 qtbase qtdeclarative qttools qtwebengine eigen
+1 -1
pkgs/applications/graphics/photoflare/default.nix
··· 17 18 qmakeFlags = [ "PREFIX=${placeholder "out"}" ]; 19 20 - NIX_CFLAGS_COMPILE = "-I${graphicsmagick}/include/GraphicsMagick"; 21 22 meta = with lib; { 23 description = "A cross-platform image editor with a powerful features and a very friendly graphical user interface";
··· 17 18 qmakeFlags = [ "PREFIX=${placeholder "out"}" ]; 19 20 + env.NIX_CFLAGS_COMPILE = "-I${graphicsmagick}/include/GraphicsMagick"; 21 22 meta = with lib; { 23 description = "A cross-platform image editor with a powerful features and a very friendly graphical user interface";
+1 -1
pkgs/applications/kde/print-manager.nix
··· 22 outputs = [ "out" "dev" ]; 23 # Fix build with cups deprecations etc. 24 # See: https://github.com/NixOS/nixpkgs/issues/73334 25 - NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations -Wno-error=format-security"; 26 }
··· 22 outputs = [ "out" "dev" ]; 23 # Fix build with cups deprecations etc. 24 # See: https://github.com/NixOS/nixpkgs/issues/73334 25 + env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations -Wno-error=format-security"; 26 }
+1 -1
pkgs/applications/misc/apvlv/default.nix
··· 13 sha256 = "1n4xiic8lqnv3mqi7wpdv866gyyakax71gffv3n9427rmcld465i"; 14 }; 15 16 - NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler"; 17 18 nativeBuildInputs = [ 19 cmake
··· 13 sha256 = "1n4xiic8lqnv3mqi7wpdv866gyyakax71gffv3n9427rmcld465i"; 14 }; 15 16 + env.NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler"; 17 18 nativeBuildInputs = [ 19 cmake
+1 -1
pkgs/applications/misc/bb/default.nix
··· 19 ''; 20 21 # error: 'regparm' is not valid on this platform 22 - NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) 23 "-D__STRICT_ANSI__"; 24 25 meta = with lib; {
··· 19 ''; 20 21 # error: 'regparm' is not valid on this platform 22 + env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) 23 "-D__STRICT_ANSI__"; 24 25 meta = with lib; {
+1 -1
pkgs/applications/misc/blender/default.nix
··· 132 "-DOPTIX_ROOT_DIR=${optix}" 133 ]; 134 135 - NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR -I${python}/include/${python.libPrefix}"; 136 137 # Since some dependencies are built with gcc 6, we need gcc 6's 138 # libstdc++ in our RPATH. Sigh.
··· 132 "-DOPTIX_ROOT_DIR=${optix}" 133 ]; 134 135 + env.NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR -I${python}/include/${python.libPrefix}"; 136 137 # Since some dependencies are built with gcc 6, we need gcc 6's 138 # libstdc++ in our RPATH. Sigh.
+1 -1
pkgs/applications/misc/cataract/build.nix
··· 30 # avoid build failures like: 31 # ld: stats.o:/build/cataract-675e647/src/stats.h:24: multiple definition of 32 # `stats_images'; cgg.o:/build/cataract-675e647/src/stats.h:24: first defined here 33 - NIX_CFLAGS_COMPILE = "-fcommon"; 34 35 installPhase = '' 36 mkdir $out/{bin,share} -p
··· 30 # avoid build failures like: 31 # ld: stats.o:/build/cataract-675e647/src/stats.h:24: multiple definition of 32 # `stats_images'; cgg.o:/build/cataract-675e647/src/stats.h:24: first defined here 33 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 34 35 installPhase = '' 36 mkdir $out/{bin,share} -p
+1 -1
pkgs/applications/misc/getxbook/default.nix
··· 9 sha256 = "0ihwrx4gspj8l7fc8vxch6dpjrw1lvv9z3c19f0wxnmnxhv1cjvs"; 10 }; 11 12 - NIX_CFLAGS_COMPILE = builtins.toString ( 13 [ "-Wno-error=deprecated-declarations" ] 14 ++ lib.optionals (!stdenv.cc.isClang) [ 15 "-Wno-error=format-truncation"
··· 9 sha256 = "0ihwrx4gspj8l7fc8vxch6dpjrw1lvv9z3c19f0wxnmnxhv1cjvs"; 10 }; 11 12 + env.NIX_CFLAGS_COMPILE = builtins.toString ( 13 [ "-Wno-error=deprecated-declarations" ] 14 ++ lib.optionals (!stdenv.cc.isClang) [ 15 "-Wno-error=format-truncation"
+1 -1
pkgs/applications/misc/gmtp/default.nix
··· 22 # ld: gmtp-preferences.o:src/main.h:72: multiple definition of 23 # `scrolledwindowMain'; gmtp-about.o:src/main.h:72: first defined here 24 # TODO: can be removed when 1.4.0 is released. 25 - NIX_CFLAGS_COMPILE = "-fcommon"; 26 27 preFixup = '' 28 gappsWrapperArgs+=(--add-flags "--datapath $out/share");
··· 22 # ld: gmtp-preferences.o:src/main.h:72: multiple definition of 23 # `scrolledwindowMain'; gmtp-about.o:src/main.h:72: first defined here 24 # TODO: can be removed when 1.4.0 is released. 25 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 26 27 preFixup = '' 28 gappsWrapperArgs+=(--add-flags "--datapath $out/share");
+1 -1
pkgs/applications/misc/gpsbabel/default.nix
··· 66 67 # Floating point behavior on i686 causes nmea.test failures. Preventing 68 # extended precision fixes this problem. 69 - NIX_CFLAGS_COMPILE = lib.optional stdenv.isi686 "-ffloat-store"; 70 71 doCheck = true; 72
··· 66 67 # Floating point behavior on i686 causes nmea.test failures. Preventing 68 # extended precision fixes this problem. 69 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-ffloat-store"; 70 71 doCheck = true; 72
+1 -1
pkgs/applications/misc/gxneur/default.nix
··· 10 }; 11 12 # glib-2.62 deprecations 13 - NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 14 15 nativeBuildInputs = [ pkg-config intltool ]; 16 buildInputs = [
··· 10 }; 11 12 # glib-2.62 deprecations 13 + env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 14 15 nativeBuildInputs = [ pkg-config intltool ]; 16 buildInputs = [
+1 -1
pkgs/applications/misc/keepassxc/default.nix
··· 49 sha256 = "sha256-amedKK9nplLVJTldeabN3/c+g/QesrdH+qx+rba2/4s="; 50 }; 51 52 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang [ 53 "-Wno-old-style-cast" 54 "-Wno-error" 55 "-D__BIG_ENDIAN__=${if stdenv.isBigEndian then "1" else "0"}"
··· 49 sha256 = "sha256-amedKK9nplLVJTldeabN3/c+g/QesrdH+qx+rba2/4s="; 50 }; 51 52 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang [ 53 "-Wno-old-style-cast" 54 "-Wno-error" 55 "-D__BIG_ENDIAN__=${if stdenv.isBigEndian then "1" else "0"}"
+1 -1
pkgs/applications/misc/klayout/default.nix
··· 45 mv $out/lib/klayout $out/bin/ 46 ''; 47 48 - NIX_CFLAGS_COMPILE = [ "-Wno-parentheses" ]; 49 50 dontInstall = true; # Installation already happens as part of "build.sh" 51
··· 45 mv $out/lib/klayout $out/bin/ 46 ''; 47 48 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-parentheses" ]; 49 50 dontInstall = true; # Installation already happens as part of "build.sh" 51
+1 -1
pkgs/applications/misc/lsd2dsl/default.nix
··· 17 18 buildInputs = [ boost libvorbis libsndfile minizip gtest qtwebkit ]; 19 20 - NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=missing-braces"; 21 22 desktopItems = lib.singleton (makeDesktopItem { 23 name = "lsd2dsl";
··· 17 18 buildInputs = [ boost libvorbis libsndfile minizip gtest qtwebkit ]; 19 20 + env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=missing-braces"; 21 22 desktopItems = lib.singleton (makeDesktopItem { 23 name = "lsd2dsl";
+2 -2
pkgs/applications/misc/mysql-workbench/default.nix
··· 140 patchShebangs tools/get_wb_version.sh 141 ''; 142 143 - NIX_CFLAGS_COMPILE = [ 144 # error: 'OGRErr OGRSpatialReference::importFromWkt(char**)' is deprecated 145 "-Wno-error=deprecated-declarations" 146 ] ++ lib.optionals stdenv.isAarch64 [ ··· 149 ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 150 # Needed with GCC 12 but problematic with some old GCCs 151 "-Wno-error=maybe-uninitalized" 152 - ]; 153 154 cmakeFlags = [ 155 "-DMySQL_CONFIG_PATH=${mysql}/bin/mysql_config"
··· 140 patchShebangs tools/get_wb_version.sh 141 ''; 142 143 + env.NIX_CFLAGS_COMPILE = toString ([ 144 # error: 'OGRErr OGRSpatialReference::importFromWkt(char**)' is deprecated 145 "-Wno-error=deprecated-declarations" 146 ] ++ lib.optionals stdenv.isAarch64 [ ··· 149 ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 150 # Needed with GCC 12 but problematic with some old GCCs 151 "-Wno-error=maybe-uninitalized" 152 + ]); 153 154 cmakeFlags = [ 155 "-DMySQL_CONFIG_PATH=${mysql}/bin/mysql_config"
+1 -1
pkgs/applications/misc/nut/default.nix
··· 43 44 enableParallelBuilding = true; 45 46 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 47 48 meta = with lib; { 49 description = "Network UPS Tools";
··· 43 44 enableParallelBuilding = true; 45 46 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 47 48 meta = with lib; { 49 description = "Network UPS Tools";
+2 -2
pkgs/applications/misc/opencpn/default.nix
··· 117 118 cmakeFlags = [ "-DOCPN_BUNDLE_DOCS=true" ]; 119 120 - NIX_CFLAGS_COMPILE = lib.optionals (!stdenv.hostPlatform.isx86) [ 121 "-DSQUISH_USE_SSE=0" 122 - ]; 123 124 postInstall = lib.optionals stdenv.isDarwin '' 125 mkdir -p $out/Applications
··· 117 118 cmakeFlags = [ "-DOCPN_BUNDLE_DOCS=true" ]; 119 120 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (!stdenv.hostPlatform.isx86) [ 121 "-DSQUISH_USE_SSE=0" 122 + ]); 123 124 postInstall = lib.optionals stdenv.isDarwin '' 125 mkdir -p $out/Applications
+1 -1
pkgs/applications/misc/opentrack/aruco.nix
··· 15 16 buildInputs = [ opencv4 ]; 17 18 - NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -O3"; 19 20 preInstall = '' 21 mkdir -p $out/include/aruco
··· 15 16 buildInputs = [ opencv4 ]; 17 18 + env.NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -O3"; 19 20 preInstall = '' 21 mkdir -p $out/include/aruco
+1 -1
pkgs/applications/misc/opentrack/default.nix
··· 42 nativeBuildInputs = [cmake pkg-config ninja copyDesktopItems]; 43 buildInputs = [qtbase qttools opencv4 procps eigen libXdmcp libevdev aruco]; 44 45 - NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -O3"; 46 dontWrapQtApps = true; 47 48 cmakeFlags = [
··· 42 nativeBuildInputs = [cmake pkg-config ninja copyDesktopItems]; 43 buildInputs = [qtbase qttools opencv4 procps eigen libXdmcp libevdev aruco]; 44 45 + env.NIX_CFLAGS_COMPILE = "-Wall -Wextra -Wpedantic -ffast-math -O3"; 46 dontWrapQtApps = true; 47 48 cmakeFlags = [
+1 -1
pkgs/applications/misc/osm2xmap/default.nix
··· 19 "INSTALL_MANDIR=${placeholder "out"}/share/man/man1" 20 ]; 21 22 - NIX_CFLAGS_COMPILE = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"; 23 24 buildInputs = [ libroxml proj_7 yaml-cpp_0_3 boost ]; 25
··· 19 "INSTALL_MANDIR=${placeholder "out"}/share/man/man1" 20 ]; 21 22 + env.NIX_CFLAGS_COMPILE = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"; 23 24 buildInputs = [ libroxml proj_7 yaml-cpp_0_3 boost ]; 25
+1 -1
pkgs/applications/misc/prusa-slicer/default.nix
··· 115 # Disable compiler warnings that clutter the build log. 116 # It seems to be a known issue for Eigen: 117 # http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1221 118 - NIX_CFLAGS_COMPILE = "-Wno-ignored-attributes"; 119 120 # prusa-slicer uses dlopen on `libudev.so` at runtime 121 NIX_LDFLAGS = lib.optionalString withSystemd "-ludev";
··· 115 # Disable compiler warnings that clutter the build log. 116 # It seems to be a known issue for Eigen: 117 # http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1221 118 + env.NIX_CFLAGS_COMPILE = "-Wno-ignored-attributes"; 119 120 # prusa-slicer uses dlopen on `libudev.so` at runtime 121 NIX_LDFLAGS = lib.optionalString withSystemd "-ludev";
+1 -1
pkgs/applications/misc/pw-viz/default.nix
··· 49 50 # enables pipewire API deprecated in 0.3.64 51 # fixes error caused by https://gitlab.freedesktop.org/pipewire/pipewire-rs/-/issues/55 52 - NIX_CFLAGS_COMPILE = [ "-DPW_ENABLE_DEPRECATED" ]; 53 54 meta = with lib; { 55 description = "A simple and elegant pipewire graph editor ";
··· 49 50 # enables pipewire API deprecated in 0.3.64 51 # fixes error caused by https://gitlab.freedesktop.org/pipewire/pipewire-rs/-/issues/55 52 + env.NIX_CFLAGS_COMPILE = toString [ "-DPW_ENABLE_DEPRECATED" ]; 53 54 meta = with lib; { 55 description = "A simple and elegant pipewire graph editor ";
+1 -1
pkgs/applications/misc/qlcplus/default.nix
··· 29 30 qmakeFlags = [ "INSTALLROOT=$(out)" ]; 31 32 - NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 33 34 postPatch = '' 35 patchShebangs .
··· 29 30 qmakeFlags = [ "INSTALLROOT=$(out)" ]; 31 32 + env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 33 34 postPatch = '' 35 patchShebangs .
+1 -1
pkgs/applications/misc/sdcv/default.nix
··· 19 mkdir locale 20 ''; 21 22 - NIX_CFLAGS_COMPILE = "-D__GNU_LIBRARY__"; 23 24 meta = with lib; { 25 homepage = "https://dushistov.github.io/sdcv/";
··· 19 mkdir locale 20 ''; 21 22 + env.NIX_CFLAGS_COMPILE = "-D__GNU_LIBRARY__"; 23 24 meta = with lib; { 25 homepage = "https://dushistov.github.io/sdcv/";
+1 -1
pkgs/applications/misc/slade/default.nix
··· 56 "-DwxWidgets_LIBRARIES=${wxGTK}/lib" 57 ]; 58 59 - NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 60 61 meta = with lib; { 62 description = "Doom editor";
··· 56 "-DwxWidgets_LIBRARIES=${wxGTK}/lib" 57 ]; 58 59 + env.NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 60 61 meta = with lib; { 62 description = "Doom editor";
+1 -1
pkgs/applications/misc/slade/git.nix
··· 56 "-DwxWidgets_LIBRARIES=${wxGTK}/lib" 57 ]; 58 59 - NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 60 61 meta = with lib; { 62 description = "Doom editor";
··· 56 "-DwxWidgets_LIBRARIES=${wxGTK}/lib" 57 ]; 58 59 + env.NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 60 61 meta = with lib; { 62 description = "Doom editor";
+1 -1
pkgs/applications/misc/syncthingtray/default.nix
··· 41 # Hence we use a C definition with NIX_CFLAGS_COMPILE 42 ./use-nix-path-in-autostart.patch 43 ]; 44 - NIX_CFLAGS_COMPILE = "-DEXEC_NIX_PATH=\"${placeholder "out"}/bin/syncthingtray\""; 45 46 buildInputs = [ 47 qtbase
··· 41 # Hence we use a C definition with NIX_CFLAGS_COMPILE 42 ./use-nix-path-in-autostart.patch 43 ]; 44 + env.NIX_CFLAGS_COMPILE = "-DEXEC_NIX_PATH=\"${placeholder "out"}/bin/syncthingtray\""; 45 46 buildInputs = [ 47 qtbase
+1 -1
pkgs/applications/misc/synergy/default.nix
··· 100 ]; 101 102 # Silences many warnings 103 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-inconsistent-missing-override"; 104 105 cmakeFlags = lib.optional (!withGUI) "-DSYNERGY_BUILD_LEGACY_GUI=OFF" 106 # NSFilenamesPboardType is deprecated in 10.14+
··· 100 ]; 101 102 # Silences many warnings 103 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-inconsistent-missing-override"; 104 105 cmakeFlags = lib.optional (!withGUI) "-DSYNERGY_BUILD_LEGACY_GUI=OFF" 106 # NSFilenamesPboardType is deprecated in 10.14+
+1 -1
pkgs/applications/misc/tilemaker/default.nix
··· 33 cmakeFlags = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) 34 "-DPROTOBUF_PROTOC_EXECUTABLE=${buildPackages.protobuf}/bin/protoc"; 35 36 - NIX_CFLAGS_COMPILE = [ "-DTM_VERSION=${finalAttrs.version}" ]; 37 38 postInstall = '' 39 installManPage ../docs/man/tilemaker.1
··· 33 cmakeFlags = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) 34 "-DPROTOBUF_PROTOC_EXECUTABLE=${buildPackages.protobuf}/bin/protoc"; 35 36 + env.NIX_CFLAGS_COMPILE = toString [ "-DTM_VERSION=${finalAttrs.version}" ]; 37 38 postInstall = '' 39 installManPage ../docs/man/tilemaker.1
+1 -1
pkgs/applications/misc/vp/default.nix
··· 15 16 buildInputs = [ SDL SDL_image ]; 17 18 - NIX_CFLAGS_COMPILE="-I${SDL}/include/SDL -I${SDL_image}/include/SDL"; 19 20 meta = with lib; { 21 homepage = "https://brlcad.org/~erik/";
··· 15 16 buildInputs = [ SDL SDL_image ]; 17 18 + env.NIX_CFLAGS_COMPILE = "-I${SDL}/include/SDL -I${SDL_image}/include/SDL"; 19 20 meta = with lib; { 21 homepage = "https://brlcad.org/~erik/";
+1 -1
pkgs/applications/misc/xmr-stak/default.nix
··· 16 sha256 = "0ilx5mhh91ks7dwvykfyynh53l6vkkignjpwkkss8ss6b2k8gdbj"; 17 }; 18 19 - NIX_CFLAGS_COMPILE = "-O3"; 20 21 patches = [ (fetchpatch { 22 name = "fix-libmicrohttpd-0-9-71.patch";
··· 16 sha256 = "0ilx5mhh91ks7dwvykfyynh53l6vkkignjpwkkss8ss6b2k8gdbj"; 17 }; 18 19 + env.NIX_CFLAGS_COMPILE = "-O3"; 20 21 patches = [ (fetchpatch { 22 name = "fix-libmicrohttpd-0-9-71.patch";
+1 -1
pkgs/applications/misc/xsw/default.nix
··· 18 19 buildInputs = [ SDL SDL_image SDL_ttf SDL_gfx ]; 20 21 - NIX_CFLAGS_COMPILE = toString (makeSDLFlags [ SDL SDL_image SDL_ttf SDL_gfx ]); 22 23 patches = [ 24 ./parse.patch # Fixes compilation error by avoiding redundant definitions.
··· 18 19 buildInputs = [ SDL SDL_image SDL_ttf SDL_gfx ]; 20 21 + env.NIX_CFLAGS_COMPILE = toString (makeSDLFlags [ SDL SDL_image SDL_ttf SDL_gfx ]); 22 23 patches = [ 24 ./parse.patch # Fixes compilation error by avoiding redundant definitions.
+1 -1
pkgs/applications/networking/browsers/chromium/common.nix
··· 324 # Don't spam warnings about unknown warning options. This is useful because 325 # our Clang is always older than Chromium's and the build logs have a size 326 # of approx. 25 MB without this option (and this saves e.g. 66 %). 327 - NIX_CFLAGS_COMPILE = "-Wno-unknown-warning-option"; 328 329 buildPhase = let 330 buildCommand = target: ''
··· 324 # Don't spam warnings about unknown warning options. This is useful because 325 # our Clang is always older than Chromium's and the build logs have a size 326 # of approx. 25 MB without this option (and this saves e.g. 66 %). 327 + env.NIX_CFLAGS_COMPILE = "-Wno-unknown-warning-option"; 328 329 buildPhase = let 330 buildCommand = target: ''
+1 -1
pkgs/applications/networking/browsers/dillo/default.nix
··· 46 # Workaround build failure on -fno-common toolchains: 47 # ld: main.o:/build/dillo-3.0.5/dpid/dpid.h:64: multiple definition of `sock_set'; 48 # dpid.o:/build/dillo-3.0.5/dpid/dpid.h:64: first defined here 49 - NIX_CFLAGS_COMPILE = "-fcommon"; 50 51 configureFlags = [ "--enable-ssl=yes" ]; 52
··· 46 # Workaround build failure on -fno-common toolchains: 47 # ld: main.o:/build/dillo-3.0.5/dpid/dpid.h:64: multiple definition of `sock_set'; 48 # dpid.o:/build/dillo-3.0.5/dpid/dpid.h:64: first defined here 49 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 50 51 configureFlags = [ "--enable-ssl=yes" ]; 52
+1 -1
pkgs/applications/networking/browsers/dillong/default.nix
··· 45 # Workaround build failure on -fno-common toolchains: 46 # ld: main.o:/build/dillo-3.0.5/dpid/dpid.h:64: multiple definition of `sock_set'; 47 # dpid.o:/build/dillo-3.0.5/dpid/dpid.h:64: first defined here 48 - NIX_CFLAGS_COMPILE = "-fcommon"; 49 50 meta = with lib; { 51 description = "Fork of Dillo, a lightweight web browser";
··· 45 # Workaround build failure on -fno-common toolchains: 46 # ld: main.o:/build/dillo-3.0.5/dpid/dpid.h:64: multiple definition of `sock_set'; 47 # dpid.o:/build/dillo-3.0.5/dpid/dpid.h:64: first defined here 48 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 49 50 meta = with lib; { 51 description = "Fork of Dillo, a lightweight web browser";
+2 -2
pkgs/applications/networking/browsers/ladybird/default.nix
··· 49 "-DENABLE_UNICODE_DATABASE_DOWNLOAD=false" 50 ]; 51 52 - NIX_CFLAGS_COMPILE = [ 53 "-Wno-error" 54 ] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0") [ 55 # error: use of undeclared identifier 'aligned_alloc' 56 "-include mm_malloc.h" 57 "-Daligned_alloc=_mm_malloc" 58 - ]; 59 60 # https://github.com/NixOS/nixpkgs/issues/201254 61 NIX_LDFLAGS = lib.optionalString (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc";
··· 49 "-DENABLE_UNICODE_DATABASE_DOWNLOAD=false" 50 ]; 51 52 + env.NIX_CFLAGS_COMPILE = toString ([ 53 "-Wno-error" 54 ] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0") [ 55 # error: use of undeclared identifier 'aligned_alloc' 56 "-include mm_malloc.h" 57 "-Daligned_alloc=_mm_malloc" 58 + ]); 59 60 # https://github.com/NixOS/nixpkgs/issues/201254 61 NIX_LDFLAGS = lib.optionalString (stdenv.isLinux && stdenv.isAarch64 && stdenv.cc.isGNU) "-lgcc";
+1 -1
pkgs/applications/networking/browsers/netsurf/libcss.nix
··· 26 "NSSHARED=${buildsystem}/share/netsurf-buildsystem" 27 ]; 28 29 - NIX_CFLAGS_COMPILE= [ "-Wno-error=implicit-fallthrough" "-Wno-error=maybe-uninitialized" ]; 30 31 meta = with lib; { 32 homepage = "https://www.netsurf-browser.org/projects/${libname}/";
··· 26 "NSSHARED=${buildsystem}/share/netsurf-buildsystem" 27 ]; 28 29 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=implicit-fallthrough" "-Wno-error=maybe-uninitialized" ]; 30 31 meta = with lib; { 32 homepage = "https://www.netsurf-browser.org/projects/${libname}/";
+1 -1
pkgs/applications/networking/browsers/netsurf/libwapcaplet.nix
··· 19 "NSSHARED=${buildsystem}/share/netsurf-buildsystem" 20 ]; 21 22 - NIX_CFLAGS_COMPILE = "-Wno-error=cast-function-type"; 23 24 meta = with lib; { 25 homepage = "https://www.netsurf-browser.org/projects/${libname}/";
··· 19 "NSSHARED=${buildsystem}/share/netsurf-buildsystem" 20 ]; 21 22 + env.NIX_CFLAGS_COMPILE = "-Wno-error=cast-function-type"; 23 24 meta = with lib; { 25 homepage = "https://www.netsurf-browser.org/projects/${libname}/";
+1 -1
pkgs/applications/networking/calls/default.nix
··· 84 xvfb-run 85 ]; 86 87 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 88 89 mesonFlags = [ 90 "-Dgtk_doc=true"
··· 84 xvfb-run 85 ]; 86 87 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 88 89 mesonFlags = [ 90 "-Dgtk_doc=true"
+1 -1
pkgs/applications/networking/freefilesync/default.nix
··· 57 wxGTK32 58 ]; 59 60 - NIX_CFLAGS_COMPILE = [ 61 # Undef g_object_ref on GLib 2.56+ 62 "-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_54" 63 "-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_54"
··· 57 wxGTK32 58 ]; 59 60 + env.NIX_CFLAGS_COMPILE = toString [ 61 # Undef g_object_ref on GLib 2.56+ 62 "-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_54" 63 "-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_54"
+1 -1
pkgs/applications/networking/ids/snort/default.nix
··· 15 nativeBuildInputs = [ makeWrapper pkg-config ]; 16 buildInputs = [ luajit openssl libpcap pcre libdnet daq zlib flex bison libtirpc ]; 17 18 - NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ]; 19 20 enableParallelBuilding = true; 21
··· 15 nativeBuildInputs = [ makeWrapper pkg-config ]; 16 buildInputs = [ luajit openssl libpcap pcre libdnet daq zlib flex bison libtirpc ]; 17 18 + env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ]; 19 20 enableParallelBuilding = true; 21
+1 -1
pkgs/applications/networking/instant-messengers/baresip/default.nix
··· 107 ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}" 108 ; 109 110 - NIX_CFLAGS_COMPILE = '' -I${librem}/include/rem -I${gsm}/include/gsm 111 -DHAVE_INTTYPES_H -D__GLIBC__ 112 -D__need_timeval -D__need_timespec -D__need_time_t ''; 113
··· 107 ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}" 108 ; 109 110 + env.NIX_CFLAGS_COMPILE = '' -I${librem}/include/rem -I${gsm}/include/gsm 111 -DHAVE_INTTYPES_H -D__GLIBC__ 112 -D__need_timeval -D__need_timespec -D__need_time_t ''; 113
+1 -1
pkgs/applications/networking/instant-messengers/fractal-next/default.nix
··· 69 70 # enables pipewire API deprecated in 0.3.64 71 # fixes error caused by https://gitlab.freedesktop.org/pipewire/pipewire-rs/-/issues/55 72 - NIX_CFLAGS_COMPILE = [ "-DPW_ENABLE_DEPRECATED" ]; 73 74 meta = with lib; { 75 description = "Matrix group messaging app (development version)";
··· 69 70 # enables pipewire API deprecated in 0.3.64 71 # fixes error caused by https://gitlab.freedesktop.org/pipewire/pipewire-rs/-/issues/55 72 + env.NIX_CFLAGS_COMPILE = toString [ "-DPW_ENABLE_DEPRECATED" ]; 73 74 meta = with lib; { 75 description = "Matrix group messaging app (development version)";
+1 -1
pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-matrix/default.nix
··· 11 sha256 = "1gjm0z4wa5vi9x1xk43rany5pffrwg958n180ahdj9a7sa8a4hpm"; 12 }; 13 14 - NIX_CFLAGS_COMPILE = builtins.toString [ 15 # glib-2.62 deprecations 16 "-DGLIB_DISABLE_DEPRECATION_WARNINGS" 17 # override "-O0 -Werror" set by build system
··· 11 sha256 = "1gjm0z4wa5vi9x1xk43rany5pffrwg958n180ahdj9a7sa8a4hpm"; 12 }; 13 14 + env.NIX_CFLAGS_COMPILE = builtins.toString [ 15 # glib-2.62 deprecations 16 "-DGLIB_DISABLE_DEPRECATION_WARNINGS" 17 # override "-O0 -Werror" set by build system
+1 -1
pkgs/applications/networking/instant-messengers/pidgin-plugins/tdlib-purple/default.nix
··· 29 30 cmakeFlags = [ "-DNoVoip=True" ]; # libtgvoip required 31 32 - NIX_CFLAGS_COMPILE = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ "-U__ARM_NEON__" ]; 33 34 meta = with lib; { 35 homepage = "https://github.com/ars3niy/tdlib-purple";
··· 29 30 cmakeFlags = [ "-DNoVoip=True" ]; # libtgvoip required 31 32 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ "-U__ARM_NEON__" ]); 33 34 meta = with lib; { 35 homepage = "https://github.com/ars3niy/tdlib-purple";
+1 -1
pkgs/applications/networking/instant-messengers/pidgin/default.nix
··· 18 19 nativeBuildInputs = [ makeWrapper intltool ]; 20 21 - NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"; 22 23 buildInputs = let 24 python-with-dbus = python3.withPackages (pp: with pp; [ dbus-python ]);
··· 18 19 nativeBuildInputs = [ makeWrapper intltool ]; 20 21 + env.NIX_CFLAGS_COMPILE = "-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"; 22 23 buildInputs = let 24 python-with-dbus = python3.withPackages (pp: with pp; [ dbus-python ]);
+1 -1
pkgs/applications/networking/irc/bip/default.nix
··· 38 }) 39 ]; 40 41 - NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=duplicate-decl-specifier"; 42 43 meta = { 44 description = "An IRC proxy (bouncer)";
··· 38 }) 39 ]; 40 41 + env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=duplicate-decl-specifier"; 42 43 meta = { 44 description = "An IRC proxy (bouncer)";
+1 -1
pkgs/applications/networking/irc/quassel/default.nix
··· 43 }; 44 45 # Prevent ``undefined reference to `qt_version_tag''' in SSL check 46 - NIX_CFLAGS_COMPILE = "-DQT_NO_VERSION_TAGGING=1"; 47 48 nativeBuildInputs = [ cmake makeWrapper ]; 49 buildInputs = [ qtbase boost zlib ]
··· 43 }; 44 45 # Prevent ``undefined reference to `qt_version_tag''' in SSL check 46 + env.NIX_CFLAGS_COMPILE = "-DQT_NO_VERSION_TAGGING=1"; 47 48 nativeBuildInputs = [ cmake makeWrapper ]; 49 buildInputs = [ qtbase boost zlib ]
+1 -1
pkgs/applications/networking/irc/weechat/default.nix
··· 65 ++ concatMap (p: p.buildInputs) enabledPlugins 66 ++ extraBuildInputs; 67 68 - NIX_CFLAGS_COMPILE = "-I${python}/include/${python.libPrefix}" 69 # Fix '_res_9_init: undefined symbol' error 70 + (lib.optionalString stdenv.isDarwin "-DBIND_8_COMPAT=1 -lresolv"); 71
··· 65 ++ concatMap (p: p.buildInputs) enabledPlugins 66 ++ extraBuildInputs; 67 68 + env.NIX_CFLAGS_COMPILE = "-I${python}/include/${python.libPrefix}" 69 # Fix '_res_9_init: undefined symbol' error 70 + (lib.optionalString stdenv.isDarwin "-DBIND_8_COMPAT=1 -lresolv"); 71
+1 -1
pkgs/applications/networking/mumble/default.nix
··· 71 ++ lib.optional (!pipewireSupport) "-D pipewire=OFF" 72 ++ lib.optional jackSupport "-D alsa=OFF -D jackaudio=ON"; 73 74 - NIX_CFLAGS_COMPILE = lib.optional speechdSupport "-I${speechd}/include/speech-dispatcher"; 75 76 postFixup = '' 77 wrapProgram $out/bin/mumble \
··· 71 ++ lib.optional (!pipewireSupport) "-D pipewire=OFF" 72 ++ lib.optional jackSupport "-D alsa=OFF -D jackaudio=ON"; 73 74 + env.NIX_CFLAGS_COMPILE = lib.optionalString speechdSupport "-I${speechd}/include/speech-dispatcher"; 75 76 postFixup = '' 77 wrapProgram $out/bin/mumble \
+1 -1
pkgs/applications/networking/offrss/default.nix
··· 16 # Workaround build failure on -fno-common toolchains: 17 # ld: serve_pdf.o:offrss.h:75: multiple definition of `cgi_url_path'; 18 # offrss.o:offrss.h:75: first defined here 19 - NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 configurePhase = '' 22 substituteInPlace Makefile \
··· 16 # Workaround build failure on -fno-common toolchains: 17 # ld: serve_pdf.o:offrss.h:75: multiple definition of `cgi_url_path'; 18 # offrss.o:offrss.h:75: first defined here 19 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 configurePhase = '' 22 substituteInPlace Makefile \
+2 -2
pkgs/applications/networking/remote/freerdp/default.nix
··· 175 WITH_X11 = true; 176 }; 177 178 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ 179 "-DTARGET_OS_IPHONE=0" 180 "-DTARGET_OS_WATCH=0" 181 "-include AudioToolbox/AudioToolbox.h" 182 - ]; 183 184 NIX_LDFLAGS = lib.optionals stdenv.isDarwin [ 185 "-framework AudioToolbox"
··· 175 WITH_X11 = true; 176 }; 177 178 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ 179 "-DTARGET_OS_IPHONE=0" 180 "-DTARGET_OS_WATCH=0" 181 "-include AudioToolbox/AudioToolbox.h" 182 + ]); 183 184 NIX_LDFLAGS = lib.optionals stdenv.isDarwin [ 185 "-framework AudioToolbox"
+1 -1
pkgs/applications/networking/remote/putty/default.nix
··· 15 }; 16 17 # glib-2.62 deprecations 18 - NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 19 20 preConfigure = lib.optionalString stdenv.hostPlatform.isUnix '' 21 perl mkfiles.pl
··· 15 }; 16 17 # glib-2.62 deprecations 18 + env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 19 20 preConfigure = lib.optionalString stdenv.hostPlatform.isUnix '' 21 perl mkfiles.pl
+1 -1
pkgs/applications/networking/sniffers/ettercap/default.nix
··· 31 ]; 32 33 # TODO: Remove after the next release (0.8.4 should work without this): 34 - NIX_CFLAGS_COMPILE = [ "-I${harfbuzz.dev}/include/harfbuzz" ]; 35 36 meta = with lib; { 37 description = "Comprehensive suite for man in the middle attacks";
··· 31 ]; 32 33 # TODO: Remove after the next release (0.8.4 should work without this): 34 + env.NIX_CFLAGS_COMPILE = toString [ "-I${harfbuzz.dev}/include/harfbuzz" ]; 35 36 meta = with lib; { 37 description = "Comprehensive suite for man in the middle attacks";
+1 -1
pkgs/applications/networking/sniffers/wireshark/default.nix
··· 34 ]; 35 36 # Avoid referencing -dev paths because of debug assertions. 37 - NIX_CFLAGS_COMPILE = [ "-DQT_NO_DEBUG" ]; 38 39 nativeBuildInputs = [ asciidoctor bison cmake flex makeWrapper pkg-config python3 perl ] 40 ++ lib.optionals withQt [ qt5.wrapQtAppsHook wrapGAppsHook ];
··· 34 ]; 35 36 # Avoid referencing -dev paths because of debug assertions. 37 + env.NIX_CFLAGS_COMPILE = toString [ "-DQT_NO_DEBUG" ]; 38 39 nativeBuildInputs = [ asciidoctor bison cmake flex makeWrapper pkg-config python3 perl ] 40 ++ lib.optionals withQt [ qt5.wrapQtAppsHook wrapGAppsHook ];
+1 -1
pkgs/applications/office/calligra/default.nix
··· 69 70 propagatedUserEnvPkgs = [ kproperty ]; 71 72 - NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR"; 73 74 qtWrapperArgs = [ 75 "--prefix PATH : ${lib.getBin pstoedit}/bin"
··· 69 70 propagatedUserEnvPkgs = [ kproperty ]; 71 72 + env.NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR"; 73 74 qtWrapperArgs = [ 75 "--prefix PATH : ${lib.getBin pstoedit}/bin"
+2 -2
pkgs/applications/office/gnucash/default.nix
··· 80 # guile warning 81 GUILE_AUTO_COMPILE="0"; 82 83 - NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 84 # Needed with GCC 12 but breaks on darwin (with clang) or older gcc 85 "-Wno-error=use-after-free" 86 - ]; 87 88 # `make check` target does not define its prerequisites but expects them to 89 # have already been built. The list of targets below was built through trial
··· 80 # guile warning 81 GUILE_AUTO_COMPILE="0"; 82 83 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 84 # Needed with GCC 12 but breaks on darwin (with clang) or older gcc 85 "-Wno-error=use-after-free" 86 + ]); 87 88 # `make check` target does not define its prerequisites but expects them to 89 # have already been built. The list of targets below was built through trial
+1 -1
pkgs/applications/office/kmymoney/default.nix
··· 30 ]; 31 32 # Hidden dependency that wasn't included in CMakeLists.txt: 33 - NIX_CFLAGS_COMPILE = "-I${kitemmodels.dev}/include/KF5"; 34 35 nativeBuildInputs = [ 36 doxygen extra-cmake-modules graphviz kdoctools
··· 30 ]; 31 32 # Hidden dependency that wasn't included in CMakeLists.txt: 33 + env.NIX_CFLAGS_COMPILE = "-I${kitemmodels.dev}/include/KF5"; 34 35 nativeBuildInputs = [ 36 doxygen extra-cmake-modules graphviz kdoctools
+1 -1
pkgs/applications/office/libreoffice/default.nix
··· 176 177 outputs = [ "out" "dev" ]; 178 179 - NIX_CFLAGS_COMPILE = [ 180 "-I${librdf_rasqal}/include/rasqal" # librdf_redland refers to rasqal.h instead of rasqal/rasqal.h 181 "-fno-visibility-inlines-hidden" # https://bugs.documentfoundation.org/show_bug.cgi?id=78174#c10 182 ];
··· 176 177 outputs = [ "out" "dev" ]; 178 179 + env.NIX_CFLAGS_COMPILE = toString [ 180 "-I${librdf_rasqal}/include/rasqal" # librdf_redland refers to rasqal.h instead of rasqal/rasqal.h 181 "-fno-visibility-inlines-hidden" # https://bugs.documentfoundation.org/show_bug.cgi?id=78174#c10 182 ];
+1 -1
pkgs/applications/office/mmex/default.nix
··· 52 libobjc 53 ]; 54 55 - NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ 56 "-Wno-old-style-cast" 57 ]); 58
··· 52 libobjc 53 ]; 54 55 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ 56 "-Wno-old-style-cast" 57 ]); 58
+1 -1
pkgs/applications/office/teapot/default.nix
··· 39 ]; 40 41 # By no known reason libtirpc is not detected 42 - NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ]; 43 NIX_LDFLAGS = [ "-ltirpc" ]; 44 45 cmakeConfigureFlags = [
··· 39 ]; 40 41 # By no known reason libtirpc is not detected 42 + env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ]; 43 NIX_LDFLAGS = [ "-ltirpc" ]; 44 45 cmakeConfigureFlags = [
+1 -1
pkgs/applications/office/treesheets/default.nix
··· 34 Cocoa 35 ]; 36 37 - NIX_CFLAGS_COMPILE = "-DPACKAGE_VERSION=\"${builtins.replaceStrings [ "unstable-" ] [ "" ] version}\""; 38 39 postInstall = lib.optionalString stdenv.isDarwin '' 40 shopt -s extglob
··· 34 Cocoa 35 ]; 36 37 + env.NIX_CFLAGS_COMPILE = "-DPACKAGE_VERSION=\"${builtins.replaceStrings [ "unstable-" ] [ "" ] version}\""; 38 39 postInstall = lib.optionalString stdenv.isDarwin '' 40 shopt -s extglob
+1 -1
pkgs/applications/office/wordgrinder/default.nix
··· 43 ]; 44 45 # To be able to find <Xft.h> 46 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isLinux "-I${libXft.dev}/include/X11"; 47 48 # Binaries look for LuaFileSystem library (lfs.so) at runtime 49 postInstall = ''
··· 43 ]; 44 45 # To be able to find <Xft.h> 46 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isLinux "-I${libXft.dev}/include/X11"; 47 48 # Binaries look for LuaFileSystem library (lfs.so) at runtime 49 postInstall = ''
+1 -1
pkgs/applications/radio/dump1090/default.nix
··· 30 hackrf 31 ] ++ lib.optional stdenv.isLinux limesuite; 32 33 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang 34 "-Wno-implicit-function-declaration -Wno-int-conversion"; 35 36 buildFlags = [ "dump1090" "view1090" ];
··· 30 hackrf 31 ] ++ lib.optional stdenv.isLinux limesuite; 32 33 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang 34 "-Wno-implicit-function-declaration -Wno-int-conversion"; 35 36 buildFlags = [ "dump1090" "view1090" ];
+2 -2
pkgs/applications/radio/freedv/default.nix
··· 69 "-DUNITTEST=ON" 70 ] ++ lib.optionals pulseSupport [ "-DUSE_PULSEAUDIO:BOOL=TRUE" ]; 71 72 - NIX_CFLAGS_COMPILE = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ 73 "-DAPPLE_OLD_XCODE" 74 - ]; 75 76 doCheck = true; 77
··· 69 "-DUNITTEST=ON" 70 ] ++ lib.optionals pulseSupport [ "-DUSE_PULSEAUDIO:BOOL=TRUE" ]; 71 72 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ 73 "-DAPPLE_OLD_XCODE" 74 + ]); 75 76 doCheck = true; 77
+1 -1
pkgs/applications/radio/sdrpp/default.nix
··· 99 OPT_BUILD_RIGCTL_SERVER = rigctl_server; 100 }; 101 102 - NIX_CFLAGS_COMPILE = "-fpermissive"; 103 104 hardeningDisable = lib.optional stdenv.cc.isClang "format"; 105
··· 99 OPT_BUILD_RIGCTL_SERVER = rigctl_server; 100 }; 101 102 + env.NIX_CFLAGS_COMPILE = "-fpermissive"; 103 104 hardeningDisable = lib.optional stdenv.cc.isClang "format"; 105
+1 -1
pkgs/applications/radio/soapyremote/default.nix
··· 19 20 cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; 21 22 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ "-include sys/select.h" ]; 23 24 meta = with lib; { 25 homepage = "https://github.com/pothosware/SoapyRemote";
··· 19 20 cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; 21 22 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ "-include sys/select.h" ]); 23 24 meta = with lib; { 25 homepage = "https://github.com/pothosware/SoapyRemote";
+1 -1
pkgs/applications/radio/xlog/default.nix
··· 9 }; 10 11 # glib-2.62 deprecations 12 - NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 13 14 nativeBuildInputs = [ pkg-config ]; 15 buildInputs = [ glib gtk2 hamlib ];
··· 9 }; 10 11 # glib-2.62 deprecations 12 + env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 13 14 nativeBuildInputs = [ pkg-config ]; 15 buildInputs = [ glib gtk2 hamlib ];
+1 -1
pkgs/applications/science/astronomy/astrolog/default.nix
··· 19 ''; 20 21 buildInputs = [ xorg.libX11 ]; 22 - NIX_CFLAGS_COMPILE = "-Wno-format-security"; 23 24 installPhase = 25 let
··· 19 ''; 20 21 buildInputs = [ xorg.libX11 ]; 22 + env.NIX_CFLAGS_COMPILE = "-Wno-format-security"; 23 24 installPhase = 25 let
+1 -1
pkgs/applications/science/astronomy/gildas/default.nix
··· 26 27 patches = [ ./wrapper.patch ./clang.patch ./aarch64.patch ]; 28 29 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument"; 30 31 NIX_LDFLAGS = lib.optionalString stdenv.isDarwin (with darwin.apple_sdk.frameworks; "-F${CoreFoundation}/Library/Frameworks"); 32
··· 26 27 patches = [ ./wrapper.patch ./clang.patch ./aarch64.patch ]; 28 29 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument"; 30 31 NIX_LDFLAGS = lib.optionalString stdenv.isDarwin (with darwin.apple_sdk.frameworks; "-F${CoreFoundation}/Library/Frameworks"); 32
+1 -1
pkgs/applications/science/astronomy/xplanet/default.nix
··· 26 }) 27 ]; 28 29 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing"; 30 31 meta = with lib; { 32 description = "Renders an image of the earth or other planets into the X root window";
··· 26 }) 27 ]; 28 29 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing"; 30 31 meta = with lib; { 32 description = "Renders an image of the earth or other planets into the X root window";
+1 -1
pkgs/applications/science/biology/bayescan/default.nix
··· 29 cp -r ../*pdf ../input_examples ../"R functions" $out/share/doc/bayescan 30 ''; 31 32 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 33 34 meta = with lib; { 35 description = "Detecting natural selection from population-based genetic data";
··· 29 cp -r ../*pdf ../input_examples ../"R functions" $out/share/doc/bayescan 30 ''; 31 32 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 33 34 meta = with lib; { 35 description = "Detecting natural selection from population-based genetic data";
+1 -1
pkgs/applications/science/biology/cmtk/default.nix
··· 12 13 nativeBuildInputs = [ cmake ]; 14 15 - NIX_CFLAGS_COMPILE = [ 16 "-std=c++11" 17 (lib.optional stdenv.cc.isClang "-Wno-error=c++11-narrowing") 18 ];
··· 12 13 nativeBuildInputs = [ cmake ]; 14 15 + env.NIX_CFLAGS_COMPILE = toString [ 16 "-std=c++11" 17 (lib.optional stdenv.cc.isClang "-Wno-error=c++11-narrowing") 18 ];
+1 -1
pkgs/applications/science/biology/freebayes/default.nix
··· 19 # gcc-10. Otherwise build fails as: 20 # ld: foomatic_rip-options.o:/build/foomatic-filters-4.0.17/options.c:49: multiple definition of `cupsfilter'; 21 # foomatic_rip-foomaticrip.o:/build/foomatic-filters-4.0.17/foomaticrip.c:158: first defined here 22 - NIX_CFLAGS_COMPILE = "-fcommon"; 23 24 installPhase = '' 25 install -vD bin/freebayes bin/bamleftalign scripts/* -t $out/bin
··· 19 # gcc-10. Otherwise build fails as: 20 # ld: foomatic_rip-options.o:/build/foomatic-filters-4.0.17/options.c:49: multiple definition of `cupsfilter'; 21 # foomatic_rip-foomaticrip.o:/build/foomatic-filters-4.0.17/foomaticrip.c:158: first defined here 22 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 23 24 installPhase = '' 25 install -vD bin/freebayes bin/bamleftalign scripts/* -t $out/bin
+1 -1
pkgs/applications/science/biology/minia/default.nix
··· 14 15 patches = [ ./no-bundle.patch ]; 16 17 - NIX_CFLAGS_COMPILE = [ "-Wformat" ]; 18 19 nativeBuildInputs = [ cmake ]; 20 buildInputs = [ hdf5 boost ];
··· 14 15 patches = [ ./no-bundle.patch ]; 16 17 + env.NIX_CFLAGS_COMPILE = toString [ "-Wformat" ]; 18 19 nativeBuildInputs = [ cmake ]; 20 buildInputs = [ hdf5 boost ];
+1 -1
pkgs/applications/science/biology/niftyreg/default.nix
··· 9 sha256 = "07v9v9s41lvw72wpb1jgh2nzanyc994779bd35p76vg8mzifmprl"; 10 }; 11 12 - NIX_CFLAGS_COMPILE = [ "-Wno-error=narrowing" ]; 13 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ zlib ];
··· 9 sha256 = "07v9v9s41lvw72wpb1jgh2nzanyc994779bd35p76vg8mzifmprl"; 10 }; 11 12 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=narrowing" ]; 13 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ zlib ];
+1 -1
pkgs/applications/science/biology/octopus/default.nix
··· 19 sha256 = "sha256-VaUr63v7mzhh4VBghH7a7qrqOYwl6vucmmKzTi9yAjY="; 20 }) ]; 21 22 - NIX_CFLAGS_COMPILE = [ 23 # Needed with GCC 12 24 "-Wno-error=deprecated-declarations" 25 ];
··· 19 sha256 = "sha256-VaUr63v7mzhh4VBghH7a7qrqOYwl6vucmmKzTi9yAjY="; 20 }) ]; 21 22 + env.NIX_CFLAGS_COMPILE = toString [ 23 # Needed with GCC 12 24 "-Wno-error=deprecated-declarations" 25 ];
+1 -1
pkgs/applications/science/biology/paml/default.nix
··· 12 # gcc-10. Otherwise build fails as: 13 # ld: /build/ccKomtcd.o:(.bss+0x4544): multiple definition of `SeqTypes'; 14 # /build/ccx7EsgU.o:(.bss+0x2a0dfdc): first defined here 15 - NIX_CFLAGS_COMPILE = "-fcommon"; 16 17 preBuild = '' 18 cd ./src/
··· 12 # gcc-10. Otherwise build fails as: 13 # ld: /build/ccKomtcd.o:(.bss+0x4544): multiple definition of `SeqTypes'; 14 # /build/ccx7EsgU.o:(.bss+0x2a0dfdc): first defined here 15 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 16 17 preBuild = '' 18 cd ./src/
+1 -1
pkgs/applications/science/biology/strelka/default.nix
··· 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ zlib python2 ]; 16 17 - NIX_CFLAGS_COMPILE = [ 18 "-Wno-error=maybe-uninitialized" 19 "-Wno-error=pessimizing-move" 20 ];
··· 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ zlib python2 ]; 16 17 + env.NIX_CFLAGS_COMPILE = toString [ 18 "-Wno-error=maybe-uninitialized" 19 "-Wno-error=pessimizing-move" 20 ];
+1 -1
pkgs/applications/science/biology/svaba/default.nix
··· 18 # gcc-10. Otherwise build fails as: 19 # ld: ./libfml.a(rle.o):/build/source/SeqLib/fermi-lite/rle.h:33: multiple definition of 20 # `rle_auxtab'; ./libfml.a(misc.o):/build/source/SeqLib/fermi-lite/rle.h:33: first defined here 21 - NIX_CFLAGS_COMPILE = "-fcommon"; 22 23 installPhase = '' 24 runHook preInstall
··· 18 # gcc-10. Otherwise build fails as: 19 # ld: ./libfml.a(rle.o):/build/source/SeqLib/fermi-lite/rle.h:33: multiple definition of 20 # `rle_auxtab'; ./libfml.a(misc.o):/build/source/SeqLib/fermi-lite/rle.h:33: first defined here 21 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 22 23 installPhase = '' 24 runHook preInstall
+1 -1
pkgs/applications/science/chemistry/avogadro/default.nix
··· 13 14 nativeBuildInputs = [ cmake pkg-config doxygen ]; 15 16 - NIX_CFLAGS_COMPILE = "-include ${libGLU.dev}/include/GL/glu.h"; 17 18 patches = [ 19 (fetchurl {
··· 13 14 nativeBuildInputs = [ cmake pkg-config doxygen ]; 15 16 + env.NIX_CFLAGS_COMPILE = "-include ${libGLU.dev}/include/GL/glu.h"; 17 18 patches = [ 19 (fetchurl {
+1 -1
pkgs/applications/science/chemistry/chemtool/default.nix
··· 28 # Otherwise built fails as: 29 # ld: inout.o:/build/chemtool-1.6.14/ct1.h:279: multiple definition of 30 # `outtype'; draw.o:/build/chemtool-1.6.14/ct1.h:279: first defined here 31 - NIX_CFLAGS_COMPILE = "-fcommon"; 32 33 preFixup = '' 34 gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ fig2dev ]}")
··· 28 # Otherwise built fails as: 29 # ld: inout.o:/build/chemtool-1.6.14/ct1.h:279: multiple definition of 30 # `outtype'; draw.o:/build/chemtool-1.6.14/ct1.h:279: first defined here 31 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 32 33 preFixup = '' 34 gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ fig2dev ]}")
+1 -1
pkgs/applications/science/chemistry/pymol/default.nix
··· 48 49 nativeBuildInputs = [ qt5.wrapQtAppsHook ]; 50 buildInputs = [ python3Packages.numpy python3Packages.pyqt5 glew glm libpng libxml2 freetype msgpack netcdf ]; 51 - NIX_CFLAGS_COMPILE = "-I ${libxml2.dev}/include/libxml2"; 52 hardeningDisable = [ "format" ]; 53 54 installPhase = ''
··· 48 49 nativeBuildInputs = [ qt5.wrapQtAppsHook ]; 50 buildInputs = [ python3Packages.numpy python3Packages.pyqt5 glew glm libpng libxml2 freetype msgpack netcdf ]; 51 + env.NIX_CFLAGS_COMPILE = "-I ${libxml2.dev}/include/libxml2"; 52 hardeningDisable = [ "format" ]; 53 54 installPhase = ''
+1 -1
pkgs/applications/science/computer-architecture/timeloop/default.nix
··· 43 44 #link-time optimization fails on darwin 45 #see https://github.com/NixOS/nixpkgs/issues/19098 46 - NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-fno-lto"; 47 48 postPatch = '' 49 # use nix ar/ranlib
··· 43 44 #link-time optimization fails on darwin 45 #see https://github.com/NixOS/nixpkgs/issues/19098 46 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-fno-lto"; 47 48 postPatch = '' 49 # use nix ar/ranlib
+1 -1
pkgs/applications/science/electronics/fped/default.nix
··· 17 # Workaround build failure on -fno-common toolchains: 18 # ld: postscript.o:postscript.h:29: multiple definition of 19 # `postscript_params'; fped.o:postscript.h:29: first defined here 20 - NIX_CFLAGS_COMPILE = "-fcommon"; 21 22 # This uses '/bin/bash', '/usr/local' and 'lex' by default 23 makeFlags = [
··· 17 # Workaround build failure on -fno-common toolchains: 18 # ld: postscript.o:postscript.h:29: multiple definition of 19 # `postscript_params'; fped.o:postscript.h:29: first defined here 20 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 21 22 # This uses '/bin/bash', '/usr/local' and 'lex' by default 23 makeFlags = [
+1 -1
pkgs/applications/science/electronics/fritzing/default.nix
··· 61 cp -a ${parts}/* parts/ 62 ''; 63 64 - NIX_CFLAGS_COMPILE = "-I${lib.getDev quazip}/include/QuaZip-Qt${lib.versions.major qtbase.version}-${quazip.version}/quazip"; 65 66 qmakeFlags = [ 67 "phoenix.pro"
··· 61 cp -a ${parts}/* parts/ 62 ''; 63 64 + env.NIX_CFLAGS_COMPILE = "-I${lib.getDev quazip}/include/QuaZip-Qt${lib.versions.major qtbase.version}-${quazip.version}/quazip"; 65 66 qmakeFlags = [ 67 "phoenix.pro"
+1 -1
pkgs/applications/science/electronics/magic-vlsi/default.nix
··· 44 patchShebangs scripts/* 45 ''; 46 47 - NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration"; 48 49 patches = [ 50 ./0001-strip-bin-prefix.patch
··· 44 patchShebangs scripts/* 45 ''; 46 47 + env.NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration"; 48 49 patches = [ 50 ./0001-strip-bin-prefix.patch
+1 -1
pkgs/applications/science/logic/avy/default.nix
··· 13 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ zlib boost.out boost.dev ]; 16 - NIX_CFLAGS_COMPILE = toString ([ "-Wno-narrowing" ] 17 # Squelch endless stream of warnings on same few things 18 ++ lib.optionals stdenv.cc.isClang [ 19 "-Wno-empty-body"
··· 13 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ zlib boost.out boost.dev ]; 16 + env.NIX_CFLAGS_COMPILE = toString ([ "-Wno-narrowing" ] 17 # Squelch endless stream of warnings on same few things 18 ++ lib.optionals stdenv.cc.isClang [ 19 "-Wno-empty-body"
+2 -2
pkgs/applications/science/logic/cbmc/default.nix
··· 60 --prefix PATH : "$out/share/cbmc" \ 61 ''; 62 63 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ 64 # Needed with GCC 12 but breaks on darwin (with clang) 65 "-Wno-error=maybe-uninitialized" 66 ] ++ lib.optionals stdenv.cc.isClang [ 67 # fix "argument unused during compilation" 68 "-Wno-unused-command-line-argument" 69 - ]; 70 71 # TODO: add jbmc support 72 cmakeFlags = [ "-DWITH_JBMC=OFF" "-Dsat_impl=cadical" "-Dcadical_INCLUDE_DIR=${cadical.dev}/include" ];
··· 60 --prefix PATH : "$out/share/cbmc" \ 61 ''; 62 63 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ 64 # Needed with GCC 12 but breaks on darwin (with clang) 65 "-Wno-error=maybe-uninitialized" 66 ] ++ lib.optionals stdenv.cc.isClang [ 67 # fix "argument unused during compilation" 68 "-Wno-unused-command-line-argument" 69 + ]); 70 71 # TODO: add jbmc support 72 cmakeFlags = [ "-DWITH_JBMC=OFF" "-Dsat_impl=cadical" "-Dcadical_INCLUDE_DIR=${cadical.dev}/include" ];
+1 -1
pkgs/applications/science/logic/klee/default.nix
··· 96 ]; 97 98 # Silence various warnings during the compilation of fortified bitcode. 99 - NIX_CFLAGS_COMPILE = ["-Wno-macro-redefined"]; 100 101 prePatch = '' 102 patchShebangs .
··· 96 ]; 97 98 # Silence various warnings during the compilation of fortified bitcode. 99 + env.NIX_CFLAGS_COMPILE = toString ["-Wno-macro-redefined"]; 100 101 prePatch = '' 102 patchShebangs .
+1 -1
pkgs/applications/science/logic/satallax/default.nix
··· 49 ''; 50 51 # error: invalid suffix on literal; C++11 requires a space between literal and identifier 52 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-reserved-user-defined-literal"; 53 54 installPhase = '' 55 mkdir -p "$out/share/doc/satallax" "$out/bin" "$out/lib" "$out/lib/satallax"
··· 49 ''; 50 51 # error: invalid suffix on literal; C++11 requires a space between literal and identifier 52 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-reserved-user-defined-literal"; 53 54 installPhase = '' 55 mkdir -p "$out/share/doc/satallax" "$out/bin" "$out/lib" "$out/lib/satallax"
+1 -1
pkgs/applications/science/math/calculix/default.nix
··· 17 18 buildInputs = [ arpack spooles blas lapack ]; 19 20 - NIX_CFLAGS_COMPILE = [ 21 "-I${spooles}/include/spooles" 22 "-std=legacy" 23 ];
··· 17 18 buildInputs = [ arpack spooles blas lapack ]; 19 20 + env.NIX_CFLAGS_COMPILE = toString [ 21 "-I${spooles}/include/spooles" 22 "-std=legacy" 23 ];
+1 -1
pkgs/applications/science/math/cntk/default.nix
··· 60 OMPI_CXX = "g++"; 61 62 # Uses some deprecated tensorflow functions 63 - NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 64 65 buildInputs = [ openblas opencv3 libzip boost protobuf mpi ] 66 ++ lib.optional cudaSupport cudatoolkit
··· 60 OMPI_CXX = "g++"; 61 62 # Uses some deprecated tensorflow functions 63 + env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 64 65 buildInputs = [ openblas opencv3 libzip boost protobuf mpi ] 66 ++ lib.optional cudaSupport cudatoolkit
+1 -1
pkgs/applications/science/math/eukleides/default.nix
··· 36 # gcc-10. Otherwise build fails as: 37 # ld: eukleides_build/triangle.o:(.bss+0x28): multiple definition of `A'; 38 # eukleides_build/quadrilateral.o:(.bss+0x18): first defined here 39 - NIX_CFLAGS_COMPILE = "-fcommon"; 40 41 preInstall = '' 42 mkdir -p $out/bin
··· 36 # gcc-10. Otherwise build fails as: 37 # ld: eukleides_build/triangle.o:(.bss+0x28): multiple definition of `A'; 38 # eukleides_build/quadrilateral.o:(.bss+0x18): first defined here 39 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 40 41 preInstall = '' 42 mkdir -p $out/bin
+1 -1
pkgs/applications/science/math/mxnet/default.nix
··· 54 ] else [ "-DUSE_CUDA=OFF" ]) 55 ++ lib.optional (!cudnnSupport) "-DUSE_CUDNN=OFF"; 56 57 - NIX_CFLAGS_COMPILE = [ 58 # Needed with GCC 12 59 "-Wno-error=maybe-uninitialized" 60 "-Wno-error=uninitialized"
··· 54 ] else [ "-DUSE_CUDA=OFF" ]) 55 ++ lib.optional (!cudnnSupport) "-DUSE_CUDNN=OFF"; 56 57 + env.NIX_CFLAGS_COMPILE = toString [ 58 # Needed with GCC 12 59 "-Wno-error=maybe-uninitialized" 60 "-Wno-error=uninitialized"
+1 -1
pkgs/applications/science/math/perseus/default.nix
··· 13 }; 14 15 sourceRoot = "."; 16 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 17 buildPhase = '' 18 g++ Pers.cpp -O3 -fpermissive -o perseus 19 '';
··· 13 }; 14 15 sourceRoot = "."; 16 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 17 buildPhase = '' 18 g++ Pers.cpp -O3 -fpermissive -o perseus 19 '';
+1 -1
pkgs/applications/science/misc/fityk/default.nix
··· 37 swig3 38 ]; 39 40 - NIX_CFLAGS_COMPILE = [ 41 "-std=c++11" 42 ]; 43
··· 37 swig3 38 ]; 39 40 + env.NIX_CFLAGS_COMPILE = toString [ 41 "-std=c++11" 42 ]; 43
+1 -1
pkgs/applications/science/physics/dawncut/default.nix
··· 20 21 dontConfigure = true; 22 23 - NIX_CFLAGS_COMPILE="-std=c++98"; 24 25 installPhase = '' 26 runHook preInstall
··· 20 21 dontConfigure = true; 22 23 + env.NIX_CFLAGS_COMPILE = "-std=c++98"; 24 25 installPhase = '' 26 runHook preInstall
+1 -1
pkgs/applications/science/physics/xfitter/default.nix
··· 44 ++ lib.optional (stdenv.hostPlatform.libc == "glibc") libtirpc 45 ; 46 47 - NIX_CFLAGS_COMPILE = lib.optional (stdenv.hostPlatform.libc == "glibc") "-I${libtirpc.dev}/include/tirpc"; 48 NIX_LDFLAGS = lib.optional (stdenv.hostPlatform.libc == "glibc") "-ltirpc"; 49 50 # workaround wrong library IDs
··· 44 ++ lib.optional (stdenv.hostPlatform.libc == "glibc") libtirpc 45 ; 46 47 + env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.hostPlatform.libc == "glibc") "-I${libtirpc.dev}/include/tirpc"; 48 NIX_LDFLAGS = lib.optional (stdenv.hostPlatform.libc == "glibc") "-ltirpc"; 49 50 # workaround wrong library IDs
+1 -1
pkgs/applications/search/recoll/default.nix
··· 57 "--without-inotify" 58 ]); 59 60 - NIX_CFLAGS_COMPILE = [ "-DNIXPKGS" ]; 61 62 patches = [ 63 # fix "No/bad main configuration file" error
··· 57 "--without-inotify" 58 ]); 59 60 + env.NIX_CFLAGS_COMPILE = toString [ "-DNIXPKGS" ]; 61 62 patches = [ 63 # fix "No/bad main configuration file" error
+2 -2
pkgs/applications/version-management/fnc/default.nix
··· 13 14 makeFlags = [ "PREFIX=$(out)" ]; 15 16 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ 17 # Needed with GCC 12 18 "-Wno-error=maybe-uninitialized" 19 - ]; 20 21 preInstall = '' 22 mkdir -p $out/bin
··· 13 14 makeFlags = [ "PREFIX=$(out)" ]; 15 16 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ 17 # Needed with GCC 12 18 "-Wno-error=maybe-uninitialized" 19 + ]); 20 21 preInstall = '' 22 mkdir -p $out/bin
+1 -1
pkgs/applications/version-management/rapidsvn/default.nix
··· 11 12 buildInputs = [ wxGTK30 subversion apr aprutil python3 ]; 13 14 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 15 16 configureFlags = [ 17 "--with-svn-include=${subversion.dev}/include"
··· 11 12 buildInputs = [ wxGTK30 subversion apr aprutil python3 ]; 13 14 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 15 16 configureFlags = [ 17 "--with-svn-include=${subversion.dev}/include"
+1 -1
pkgs/applications/version-management/rcs/default.nix
··· 17 lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) 18 [ buildPackages.diffutils buildPackages.ed ]; 19 20 - NIX_CFLAGS_COMPILE = "-std=c99"; 21 22 hardeningDisable = lib.optional stdenv.cc.isClang "format"; 23
··· 17 lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) 18 [ buildPackages.diffutils buildPackages.ed ]; 19 20 + env.NIX_CFLAGS_COMPILE = "-std=c99"; 21 22 hardeningDisable = lib.optional stdenv.cc.isClang "format"; 23
+1 -1
pkgs/applications/video/aegisub/default.nix
··· 133 --replace "NSUInteger" "size_t" 134 ''; 135 136 - NIX_CFLAGS_COMPILE = "-I${luajit52}/include"; 137 NIX_CFLAGS_LINK = "-L${luajit52}/lib"; 138 139 configurePhase = ''
··· 133 --replace "NSUInteger" "size_t" 134 ''; 135 136 + env.NIX_CFLAGS_COMPILE = "-I${luajit52}/include"; 137 NIX_CFLAGS_LINK = "-L${luajit52}/lib"; 138 139 configurePhase = ''
+1 -1
pkgs/applications/video/byzanz/default.nix
··· 29 ./autogen.sh --prefix=$out 30 ''; 31 32 - NIX_CFLAGS_COMPILE = builtins.concatStringsSep " " [ 33 "-Wno-error=deprecated-declarations" 34 "-Wno-error=incompatible-pointer-types" 35 ];
··· 29 ./autogen.sh --prefix=$out 30 ''; 31 32 + env.NIX_CFLAGS_COMPILE = builtins.concatStringsSep " " [ 33 "-Wno-error=deprecated-declarations" 34 "-Wno-error=incompatible-pointer-types" 35 ];
+1 -1
pkgs/applications/video/coriander/default.nix
··· 25 # Workaround build failure on -fno-common toolchains: 26 # ld: subtitles.o:src/coriander.h:110: multiple definition of 27 # `main_window'; main.o:src/coriander.h:110: first defined here 28 - NIX_CFLAGS_COMPILE = "-fcommon"; 29 30 preConfigure = '' 31 cp ${automake}/share/automake-*/mkinstalldirs .
··· 25 # Workaround build failure on -fno-common toolchains: 26 # ld: subtitles.o:src/coriander.h:110: multiple definition of 27 # `main_window'; main.o:src/coriander.h:110: first defined here 28 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 29 30 preConfigure = '' 31 cp ${automake}/share/automake-*/mkinstalldirs .
+1 -1
pkgs/applications/video/gnome-mplayer/default.nix
··· 26 # Workaround build failure on -fno-common toolchains: 27 # ld: mpris-interface.o:src/playlist.h:32: multiple definition of 28 # `plclose'; gui.o:src/playlist.h:32: first defined here 29 - NIX_CFLAGS_COMPILE = "-fcommon"; 30 31 meta = with lib; { 32 description = "Gnome MPlayer, a simple GUI for MPlayer";
··· 26 # Workaround build failure on -fno-common toolchains: 27 # ld: mpris-interface.o:src/playlist.h:32: multiple definition of 28 # `plclose'; gui.o:src/playlist.h:32: first defined here 29 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 30 31 meta = with lib; { 32 description = "Gnome MPlayer, a simple GUI for MPlayer";
+1 -1
pkgs/applications/video/obs-studio/plugins/looking-glass-obs.nix
··· 12 nativeBuildInputs = [ cmake ]; 13 buildInputs = [ obs-studio libbfd SDL2 ]; 14 15 - NIX_CFLAGS_COMPILE = "-mavx"; 16 17 installPhase = '' 18 mkdir -p $out/lib/obs-plugins/
··· 12 nativeBuildInputs = [ cmake ]; 13 buildInputs = [ obs-studio libbfd SDL2 ]; 14 15 + env.NIX_CFLAGS_COMPILE = "-mavx"; 16 17 installPhase = '' 18 mkdir -p $out/lib/obs-plugins/
+1 -1
pkgs/applications/video/ogmtools/default.nix
··· 11 12 buildInputs = [ libogg libvorbis libdvdread ]; 13 14 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 15 16 meta = { 17 description = "Tools for modifying and inspecting OGG media streams";
··· 11 12 buildInputs = [ libogg libvorbis libdvdread ]; 13 14 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 15 16 meta = { 17 description = "Tools for modifying and inspecting OGG media streams";
+1 -1
pkgs/applications/video/shotcut/default.nix
··· 47 qtgraphicaleffects 48 ]; 49 50 - NIX_CFLAGS_COMPILE = "-I${mlt.dev}/include/mlt++ -I${mlt.dev}/include/mlt"; 51 qmakeFlags = [ 52 "QMAKE_LRELEASE=${lib.getDev qttools}/bin/lrelease" 53 "SHOTCUT_VERSION=${version}"
··· 47 qtgraphicaleffects 48 ]; 49 50 + env.NIX_CFLAGS_COMPILE = "-I${mlt.dev}/include/mlt++ -I${mlt.dev}/include/mlt"; 51 qmakeFlags = [ 52 "QMAKE_LRELEASE=${lib.getDev qttools}/bin/lrelease" 53 "SHOTCUT_VERSION=${version}"
+1 -1
pkgs/applications/video/vokoscreen/default.nix
··· 32 33 # Workaround build failure on -fno-common toolchains: 34 # ld: alsa_device.o:(.bss+0x8): multiple definition of `rc'; QvkAlsaDevice.o:(.bss+0x8): first defined here 35 - NIX_CFLAGS_COMPILE = "-fcommon"; 36 37 preConfigure = '' 38 sed -i 's/lrelease-qt5/lrelease/g' vokoscreen.pro
··· 32 33 # Workaround build failure on -fno-common toolchains: 34 # ld: alsa_device.o:(.bss+0x8): multiple definition of `rc'; QvkAlsaDevice.o:(.bss+0x8): first defined here 35 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 36 37 preConfigure = '' 38 sed -i 's/lrelease-qt5/lrelease/g' vokoscreen.pro
+1 -1
pkgs/applications/video/w_scan/default.nix
··· 12 # Workaround build failure on -fno-common toolchains: 13 # ld: char-coding.o:/build/w_scan-20170107/si_types.h:117: multiple definition of 14 # `service_t'; countries.o:/build/w_scan-20170107/si_types.h:117: first defined here 15 - NIX_CFLAGS_COMPILE = "-fcommon"; 16 17 meta = { 18 description = "Small CLI utility to scan DVB and ATSC transmissions";
··· 12 # Workaround build failure on -fno-common toolchains: 13 # ld: char-coding.o:/build/w_scan-20170107/si_types.h:117: multiple definition of 14 # `service_t'; countries.o:/build/w_scan-20170107/si_types.h:117: first defined here 15 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 16 17 meta = { 18 description = "Small CLI utility to scan DVB and ATSC transmissions";
+1 -1
pkgs/applications/virtualization/OVMF/default.nix
··· 46 ++ lib.optionals httpSupport [ "-D NETWORK_HTTP_ENABLE=TRUE" "-D NETWORK_HTTP_BOOT_ENABLE=TRUE" ] 47 ++ lib.optionals tpmSupport [ "-D TPM_ENABLE" "-D TPM2_ENABLE" "-D TPM2_CONFIG_ENABLE"]; 48 49 - NIX_CFLAGS_COMPILE = lib.optional stdenv.cc.isClang "-Qunused-arguments"; 50 51 postPatch = lib.optionalString csmSupport '' 52 cp ${seabios}/Csm16.bin OvmfPkg/Csm/Csm16/Csm16.bin
··· 46 ++ lib.optionals httpSupport [ "-D NETWORK_HTTP_ENABLE=TRUE" "-D NETWORK_HTTP_BOOT_ENABLE=TRUE" ] 47 ++ lib.optionals tpmSupport [ "-D TPM_ENABLE" "-D TPM2_ENABLE" "-D TPM2_CONFIG_ENABLE"]; 48 49 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Qunused-arguments"; 50 51 postPatch = lib.optionalString csmSupport '' 52 cp ${seabios}/Csm16.bin OvmfPkg/Csm/Csm16/Csm16.bin
+1 -1
pkgs/applications/virtualization/docker/default.nix
··· 68 69 buildInputs = [ glibc glibc.static ]; 70 71 - NIX_CFLAGS_COMPILE = "-DMINIMAL=ON"; 72 }); 73 74 moby-src = fetchFromGitHub {
··· 68 69 buildInputs = [ glibc glibc.static ]; 70 71 + env.NIX_CFLAGS_COMPILE = "-DMINIMAL=ON"; 72 }); 73 74 moby-src = fetchFromGitHub {
+1 -1
pkgs/applications/virtualization/libgovirt/default.nix
··· 25 # https://gitlab.gnome.org/GNOME/libgovirt/-/issues/9 26 ./auto-disable-incompatible-compiler-warnings.patch 27 ]; 28 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang (lib.concatStringsSep " " [ 29 "-Wno-typedef-redefinition" 30 "-Wno-missing-field-initializers" 31 "-Wno-cast-align"
··· 25 # https://gitlab.gnome.org/GNOME/libgovirt/-/issues/9 26 ./auto-disable-incompatible-compiler-warnings.patch 27 ]; 28 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang (lib.concatStringsSep " " [ 29 "-Wno-typedef-redefinition" 30 "-Wno-missing-field-initializers" 31 "-Wno-cast-align"
+1 -1
pkgs/applications/virtualization/libnvidia-container/default.nix
··· 84 HOME="$(mktemp -d)" 85 ''; 86 87 - NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ]; 88 NIX_LDFLAGS = [ "-L${libtirpc.dev}/lib" "-ltirpc" ]; 89 90 nativeBuildInputs = [ pkg-config go rpcsvc-proto makeWrapper removeReferencesTo ];
··· 84 HOME="$(mktemp -d)" 85 ''; 86 87 + env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ]; 88 NIX_LDFLAGS = [ "-L${libtirpc.dev}/lib" "-ltirpc" ]; 89 90 nativeBuildInputs = [ pkg-config go rpcsvc-proto makeWrapper removeReferencesTo ];
+1 -1
pkgs/applications/virtualization/spice-vdagent/default.nix
··· 10 }; 11 12 # FIXME: May no longer be needed with spice-vdagent versions over 0.21.0 13 - NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 14 15 postPatch = '' 16 substituteInPlace data/spice-vdagent.desktop --replace /usr $out
··· 10 }; 11 12 # FIXME: May no longer be needed with spice-vdagent versions over 0.21.0 13 + env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 14 15 postPatch = '' 16 substituteInPlace data/spice-vdagent.desktop --replace /usr $out
+1 -1
pkgs/applications/virtualization/tini/default.nix
··· 13 14 postPatch = "sed -i /tini-static/d CMakeLists.txt"; 15 16 - NIX_CFLAGS_COMPILE = "-DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37"; 17 18 nativeBuildInputs = [ cmake ]; 19
··· 13 14 postPatch = "sed -i /tini-static/d CMakeLists.txt"; 15 16 + env.NIX_CFLAGS_COMPILE = "-DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37"; 17 18 nativeBuildInputs = [ cmake ]; 19
+1 -1
pkgs/applications/virtualization/virtualbox/guest-additions/default.nix
··· 31 32 hardeningDisable = [ "pic" ]; 33 34 - NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration"; 35 36 nativeBuildInputs = [ patchelf makeWrapper ]; 37 buildInputs = [ cdrkit ] ++ kernel.moduleBuildDependencies;
··· 31 32 hardeningDisable = [ "pic" ]; 33 34 + env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration"; 35 36 nativeBuildInputs = [ patchelf makeWrapper ]; 37 buildInputs = [ cdrkit ] ++ kernel.moduleBuildDependencies;
+1 -1
pkgs/applications/virtualization/xen/4.10.nix
··· 148 ++ optional (withOVMF) "--with-system-ovmf=${OVMF.fd}/FV/OVMF.fd" 149 ++ optional (withInternalOVMF) "--enable-ovmf"; 150 151 - NIX_CFLAGS_COMPILE = toString [ 152 # Fix build on Glibc 2.24. 153 "-Wno-error=deprecated-declarations" 154 # Fix build with GCC 8
··· 148 ++ optional (withOVMF) "--with-system-ovmf=${OVMF.fd}/FV/OVMF.fd" 149 ++ optional (withInternalOVMF) "--enable-ovmf"; 150 151 + env.NIX_CFLAGS_COMPILE = toString [ 152 # Fix build on Glibc 2.24. 153 "-Wno-error=deprecated-declarations" 154 # Fix build with GCC 8
+1 -1
pkgs/applications/window-managers/cardboard/default.nix
··· 110 "-Dwlroots:libseat=disabled" 111 ]; 112 113 - NIX_CFLAGS_COMPILE = [ "-Wno-error=array-bounds" ]; # gcc12 114 115 meta = with lib; { 116 homepage = "https://gitlab.com/cardboardwm/cardboard";
··· 110 "-Dwlroots:libseat=disabled" 111 ]; 112 113 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=array-bounds" ]; # gcc12 114 115 meta = with lib; { 116 homepage = "https://gitlab.com/cardboardwm/cardboard";
+1 -1
pkgs/applications/window-managers/fbpanel/default.nix
··· 23 # Workaround build failure on -fno-common toolchains like upstream 24 # gcc-10. Otherwise build fails as: 25 # ld: plugin.o:(.bss+0x0): multiple definition of `stam'; panel.o:(.bss+0x20): first defined here 26 - NIX_CFLAGS_COMPILE = "-fcommon"; 27 NIX_LDFLAGS="-lX11"; 28 29 meta = with lib; {
··· 23 # Workaround build failure on -fno-common toolchains like upstream 24 # gcc-10. Otherwise build fails as: 25 # ld: plugin.o:(.bss+0x0): multiple definition of `stam'; panel.o:(.bss+0x20): first defined here 26 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 27 NIX_LDFLAGS="-lX11"; 28 29 meta = with lib; {
+1 -1
pkgs/applications/window-managers/hyprwm/hypr/default.nix
··· 66 ]; 67 68 # src/ewmh/ewmh.cpp:67:28: error: non-constant-expression cannot be narrowed from type 'int' to 'uint32_t' (aka 'unsigned int') in initializer list 69 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-c++11-narrowing"; 70 71 installPhase = '' 72 runHook preInstall
··· 66 ]; 67 68 # src/ewmh/ewmh.cpp:67:28: error: non-constant-expression cannot be narrowed from type 'int' to 'uint32_t' (aka 'unsigned int') in initializer list 69 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-c++11-narrowing"; 70 71 installPhase = '' 72 runHook preInstall
+1 -1
pkgs/applications/window-managers/oroborus/default.nix
··· 49 # Workaround build failure on -fno-common toolchains: 50 # ld: workspaces.o:src/keyboard.h:93: multiple definition of 51 # `NumLockMask'; client.o:src/keyboard.h:93: first defined here 52 - NIX_CFLAGS_COMPILE = "-fcommon"; 53 54 meta = with lib; { 55 homepage = "https://web.archive.org/web/20191129172107/https://www.oroborus.org/";
··· 49 # Workaround build failure on -fno-common toolchains: 50 # ld: workspaces.o:src/keyboard.h:93: multiple definition of 51 # `NumLockMask'; client.o:src/keyboard.h:93: first defined here 52 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 53 54 meta = with lib; { 55 homepage = "https://web.archive.org/web/20191129172107/https://www.oroborus.org/";
+1 -1
pkgs/applications/window-managers/windowmaker/dockapps/wmsm-app.nix
··· 16 export sourceRoot=$(echo */${pname}/wmsm) 17 ''; 18 19 - NIX_CFLAGS_COMPILE = "-std=gnu89"; 20 21 postPatch = '' 22 substituteInPlace Makefile \
··· 16 export sourceRoot=$(echo */${pname}/wmsm) 17 ''; 18 19 + env.NIX_CFLAGS_COMPILE = "-std=gnu89"; 20 21 postPatch = '' 22 substituteInPlace Makefile \
+1 -1
pkgs/applications/window-managers/yeahwm/default.nix
··· 27 # Workaround build failure on -fno-common toolchains like upstream 28 # gcc-10. Otherwise build fails as: 29 # ld: screen.o:(.bss+0x40): multiple definition of `fg'; client.o:(.bss+0x40): first defined here 30 - NIX_CFLAGS_COMPILE = "-fcommon"; 31 32 postInstall = '' 33 gzip -9 --stdout yeahwm.1 > yeahwm.1.gz
··· 27 # Workaround build failure on -fno-common toolchains like upstream 28 # gcc-10. Otherwise build fails as: 29 # ld: screen.o:(.bss+0x40): multiple definition of `fg'; client.o:(.bss+0x40): first defined here 30 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 31 32 postInstall = '' 33 gzip -9 --stdout yeahwm.1 > yeahwm.1.gz
+1 -1
pkgs/build-support/flutter/default.nix
··· 187 188 # TODO: do we need this? 189 NIX_LDFLAGS = "-rpath ${lib.makeLibraryPath self.buildInputs}"; 190 - NIX_CFLAGS_COMPILE = "-I${xorg.libX11}/include"; 191 LD_LIBRARY_PATH = lib.makeLibraryPath self.buildInputs; 192 193 configurePhase = ''
··· 187 188 # TODO: do we need this? 189 NIX_LDFLAGS = "-rpath ${lib.makeLibraryPath self.buildInputs}"; 190 + env.NIX_CFLAGS_COMPILE = "-I${xorg.libX11}/include"; 191 LD_LIBRARY_PATH = lib.makeLibraryPath self.buildInputs; 192 193 configurePhase = ''
+1 -1
pkgs/data/misc/scowl/default.nix
··· 21 nativeBuildInputs = [ unzip zip perl aspell dos2unix ]; 22 buildInputs = lib.optional (!stdenv.isLinux) libiconv; 23 24 - NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 25 26 preConfigure = '' 27 patchShebangs .
··· 21 nativeBuildInputs = [ unzip zip perl aspell dos2unix ]; 22 buildInputs = lib.optional (!stdenv.isLinux) libiconv; 23 24 + env.NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 25 26 preConfigure = '' 27 patchShebangs .
+1 -1
pkgs/desktops/budgie/budgie-screensaver/default.nix
··· 48 xorg.libXxf86vm 49 ]; 50 51 - NIX_CFLAGS_COMPILE = "-D_POSIX_C_SOURCE"; 52 53 meta = with lib; { 54 description = "A fork of old GNOME Screensaver for purposes of providing an authentication prompt on wake";
··· 48 xorg.libXxf86vm 49 ]; 50 51 + env.NIX_CFLAGS_COMPILE = "-D_POSIX_C_SOURCE"; 52 53 meta = with lib; { 54 description = "A fork of old GNOME Screensaver for purposes of providing an authentication prompt on wake";
+1 -1
pkgs/desktops/cdesktopenv/default.nix
··· 52 # Workaround build failure on -fno-common toolchains: 53 # ld: raima/startup.o:/build/cde-2.3.2/lib/DtSearch/raima/dbtype.h:408: multiple definition of 54 # `__SK__'; raima/alloc.o:/build/cde-2.3.2/lib/DtSearch/raima/dbtype.h:408: first defined here 55 - NIX_CFLAGS_COMPILE = "-fcommon"; 56 57 makeFlags = [ 58 "World"
··· 52 # Workaround build failure on -fno-common toolchains: 53 # ld: raima/startup.o:/build/cde-2.3.2/lib/DtSearch/raima/dbtype.h:408: multiple definition of 54 # `__SK__'; raima/alloc.o:/build/cde-2.3.2/lib/DtSearch/raima/dbtype.h:408: first defined here 55 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 56 57 makeFlags = [ 58 "World"
+1 -1
pkgs/desktops/deepin/apps/deepin-voice-note/default.nix
··· 58 59 cmakeFlags = [ "-DVERSION=${version}" ]; 60 61 - NIX_CFLAGS_COMPILE = "-I${dde-qt-dbus-factory}/include/libdframeworkdbus-2.0"; 62 63 # qt5integration must be placed before qtsvg in QT_PLUGIN_PATH 64 qtWrapperArgs = [
··· 58 59 cmakeFlags = [ "-DVERSION=${version}" ]; 60 61 + env.NIX_CFLAGS_COMPILE = "-I${dde-qt-dbus-factory}/include/libdframeworkdbus-2.0"; 62 63 # qt5integration must be placed before qtsvg in QT_PLUGIN_PATH 64 qtWrapperArgs = [
+1 -1
pkgs/desktops/gnome/apps/vinagre/default.nix
··· 25 gtk3 vte libxml2 gtk-vnc libsecret gnome.adwaita-icon-theme librsvg 26 ]; 27 28 - NIX_CFLAGS_COMPILE = "-Wno-format-nonliteral"; 29 30 passthru = { 31 updateScript = gnome.updateScript {
··· 25 gtk3 vte libxml2 gtk-vnc libsecret gnome.adwaita-icon-theme librsvg 26 ]; 27 28 + env.NIX_CFLAGS_COMPILE = "-Wno-format-nonliteral"; 29 30 passthru = { 31 updateScript = gnome.updateScript {
+1 -1
pkgs/desktops/gnome/core/evince/default.nix
··· 106 "-Dmultimedia=disabled" 107 ]; 108 109 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 110 111 preFixup = '' 112 gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
··· 106 "-Dmultimedia=disabled" 107 ]; 108 109 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 110 111 preFixup = '' 112 gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
+1 -1
pkgs/desktops/gnome/core/gnome-online-miners/default.nix
··· 93 dleyna-server 94 ]; 95 96 - NIX_CFLAGS_COMPILE = [ 97 "-Wno-error=format-security" # https://gitlab.gnome.org/GNOME/gnome-online-miners/merge_requests/3/diffs#note_942747 98 ]; 99
··· 93 dleyna-server 94 ]; 95 96 + env.NIX_CFLAGS_COMPILE = toString [ 97 "-Wno-error=format-security" # https://gitlab.gnome.org/GNOME/gnome-online-miners/merge_requests/3/diffs#note_942747 98 ]; 99
+1 -1
pkgs/desktops/gnome/core/gnome-settings-daemon/3.38/default.nix
··· 148 149 # Default for release buildtype but passed manually because 150 # we're using plain 151 - NIX_CFLAGS_COMPILE = "-DG_DISABLE_CAST_CHECKS"; 152 153 postPatch = '' 154 for f in gnome-settings-daemon/codegen.py plugins/power/gsd-power-constants-update.pl meson_post_install.py; do
··· 148 149 # Default for release buildtype but passed manually because 150 # we're using plain 151 + env.NIX_CFLAGS_COMPILE = "-DG_DISABLE_CAST_CHECKS"; 152 153 postPatch = '' 154 for f in gnome-settings-daemon/codegen.py plugins/power/gsd-power-constants-update.pl meson_post_install.py; do
+1 -1
pkgs/desktops/gnome/core/gnome-settings-daemon/default.nix
··· 108 109 # Default for release buildtype but passed manually because 110 # we're using plain 111 - NIX_CFLAGS_COMPILE = "-DG_DISABLE_CAST_CHECKS"; 112 113 114 postPatch = ''
··· 108 109 # Default for release buildtype but passed manually because 110 # we're using plain 111 + env.NIX_CFLAGS_COMPILE = "-DG_DISABLE_CAST_CHECKS"; 112 113 114 postPatch = ''
+1 -1
pkgs/desktops/mate/atril/default.nix
··· 67 ++ optionals (enableXps) [ "--enable-xps" ] 68 ++ optionals (enableImages) [ "--enable-pixbuf" ]; 69 70 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 71 72 makeFlags = [ "cajaextensiondir=$$out/lib/caja/extensions-2.0" ]; 73
··· 67 ++ optionals (enableXps) [ "--enable-xps" ] 68 ++ optionals (enableImages) [ "--enable-pixbuf" ]; 69 70 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 71 72 makeFlags = [ "cajaextensiondir=$$out/lib/caja/extensions-2.0" ]; 73
+1 -1
pkgs/desktops/mate/marco/default.nix
··· 48 mate-settings-daemon 49 ]; 50 51 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 52 53 enableParallelBuilding = true; 54
··· 48 mate-settings-daemon 49 ]; 50 51 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 52 53 enableParallelBuilding = true; 54
+1 -1
pkgs/desktops/mate/mate-applets/default.nix
··· 61 62 configureFlags = [ "--enable-suid=no" ]; 63 64 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 65 66 enableParallelBuilding = true; 67
··· 61 62 configureFlags = [ "--enable-suid=no" ]; 63 64 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 65 66 enableParallelBuilding = true; 67
+1 -1
pkgs/desktops/mate/mate-notification-daemon/default.nix
··· 40 mate-panel 41 ]; 42 43 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 44 45 enableParallelBuilding = true; 46
··· 40 mate-panel 41 ]; 42 43 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 44 45 enableParallelBuilding = true; 46
+1 -1
pkgs/desktops/mate/mate-panel/default.nix
··· 47 hicolor-icon-theme 48 ]; 49 50 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 51 52 makeFlags = [ 53 "INTROSPECTION_GIRDIR=$(out)/share/gir-1.0/"
··· 47 hicolor-icon-theme 48 ]; 49 50 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 51 52 makeFlags = [ 53 "INTROSPECTION_GIRDIR=$(out)/share/gir-1.0/"
+1 -1
pkgs/desktops/mate/mate-settings-daemon/default.nix
··· 50 51 configureFlags = lib.optional pulseaudioSupport "--enable-pulse"; 52 53 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 54 55 enableParallelBuilding = true; 56
··· 50 51 configureFlags = lib.optional pulseaudioSupport "--enable-pulse"; 52 53 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 54 55 enableParallelBuilding = true; 56
+1 -1
pkgs/desktops/mate/mate-utils/default.nix
··· 44 hicolor-icon-theme 45 ]; 46 47 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 48 49 enableParallelBuilding = true; 50
··· 44 hicolor-icon-theme 45 ]; 46 47 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 48 49 enableParallelBuilding = true; 50
+1 -1
pkgs/desktops/plasma-5/ksystemstats.nix
··· 9 10 mkDerivation { 11 pname = "ksystemstats"; 12 - NIX_CFLAGS_COMPILE = [ "-I${lib.getBin libksysguard}/share" ]; 13 nativeBuildInputs = [ extra-cmake-modules ]; 14 buildInputs = [ libksysguard libnl lm_sensors networkmanager-qt ]; 15 }
··· 9 10 mkDerivation { 11 pname = "ksystemstats"; 12 + env.NIX_CFLAGS_COMPILE = toString [ "-I${lib.getBin libksysguard}/share" ]; 13 nativeBuildInputs = [ extra-cmake-modules ]; 14 buildInputs = [ libksysguard libnl lm_sensors networkmanager-qt ]; 15 }
+1 -1
pkgs/desktops/plasma-5/plasma-workspace/default.nix
··· 162 ln -sf $out/bin/kcminit $out/bin/kcminit_startup 163 ''; 164 165 - NIX_CFLAGS_COMPILE = [ 166 ''-DNIXPKGS_XMESSAGE="${getBin xmessage}/bin/xmessage"'' 167 ''-DNIXPKGS_XSETROOT="${getBin xsetroot}/bin/xsetroot"'' 168 ''-DNIXPKGS_START_KDEINIT_WRAPPER="${getLib kinit}/libexec/kf5/start_kdeinit_wrapper"''
··· 162 ln -sf $out/bin/kcminit $out/bin/kcminit_startup 163 ''; 164 165 + env.NIX_CFLAGS_COMPILE = toString [ 166 ''-DNIXPKGS_XMESSAGE="${getBin xmessage}/bin/xmessage"'' 167 ''-DNIXPKGS_XSETROOT="${getBin xsetroot}/bin/xsetroot"'' 168 ''-DNIXPKGS_START_KDEINIT_WRAPPER="${getLib kinit}/libexec/kf5/start_kdeinit_wrapper"''
+1 -1
pkgs/desktops/xfce/applications/ristretto/default.nix
··· 24 xfconf 25 ]; 26 27 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 28 29 meta = with lib; { 30 description = "A fast and lightweight picture-viewer for the Xfce desktop environment";
··· 24 xfconf 25 ]; 26 27 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 28 29 meta = with lib; { 30 description = "A fast and lightweight picture-viewer for the Xfce desktop environment";
+1 -1
pkgs/desktops/xfce/applications/xfce4-notifyd/default.nix
··· 26 xfconf 27 ]; 28 29 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 30 31 configureFlags = [ 32 "--enable-dbus-start-daemon"
··· 26 xfconf 27 ]; 28 29 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 30 31 configureFlags = [ 32 "--enable-dbus-start-daemon"
+1 -1
pkgs/desktops/xfce/applications/xfce4-terminal/default.nix
··· 11 12 buildInputs = [ gtk3 libxfce4ui vte xfconf pcre2 ]; 13 14 - NIX_CFLAGS_COMPILE = "-I${libxfce4ui.dev}/include/xfce4"; 15 16 passthru.tests.test = nixosTests.terminal-emulators.xfce4-terminal; 17
··· 11 12 buildInputs = [ gtk3 libxfce4ui vte xfconf pcre2 ]; 13 14 + env.NIX_CFLAGS_COMPILE = "-I${libxfce4ui.dev}/include/xfce4"; 15 16 passthru.tests.test = nixosTests.terminal-emulators.xfce4-terminal; 17
+1 -1
pkgs/desktops/xfce/core/exo/default.nix
··· 23 ]; 24 25 # Workaround https://bugzilla.xfce.org/show_bug.cgi?id=15825 26 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 27 28 meta = with lib; { 29 description = "Application library for Xfce";
··· 23 ]; 24 25 # Workaround https://bugzilla.xfce.org/show_bug.cgi?id=15825 26 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 27 28 meta = with lib; { 29 description = "Application library for Xfce";
+1 -1
pkgs/desktops/xfce/core/xfce4-session/default.nix
··· 12 configureFlags = [ "--with-xsession-prefix=${placeholder "out"}" ]; 13 14 # See https://github.com/NixOS/nixpkgs/issues/36468 15 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 16 17 passthru.xinitrc = "${xfce4-session}/etc/xdg/xfce4/xinitrc"; 18
··· 12 configureFlags = [ "--with-xsession-prefix=${placeholder "out"}" ]; 13 14 # See https://github.com/NixOS/nixpkgs/issues/36468 15 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 16 17 passthru.xinitrc = "${xfce4-session}/etc/xdg/xfce4/xinitrc"; 18
+1 -1
pkgs/development/compilers/alan/2.nix
··· 16 17 # Add a workarounf for -fno-common tollchains like upstream gcc-10. 18 # alan-3 is already fixed, but the backport is nontrivial. 19 - NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 installPhase = '' 22 mkdir -p $out/bin $out/share/alan2
··· 16 17 # Add a workarounf for -fno-common tollchains like upstream gcc-10. 18 # alan-3 is already fixed, but the backport is nontrivial. 19 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 installPhase = '' 22 mkdir -p $out/bin $out/share/alan2
+1 -1
pkgs/development/compilers/bs-platform/ocaml.nix
··· 10 # ld: libcamlrun.a(minor_gc.o):/build/ocaml/byterun/caml/major_gc.h:67: multiple definition of 11 # `caml_major_ring'; libcamlrun.a(stacks.o):/build/ocaml/byterun/caml/major_gc.h:67: first defined here 12 # Match -fcommon workaround in ocaml-4.06 itself. 13 - NIX_CFLAGS_COMPILE = "-fcommon"; 14 15 buildPhase = '' 16 make -j9 world.opt
··· 10 # ld: libcamlrun.a(minor_gc.o):/build/ocaml/byterun/caml/major_gc.h:67: multiple definition of 11 # `caml_major_ring'; libcamlrun.a(stacks.o):/build/ocaml/byterun/caml/major_gc.h:67: first defined here 12 # Match -fcommon workaround in ocaml-4.06 itself. 13 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 14 15 buildPhase = '' 16 make -j9 world.opt
+1 -1
pkgs/development/compilers/chez-racket/shared.nix
··· 29 30 enableParallelBuilding = true; 31 32 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=format-truncation"; 33 34 meta = { 35 description = "Fork of Chez Scheme for Racket";
··· 29 30 enableParallelBuilding = true; 31 32 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=format-truncation"; 33 34 meta = { 35 description = "Fork of Chez Scheme for Racket";
+1 -1
pkgs/development/compilers/chez/default.nix
··· 20 21 enableParallelBuilding = true; 22 23 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=format-truncation"; 24 25 /* 26 ** We patch out a very annoying 'feature' in ./configure, which
··· 20 21 enableParallelBuilding = true; 22 23 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=format-truncation"; 24 25 /* 26 ** We patch out a very annoying 'feature' in ./configure, which
+1 -1
pkgs/development/compilers/edk2/default.nix
··· 65 makeFlags = [ "-C BaseTools" ] 66 ++ lib.optionals (stdenv.cc.isClang) [ "CXX=llvm BUILD_AR=ar BUILD_CC=clang BUILD_CXX=clang++ BUILD_AS=clang BUILD_LD=ld" ]; 67 68 - NIX_CFLAGS_COMPILE = "-Wno-return-type" + lib.optionalString (stdenv.cc.isGNU) " -Wno-error=stringop-truncation"; 69 70 hardeningDisable = [ "format" "fortify" ]; 71
··· 65 makeFlags = [ "-C BaseTools" ] 66 ++ lib.optionals (stdenv.cc.isClang) [ "CXX=llvm BUILD_AR=ar BUILD_CC=clang BUILD_CXX=clang++ BUILD_AS=clang BUILD_LD=ld" ]; 67 68 + env.NIX_CFLAGS_COMPILE = "-Wno-return-type" + lib.optionalString (stdenv.cc.isGNU) " -Wno-error=stringop-truncation"; 69 70 hardeningDisable = [ "format" "fortify" ]; 71
+1 -1
pkgs/development/compilers/eli/default.nix
··· 56 57 # Workaround build failure on -fno-common toolchains: 58 # ld: cexp.o:(.bss+0x40): multiple definition of `obstck'; cccp.o:(.bss+0x0): first defined here 59 - NIX_CFLAGS_COMPILE = "-fcommon"; 60 61 preConfigure='' 62 configureFlagsArray=(
··· 56 57 # Workaround build failure on -fno-common toolchains: 58 # ld: cexp.o:(.bss+0x40): multiple definition of `obstck'; cccp.o:(.bss+0x0): first defined here 59 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 60 61 preConfigure='' 62 configureFlagsArray=(
+1 -1
pkgs/development/compilers/eql/default.nix
··· 11 12 buildInputs = [ ecl qt4 xorgserver xkbcomp xkeyboard_config ]; 13 14 - NIX_CFLAGS_COMPILE = "-fPIC"; 15 16 postPatch = '' 17 sed -re 's@[(]in-home "gui/.command-history"[)]@(concatenate '"'"'string (ext:getenv "HOME") "/.eql-gui-command-history")@' -i gui/gui.lisp
··· 11 12 buildInputs = [ ecl qt4 xorgserver xkbcomp xkeyboard_config ]; 13 14 + env.NIX_CFLAGS_COMPILE = "-fPIC"; 15 16 postPatch = '' 17 sed -re 's@[(]in-home "gui/.command-history"[)]@(concatenate '"'"'string (ext:getenv "HOME") "/.eql-gui-command-history")@' -i gui/gui.lisp
+1 -1
pkgs/development/compilers/gcc/7/default.nix
··· 225 inherit (callFile ../common/dependencies.nix { }) 226 depsBuildBuild nativeBuildInputs depsBuildTarget buildInputs depsTargetTarget; 227 228 - NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.cc.isClang && langFortran) "-Wno-unused-command-line-argument"; 229 NIX_LDFLAGS = lib.optionalString hostPlatform.isSunOS "-lm"; 230 231 preConfigure = callFile ../common/pre-configure.nix { };
··· 225 inherit (callFile ../common/dependencies.nix { }) 226 depsBuildBuild nativeBuildInputs depsBuildTarget buildInputs depsTargetTarget; 227 228 + env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.cc.isClang && langFortran) "-Wno-unused-command-line-argument"; 229 NIX_LDFLAGS = lib.optionalString hostPlatform.isSunOS "-lm"; 230 231 preConfigure = callFile ../common/pre-configure.nix { };
+1 -1
pkgs/development/compilers/gcl/default.nix
··· 43 # -fcommon: workaround build failure on -fno-common toolchains: 44 # ld: ./libgclp.a(user_match.o):(.bss+0x18): multiple definition of 45 # `tf'; ./libpre_gcl.a(main.o):(.bss+0x326d90): first defined here 46 - NIX_CFLAGS_COMPILE = "-fgnu89-inline -fcommon"; 47 48 meta = with lib; { 49 description = "GNU Common Lisp compiler working via GCC";
··· 43 # -fcommon: workaround build failure on -fno-common toolchains: 44 # ld: ./libgclp.a(user_match.o):(.bss+0x18): multiple definition of 45 # `tf'; ./libpre_gcl.a(main.o):(.bss+0x326d90): first defined here 46 + env.NIX_CFLAGS_COMPILE = "-fgnu89-inline -fcommon"; 47 48 meta = with lib; { 49 description = "GNU Common Lisp compiler working via GCC";
+1 -1
pkgs/development/compilers/gerbil/build.nix
··· 21 buildInputs = [ gambit ] 22 ++ buildInputs_libraries; # ++ buildInputs_staticLibraries; 23 24 - NIX_CFLAGS_COMPILE = "-I${libmysqlclient}/include/mysql -L${libmysqlclient}/lib/mysql"; 25 26 postPatch = '' 27 echo '(define (gerbil-version-string) "v${git-version}")' > src/gerbil/runtime/gx-version.scm ;
··· 21 buildInputs = [ gambit ] 22 ++ buildInputs_libraries; # ++ buildInputs_staticLibraries; 23 24 + env.NIX_CFLAGS_COMPILE = "-I${libmysqlclient}/include/mysql -L${libmysqlclient}/lib/mysql"; 25 26 postPatch = '' 27 echo '(define (gerbil-version-string) "v${git-version}")' > src/gerbil/runtime/gx-version.scm ;
+1 -1
pkgs/development/compilers/llvm/10/compiler-rt/default.nix
··· 19 nativeBuildInputs = [ cmake python3 libllvm.dev ]; 20 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 21 22 - NIX_CFLAGS_COMPILE = [ 23 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 24 ]; 25
··· 19 nativeBuildInputs = [ cmake python3 libllvm.dev ]; 20 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 21 22 + env.NIX_CFLAGS_COMPILE = toString [ 23 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 24 ]; 25
+1 -1
pkgs/development/compilers/llvm/11/compiler-rt/default.nix
··· 20 nativeBuildInputs = [ cmake python3 libllvm.dev ] 21 ++ lib.optional stdenv.isDarwin xcbuild.xcrun; 22 23 - NIX_CFLAGS_COMPILE = [ 24 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 25 ]; 26
··· 20 nativeBuildInputs = [ cmake python3 libllvm.dev ] 21 ++ lib.optional stdenv.isDarwin xcbuild.xcrun; 22 23 + env.NIX_CFLAGS_COMPILE = toString [ 24 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 25 ]; 26
+1 -1
pkgs/development/compilers/llvm/12/compiler-rt/default.nix
··· 20 ++ lib.optional stdenv.isDarwin xcbuild.xcrun; 21 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 22 23 - NIX_CFLAGS_COMPILE = [ 24 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 25 ]; 26
··· 20 ++ lib.optional stdenv.isDarwin xcbuild.xcrun; 21 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 22 23 + env.NIX_CFLAGS_COMPILE = toString [ 24 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 25 ]; 26
+1 -1
pkgs/development/compilers/llvm/13/compiler-rt/default.nix
··· 22 ++ lib.optional stdenv.isDarwin xcbuild.xcrun; 23 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 24 25 - NIX_CFLAGS_COMPILE = [ 26 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 27 ]; 28
··· 22 ++ lib.optional stdenv.isDarwin xcbuild.xcrun; 23 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 24 25 + env.NIX_CFLAGS_COMPILE = toString [ 26 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 27 ]; 28
+1 -1
pkgs/development/compilers/llvm/14/compiler-rt/default.nix
··· 31 ++ lib.optional stdenv.isDarwin xcbuild.xcrun; 32 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 33 34 - NIX_CFLAGS_COMPILE = [ 35 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 36 ]; 37
··· 31 ++ lib.optional stdenv.isDarwin xcbuild.xcrun; 32 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 33 34 + env.NIX_CFLAGS_COMPILE = toString [ 35 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 36 ]; 37
+1 -1
pkgs/development/compilers/llvm/15/compiler-rt/default.nix
··· 31 ++ lib.optional stdenv.isDarwin xcbuild.xcrun; 32 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 33 34 - NIX_CFLAGS_COMPILE = [ 35 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 36 ]; 37
··· 31 ++ lib.optional stdenv.isDarwin xcbuild.xcrun; 32 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 33 34 + env.NIX_CFLAGS_COMPILE = toString [ 35 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 36 ]; 37
+1 -1
pkgs/development/compilers/llvm/5/compiler-rt/default.nix
··· 18 nativeBuildInputs = [ cmake python3 libllvm.dev ]; 19 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 20 21 - NIX_CFLAGS_COMPILE = [ 22 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 23 ]; 24
··· 18 nativeBuildInputs = [ cmake python3 libllvm.dev ]; 19 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 20 21 + env.NIX_CFLAGS_COMPILE = toString [ 22 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 23 ]; 24
+1 -1
pkgs/development/compilers/llvm/6/compiler-rt/default.nix
··· 18 nativeBuildInputs = [ cmake python3 libllvm.dev ]; 19 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 20 21 - NIX_CFLAGS_COMPILE = [ 22 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 23 ]; 24
··· 18 nativeBuildInputs = [ cmake python3 libllvm.dev ]; 19 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 20 21 + env.NIX_CFLAGS_COMPILE = toString [ 22 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 23 ]; 24
+1 -1
pkgs/development/compilers/llvm/7/compiler-rt/default.nix
··· 19 nativeBuildInputs = [ cmake python3 libllvm.dev ]; 20 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 21 22 - NIX_CFLAGS_COMPILE = [ 23 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 24 ]; 25
··· 19 nativeBuildInputs = [ cmake python3 libllvm.dev ]; 20 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 21 22 + env.NIX_CFLAGS_COMPILE = toString [ 23 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 24 ]; 25
+1 -1
pkgs/development/compilers/llvm/7/lldb/default.nix
··· 58 CXXFLAGS = "-fno-rtti"; 59 hardeningDisable = [ "format" ]; 60 61 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-I${libxml2.dev}/include/libxml2"; 62 63 cmakeFlags = [ 64 "-DLLDB_INCLUDE_TESTS=${if doCheck then "YES" else "NO"}"
··· 58 CXXFLAGS = "-fno-rtti"; 59 hardeningDisable = [ "format" ]; 60 61 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-I${libxml2.dev}/include/libxml2"; 62 63 cmakeFlags = [ 64 "-DLLDB_INCLUDE_TESTS=${if doCheck then "YES" else "NO"}"
+1 -1
pkgs/development/compilers/llvm/8/compiler-rt/default.nix
··· 19 nativeBuildInputs = [ cmake python3 libllvm.dev ]; 20 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 21 22 - NIX_CFLAGS_COMPILE = [ 23 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 24 ]; 25
··· 19 nativeBuildInputs = [ cmake python3 libllvm.dev ]; 20 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 21 22 + env.NIX_CFLAGS_COMPILE = toString [ 23 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 24 ]; 25
+1 -1
pkgs/development/compilers/llvm/9/compiler-rt/default.nix
··· 19 nativeBuildInputs = [ cmake python3 libllvm.dev ]; 20 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 21 22 - NIX_CFLAGS_COMPILE = [ 23 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 24 ]; 25
··· 19 nativeBuildInputs = [ cmake python3 libllvm.dev ]; 20 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 21 22 + env.NIX_CFLAGS_COMPILE = toString [ 23 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 24 ]; 25
+1 -1
pkgs/development/compilers/llvm/git/compiler-rt/default.nix
··· 31 ++ lib.optional stdenv.isDarwin xcbuild.xcrun; 32 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 33 34 - NIX_CFLAGS_COMPILE = [ 35 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 36 ]; 37
··· 31 ++ lib.optional stdenv.isDarwin xcbuild.xcrun; 32 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libcxxabi; 33 34 + env.NIX_CFLAGS_COMPILE = toString [ 35 "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" 36 ]; 37
+1 -1
pkgs/development/compilers/minimacy/default.nix
··· 19 20 enableParallelBuilding = true; 21 22 - NIX_CFLAGS_COMPILE = "-Wno-unused-result"; 23 24 preBuild = '' 25 pushd ${if stdenv.isDarwin then "macos/cmdline" else "unix"}
··· 19 20 enableParallelBuilding = true; 21 22 + env.NIX_CFLAGS_COMPILE = "-Wno-unused-result"; 23 24 preBuild = '' 25 pushd ${if stdenv.isDarwin then "macos/cmdline" else "unix"}
+1 -1
pkgs/development/compilers/miranda/default.nix
··· 55 # Workaround build failure on -fno-common toolchains like upstream 56 # gcc-10. Otherwise build fails as: 57 # ld: types.o:(.bss+0x11b0): multiple definition of `current_file'; y.tab.o:(.bss+0x70): first defined here 58 - NIX_CFLAGS_COMPILE = "-fcommon"; 59 60 makeFlags = [ 61 "CC=${stdenv.cc.targetPrefix}cc"
··· 55 # Workaround build failure on -fno-common toolchains like upstream 56 # gcc-10. Otherwise build fails as: 57 # ld: types.o:(.bss+0x11b0): multiple definition of `current_file'; y.tab.o:(.bss+0x70): first defined here 58 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 59 60 makeFlags = [ 61 "CC=${stdenv.cc.targetPrefix}cc"
+1 -1
pkgs/development/compilers/mit-scheme/default.nix
··· 49 runHook postConfigure 50 ''; 51 52 - NIX_CFLAGS_COMPILE = [ 53 # Needed with GCC 12 54 "-Wno-error=array-parameter" 55 "-Wno-error=use-after-free"
··· 49 runHook postConfigure 50 ''; 51 52 + env.NIX_CFLAGS_COMPILE = toString [ 53 # Needed with GCC 12 54 "-Wno-error=array-parameter" 55 "-Wno-error=use-after-free"
+1 -1
pkgs/development/compilers/ocaml/4.00.1.nix
··· 25 # gcc-10. Otherwise build fails as: 26 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 27 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 28 - NIX_CFLAGS_COMPILE = "-fcommon"; 29 30 prefixKey = "-prefix "; 31 configureFlags = [ "-no-tk" ] ++ optionals useX11 [ "-x11lib" libX11 ];
··· 25 # gcc-10. Otherwise build fails as: 26 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 27 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 28 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 29 30 prefixKey = "-prefix "; 31 configureFlags = [ "-no-tk" ] ++ optionals useX11 [ "-x11lib" libX11 ];
+1 -1
pkgs/development/compilers/ocaml/4.01.0.nix
··· 15 # gcc-10. Otherwise build fails as: 16 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 17 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 18 - NIX_CFLAGS_COMPILE = "-fcommon"; 19 }
··· 15 # gcc-10. Otherwise build fails as: 16 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 17 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 18 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 19 }
+1 -1
pkgs/development/compilers/ocaml/4.02.nix
··· 18 # gcc-10. Otherwise build fails as: 19 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 20 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 21 - NIX_CFLAGS_COMPILE = "-fcommon"; 22 }
··· 18 # gcc-10. Otherwise build fails as: 19 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 20 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 21 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 22 }
+1 -1
pkgs/development/compilers/ocaml/4.03.nix
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 19 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 20 - NIX_CFLAGS_COMPILE = "-fcommon"; 21 }
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 19 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 20 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 21 }
+1 -1
pkgs/development/compilers/ocaml/4.04.nix
··· 20 # gcc-10. Otherwise build fails as: 21 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 22 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 23 - NIX_CFLAGS_COMPILE = "-fcommon"; 24 }
··· 20 # gcc-10. Otherwise build fails as: 21 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 22 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 23 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 24 }
+1 -1
pkgs/development/compilers/ocaml/4.05.nix
··· 20 # gcc-10. Otherwise build fails as: 21 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 22 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 23 - NIX_CFLAGS_COMPILE = "-fcommon"; 24 }
··· 20 # gcc-10. Otherwise build fails as: 21 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 22 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 23 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 24 }
+1 -1
pkgs/development/compilers/ocaml/4.06.nix
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 19 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 20 - NIX_CFLAGS_COMPILE = "-fcommon"; 21 }
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 19 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 20 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 21 }
+1 -1
pkgs/development/compilers/ocaml/4.07.nix
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 19 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 20 - NIX_CFLAGS_COMPILE = "-fcommon"; 21 }
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 19 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 20 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 21 }
+1 -1
pkgs/development/compilers/ocaml/4.08.nix
··· 20 # gcc-10. Otherwise build fails as: 21 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 22 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 23 - NIX_CFLAGS_COMPILE = "-fcommon"; 24 }
··· 20 # gcc-10. Otherwise build fails as: 21 # ld: libcamlrun.a(startup.o):(.bss+0x800): multiple definition of 22 # `caml_code_fragments_table'; libcamlrun.a(backtrace.o):(.bss+0x20): first defined here 23 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 24 }
+1 -1
pkgs/development/compilers/openjdk/11.nix
··· 72 # Workaround for 73 # `cc1plus: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]` 74 # when building jtreg 75 - NIX_CFLAGS_COMPILE = "-Wformat"; 76 77 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 78 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
··· 72 # Workaround for 73 # `cc1plus: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]` 74 # when building jtreg 75 + env.NIX_CFLAGS_COMPILE = "-Wformat"; 76 77 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 78 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
+1 -1
pkgs/development/compilers/openjdk/12.nix
··· 77 78 separateDebugInfo = true; 79 80 - NIX_CFLAGS_COMPILE = [ "-Wno-error" ]; 81 82 NIX_LDFLAGS = lib.optionals (!headless) [ 83 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
··· 77 78 separateDebugInfo = true; 79 80 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error" ]; 81 82 NIX_LDFLAGS = lib.optionals (!headless) [ 83 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
+1 -1
pkgs/development/compilers/openjdk/13.nix
··· 77 78 separateDebugInfo = true; 79 80 - NIX_CFLAGS_COMPILE = "-Wno-error"; 81 82 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 83 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
··· 77 78 separateDebugInfo = true; 79 80 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 81 82 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 83 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
+1 -1
pkgs/development/compilers/openjdk/14.nix
··· 72 73 separateDebugInfo = true; 74 75 - NIX_CFLAGS_COMPILE = "-Wno-error"; 76 77 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 78 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
··· 72 73 separateDebugInfo = true; 74 75 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 76 77 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 78 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
+1 -1
pkgs/development/compilers/openjdk/15.nix
··· 72 73 separateDebugInfo = true; 74 75 - NIX_CFLAGS_COMPILE = "-Wno-error"; 76 77 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 78 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
··· 72 73 separateDebugInfo = true; 74 75 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 76 77 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 78 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
+1 -1
pkgs/development/compilers/openjdk/16.nix
··· 79 80 separateDebugInfo = true; 81 82 - NIX_CFLAGS_COMPILE = "-Wno-error"; 83 84 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 85 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
··· 79 80 separateDebugInfo = true; 81 82 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 83 84 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 85 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
+1 -1
pkgs/development/compilers/openjdk/17.nix
··· 88 89 separateDebugInfo = true; 90 91 - NIX_CFLAGS_COMPILE = "-Wno-error"; 92 93 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 94 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
··· 88 89 separateDebugInfo = true; 90 91 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 92 93 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 94 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
+1 -1
pkgs/development/compilers/openjdk/18.nix
··· 86 87 separateDebugInfo = true; 88 89 - NIX_CFLAGS_COMPILE = "-Wno-error"; 90 91 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 92 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
··· 86 87 separateDebugInfo = true; 88 89 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 90 91 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 92 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
+1 -1
pkgs/development/compilers/openjdk/19.nix
··· 88 89 separateDebugInfo = true; 90 91 - NIX_CFLAGS_COMPILE = "-Wno-error"; 92 93 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 94 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
··· 88 89 separateDebugInfo = true; 90 91 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 92 93 NIX_LDFLAGS = toString (lib.optionals (!headless) [ 94 "-lfontconfig" "-lcups" "-lXinerama" "-lXrandr" "-lmagic"
+1 -1
pkgs/development/compilers/openjdk/8.nix
··· 78 79 separateDebugInfo = true; 80 81 - NIX_CFLAGS_COMPILE = toString ([ 82 # glibc 2.24 deprecated readdir_r so we need this 83 # See https://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg49006.html 84 "-Wno-error=deprecated-declarations"
··· 78 79 separateDebugInfo = true; 80 81 + env.NIX_CFLAGS_COMPILE = toString ([ 82 # glibc 2.24 deprecated readdir_r so we need this 83 # See https://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg49006.html 84 "-Wno-error=deprecated-declarations"
+2 -2
pkgs/development/compilers/openjdk/openjfx/15.nix
··· 31 JDK_HOME = ${openjdk11_headless.home} 32 '' + args.gradleProperties or ""); 33 34 - NIX_CFLAGS_COMPILE = [ 35 #avoids errors about deprecation of GTypeDebugFlags, GTimeVal, etc. 36 "-DGLIB_DISABLE_DEPRECATION_WARNINGS" 37 ··· 95 # -fcommon: gstreamer workaround for -fno-common toolchains: 96 # ld: gsttypefindelement.o:(.bss._gst_disable_registry_cache+0x0): multiple definition of 97 # `_gst_disable_registry_cache'; gst.o:(.bss._gst_disable_registry_cache+0x0): first defined here 98 - NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS -fcommon"; 99 100 stripDebugList = [ "." ]; 101
··· 31 JDK_HOME = ${openjdk11_headless.home} 32 '' + args.gradleProperties or ""); 33 34 + env.NIX_CFLAGS_COMPILE = toString [ 35 #avoids errors about deprecation of GTypeDebugFlags, GTimeVal, etc. 36 "-DGLIB_DISABLE_DEPRECATION_WARNINGS" 37 ··· 95 # -fcommon: gstreamer workaround for -fno-common toolchains: 96 # ld: gsttypefindelement.o:(.bss._gst_disable_registry_cache+0x0): multiple definition of 97 # `_gst_disable_registry_cache'; gst.o:(.bss._gst_disable_registry_cache+0x0): first defined here 98 + env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS -fcommon"; 99 100 stripDebugList = [ "." ]; 101
+1 -1
pkgs/development/compilers/ponyc/default.nix
··· 73 74 doCheck = true; 75 76 - NIX_CFLAGS_COMPILE = [ "-Wno-error=redundant-move" "-Wno-error=implicit-fallthrough" ]; 77 78 installPhase = "make config=release prefix=$out " 79 + lib.optionalString stdenv.isDarwin "bits=64 "
··· 73 74 doCheck = true; 75 76 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=redundant-move" "-Wno-error=implicit-fallthrough" ]; 77 78 installPhase = "make config=release prefix=$out " 79 + lib.optionalString stdenv.isDarwin "bits=64 "
+1 -1
pkgs/development/compilers/rgbds/default.nix
··· 11 }; 12 nativeBuildInputs = [ bison flex pkg-config ]; 13 buildInputs = [ libpng ]; 14 - NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-fno-lto"; 15 installFlags = [ "PREFIX=${placeholder "out"}" ]; 16 17 meta = with lib; {
··· 11 }; 12 nativeBuildInputs = [ bison flex pkg-config ]; 13 buildInputs = [ libpng ]; 14 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-fno-lto"; 15 installFlags = [ "PREFIX=${placeholder "out"}" ]; 16 17 meta = with lib; {
+2 -2
pkgs/development/compilers/sbcl/2.x.nix
··· 171 optional (!threadSupport) "sb-thread" ++ 172 optionals disableImmobileSpace [ "immobile-space" "immobile-code" "compact-instance-header" ]; 173 174 - NIX_CFLAGS_COMPILE = lib.optionals (lib.versionOlder version "2.1.10") [ 175 # Workaround build failure on -fno-common toolchains like upstream 176 # clang-13. Without the change build fails as: 177 # duplicate symbol '_static_code_space_free_pointer' in: alloc.o traceroot.o ··· 179 "-fcommon" 180 ] 181 # Fails to find `O_LARGEFILE` otherwise. 182 - ++ [ "-D_GNU_SOURCE" ]; 183 184 buildPhase = '' 185 runHook preBuild
··· 171 optional (!threadSupport) "sb-thread" ++ 172 optionals disableImmobileSpace [ "immobile-space" "immobile-code" "compact-instance-header" ]; 173 174 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (lib.versionOlder version "2.1.10") [ 175 # Workaround build failure on -fno-common toolchains like upstream 176 # clang-13. Without the change build fails as: 177 # duplicate symbol '_static_code_space_free_pointer' in: alloc.o traceroot.o ··· 179 "-fcommon" 180 ] 181 # Fails to find `O_LARGEFILE` otherwise. 182 + ++ [ "-D_GNU_SOURCE" ]); 183 184 buildPhase = '' 185 runHook preBuild
+1 -1
pkgs/development/compilers/squeak/default.nix
··· 139 # Workaround build failure on -fno-common toolchains: 140 # ld: vm/vm.a(cogit.o):spur64src/vm/cogitX64SysV.c:2552: multiple definition of 141 # `traceStores'; vm/vm.a(gcc3x-cointerp.o):spur64src/vm/cogit.h:140: first defined here 142 - NIX_CFLAGS_COMPILE = "-fcommon"; 143 144 preAutoreconf = '' 145 pushd ./platforms/unix/config > /dev/null
··· 139 # Workaround build failure on -fno-common toolchains: 140 # ld: vm/vm.a(cogit.o):spur64src/vm/cogitX64SysV.c:2552: multiple definition of 141 # `traceStores'; vm/vm.a(gcc3x-cointerp.o):spur64src/vm/cogit.h:140: first defined here 142 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 143 144 preAutoreconf = '' 145 pushd ./platforms/unix/config > /dev/null
+1 -1
pkgs/development/compilers/teyjus/default.nix
··· 26 27 hardeningDisable = [ "format" ]; 28 29 - NIX_CFLAGS_COMPILE = "-I${ocaml}/include"; 30 31 buildPhase = "omake all"; 32
··· 26 27 hardeningDisable = [ "format" ]; 28 29 + env.NIX_CFLAGS_COMPILE = "-I${ocaml}/include"; 30 31 buildPhase = "omake all"; 32
+1 -1
pkgs/development/compilers/urweb/default.nix
··· 33 -L${sqlite.out}/lib"; 34 ''; 35 36 - NIX_CFLAGS_COMPILE = [ 37 # Needed with GCC 12 38 "-Wno-error=use-after-free" 39 ];
··· 33 -L${sqlite.out}/lib"; 34 ''; 35 36 + env.NIX_CFLAGS_COMPILE = toString [ 37 # Needed with GCC 12 38 "-Wno-error=use-after-free" 39 ];
+1 -1
pkgs/development/compilers/yap/default.nix
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: libYap.a(pl-dtoa.o):/build/yap-6.3.3/H/pl-yap.h:230: multiple definition of `ATOM_'; 19 # libYap.a(pl-buffer.o):/build/yap-6.3.3/H/pl-yap.h:230: first defined here 20 - NIX_CFLAGS_COMPILE = "-fpermissive -fcommon"; 21 22 meta = { 23 # the linux 32 bit build fails.
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: libYap.a(pl-dtoa.o):/build/yap-6.3.3/H/pl-yap.h:230: multiple definition of `ATOM_'; 19 # libYap.a(pl-buffer.o):/build/yap-6.3.3/H/pl-yap.h:230: first defined here 20 + env.NIX_CFLAGS_COMPILE = "-fpermissive -fcommon"; 21 22 meta = { 23 # the linux 32 bit build fails.
+1 -1
pkgs/development/compilers/z88dk/default.nix
··· 30 doCheck = stdenv.hostPlatform.system != "aarch64-linux"; 31 32 #_FORTIFY_SOURCE requires compiling with optimization (-O) 33 - NIX_CFLAGS_COMPILE = "-O"; 34 35 short_rev = builtins.substring 0 7 src.rev; 36 makeFlags = [
··· 30 doCheck = stdenv.hostPlatform.system != "aarch64-linux"; 31 32 #_FORTIFY_SOURCE requires compiling with optimization (-O) 33 + env.NIX_CFLAGS_COMPILE = "-O"; 34 35 short_rev = builtins.substring 0 7 src.rev; 36 makeFlags = [
+1 -1
pkgs/development/embedded/bossa/default.nix
··· 29 30 # Explicitly specify targets so they don't get stripped. 31 makeFlags = [ "bin/bossac" "bin/bossash" "bin/bossa" ]; 32 - NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 33 34 installPhase = '' 35 mkdir -p $out/bin
··· 29 30 # Explicitly specify targets so they don't get stripped. 31 makeFlags = [ "bin/bossac" "bin/bossash" "bin/bossa" ]; 32 + env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 33 34 installPhase = '' 35 mkdir -p $out/bin
+2 -2
pkgs/development/embedded/openocd/default.nix
··· 36 "--enable-remote-bitbang" 37 ]; 38 39 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ 40 "-Wno-error=cpp" 41 "-Wno-error=strict-prototypes" # fixes build failure with hidapi 0.10.0 42 - ]; 43 44 postInstall = lib.optionalString stdenv.isLinux '' 45 mkdir -p "$out/etc/udev/rules.d"
··· 36 "--enable-remote-bitbang" 37 ]; 38 39 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ 40 "-Wno-error=cpp" 41 "-Wno-error=strict-prototypes" # fixes build failure with hidapi 0.10.0 42 + ]); 43 44 postInstall = lib.optionalString stdenv.isLinux '' 45 mkdir -p "$out/etc/udev/rules.d"
+1 -1
pkgs/development/embedded/stm8/stm8flash/default.nix
··· 15 enableParallelBuilding = true; 16 17 # NOTE: _FORTIFY_SOURCE requires compiling with optimization (-O) 18 - NIX_CFLAGS_COMPILE = "-O"; 19 20 preBuild = '' 21 export DESTDIR=$out;
··· 15 enableParallelBuilding = true; 16 17 # NOTE: _FORTIFY_SOURCE requires compiling with optimization (-O) 18 + env.NIX_CFLAGS_COMPILE = "-O"; 19 20 preBuild = '' 21 export DESTDIR=$out;
+1 -1
pkgs/development/embedded/uisp/default.nix
··· 9 sha256 = "1bncxp5yxh9r1yrp04vvhfiva8livi1pwic7v8xj99q09zrwahvw"; 10 }; 11 12 - NIX_CFLAGS_COMPILE = "-Wno-error"; 13 14 meta = { 15 description = "Tool for AVR microcontrollers which can interface to many hardware in-system programmers";
··· 9 sha256 = "1bncxp5yxh9r1yrp04vvhfiva8livi1pwic7v8xj99q09zrwahvw"; 10 }; 11 12 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 13 14 meta = { 15 description = "Tool for AVR microcontrollers which can interface to many hardware in-system programmers";
+1 -1
pkgs/development/interpreters/clisp/default.nix
··· 91 (''./clisp-link add "$out"/lib/clisp*/base "$(dirname "$out"/lib/clisp*/base)"/full'' 92 + lib.concatMapStrings (x: " " + x) withModules); 93 94 - NIX_CFLAGS_COMPILE = "-O0 ${lib.optionalString (!stdenv.is64bit) "-falign-functions=4"}"; 95 96 # TODO : make mod-check fails 97 doCheck = false;
··· 91 (''./clisp-link add "$out"/lib/clisp*/base "$(dirname "$out"/lib/clisp*/base)"/full'' 92 + lib.concatMapStrings (x: " " + x) withModules); 93 94 + env.NIX_CFLAGS_COMPILE = "-O0 ${lib.optionalString (!stdenv.is64bit) "-falign-functions=4"}"; 95 96 # TODO : make mod-check fails 97 doCheck = false;
+1 -1
pkgs/development/interpreters/clisp/hg.nix
··· 83 (''./clisp-link add "$out"/lib/clisp*/base "$(dirname "$out"/lib/clisp*/base)"/full'' 84 + lib.concatMapStrings (x: " " + x) withModules); 85 86 - NIX_CFLAGS_COMPILE = "-O0 ${lib.optionalString (!stdenv.is64bit) "-falign-functions=4"}"; 87 88 # TODO : make mod-check fails 89 doCheck = false;
··· 83 (''./clisp-link add "$out"/lib/clisp*/base "$(dirname "$out"/lib/clisp*/base)"/full'' 84 + lib.concatMapStrings (x: " " + x) withModules); 85 86 + env.NIX_CFLAGS_COMPILE = "-O0 ${lib.optionalString (!stdenv.is64bit) "-falign-functions=4"}"; 87 88 # TODO : make mod-check fails 89 doCheck = false;
+1 -1
pkgs/development/interpreters/falcon/default.nix
··· 13 14 # -Wnarrowing is enabled by default in recent GCC versions, 15 # causing compilation to fail. 16 - NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 17 18 nativeBuildInputs = [ cmake pkg-config ]; 19 buildInputs = [ pcre zlib sqlite ];
··· 13 14 # -Wnarrowing is enabled by default in recent GCC versions, 15 # causing compilation to fail. 16 + env.NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 17 18 nativeBuildInputs = [ cmake pkg-config ]; 19 buildInputs = [ pcre zlib sqlite ];
+1 -1
pkgs/development/interpreters/gnu-apl/default.nix
··· 11 12 buildInputs = [ readline gettext ncurses ]; 13 14 - NIX_CFLAGS_COMPILE = with lib; toString ((optionals stdenv.cc.isGNU [ 15 # Needed with GCC 8 16 "-Wno-error=int-in-bool-context" 17 "-Wno-error=class-memaccess"
··· 11 12 buildInputs = [ readline gettext ncurses ]; 13 14 + env.NIX_CFLAGS_COMPILE = with lib; toString ((optionals stdenv.cc.isGNU [ 15 # Needed with GCC 8 16 "-Wno-error=int-in-bool-context" 17 "-Wno-error=class-memaccess"
+1 -1
pkgs/development/interpreters/io/default.nix
··· 56 ''; 57 58 # for gcc5; c11 inline semantics breaks the build 59 - NIX_CFLAGS_COMPILE = "-fgnu89-inline"; 60 61 meta = with lib; { 62 description = "Io programming language";
··· 56 ''; 57 58 # for gcc5; c11 inline semantics breaks the build 59 + env.NIX_CFLAGS_COMPILE = "-fgnu89-inline"; 60 61 meta = with lib; { 62 description = "Io programming language";
+1 -1
pkgs/development/interpreters/kerf/default.nix
··· 30 makeFlags = [ "kerf" "kerf_test" ]; 31 32 # avoid a huge amount of warnings to make failures clearer 33 - NIX_CFLAGS_COMPILE = map (x: "-Wno-${x}") [ 34 "void-pointer-to-int-cast" 35 "format" 36 "implicit-function-declaration"
··· 30 makeFlags = [ "kerf" "kerf_test" ]; 31 32 # avoid a huge amount of warnings to make failures clearer 33 + env.NIX_CFLAGS_COMPILE = map (x: "-Wno-${x}") [ 34 "void-pointer-to-int-cast" 35 "format" 36 "implicit-function-declaration"
+1 -1
pkgs/development/interpreters/love/0.10.nix
··· 27 "--with-lua=luajit" 28 ]; 29 30 - NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3 31 32 meta = { 33 homepage = "https://love2d.org";
··· 27 "--with-lua=luajit" 28 ]; 29 30 + env.NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3 31 32 meta = { 33 homepage = "https://love2d.org";
+1 -1
pkgs/development/interpreters/love/11.nix
··· 27 "--with-lua=luajit" 28 ]; 29 30 - NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3 31 32 meta = { 33 homepage = "https://love2d.org";
··· 27 "--with-lua=luajit" 28 ]; 29 30 + env.NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3 31 32 meta = { 33 homepage = "https://love2d.org";
+1 -1
pkgs/development/interpreters/luajit/default.nix
··· 100 "HOST_CC=${buildStdenv.cc}/bin/cc" 101 ] ++ lib.optional enableJITDebugModule "INSTALL_LJLIBD=$(INSTALL_LMOD)"; 102 enableParallelBuilding = true; 103 - NIX_CFLAGS_COMPILE = XCFLAGS; 104 105 postInstall = '' 106 ( cd "$out/include"; ln -s luajit-*/* . )
··· 100 "HOST_CC=${buildStdenv.cc}/bin/cc" 101 ] ++ lib.optional enableJITDebugModule "INSTALL_LJLIBD=$(INSTALL_LMOD)"; 102 enableParallelBuilding = true; 103 + env.NIX_CFLAGS_COMPILE = toString XCFLAGS; 104 105 postInstall = '' 106 ( cd "$out/include"; ln -s luajit-*/* . )
+1 -1
pkgs/development/interpreters/python/cpython/2.7/default.nix
··· 256 LDFLAGS = lib.optionalString (!stdenv.isDarwin) "-lgcc_s"; 257 inherit (mkPaths buildInputs) C_INCLUDE_PATH LIBRARY_PATH; 258 259 - NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.targetPlatform.system == "x86_64-darwin") "-msse2" 260 + lib.optionalString stdenv.hostPlatform.isMusl " -DTHREAD_STACK_SIZE=0x100000"; 261 DETERMINISTIC_BUILD = 1; 262
··· 256 LDFLAGS = lib.optionalString (!stdenv.isDarwin) "-lgcc_s"; 257 inherit (mkPaths buildInputs) C_INCLUDE_PATH LIBRARY_PATH; 258 259 + env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.targetPlatform.system == "x86_64-darwin") "-msse2" 260 + lib.optionalString stdenv.hostPlatform.isMusl " -DTHREAD_STACK_SIZE=0x100000"; 261 DETERMINISTIC_BUILD = 1; 262
+1 -1
pkgs/development/interpreters/renpy/default.nix
··· 77 runHook postInstall 78 ''; 79 80 - NIX_CFLAGS_COMPILE = with python3.pkgs; "-I${pygame_sdl2}/include/${python.libPrefix}"; 81 82 meta = with lib; { 83 description = "Visual Novel Engine";
··· 77 runHook postInstall 78 ''; 79 80 + env.NIX_CFLAGS_COMPILE = with python3.pkgs; "-I${pygame_sdl2}/include/${python.libPrefix}"; 81 82 meta = with lib; { 83 description = "Visual Novel Engine";
+1 -1
pkgs/development/interpreters/spidermonkey/common.nix
··· 134 135 # cc-rs insists on using -mabi=lp64 (soft-float) for riscv64, 136 # while we have a double-float toolchain 137 - NIX_CFLAGS_COMPILE = lib.optionalString (with stdenv.hostPlatform; isRiscV && is64bit && lib.versionOlder version "91") "-mabi=lp64d"; 138 139 # https://github.com/NixOS/nixpkgs/issues/201254 140 NIX_LDFLAGS = if (with stdenv; isAarch64 && isLinux) then [ "-lgcc" ] else null;
··· 134 135 # cc-rs insists on using -mabi=lp64 (soft-float) for riscv64, 136 # while we have a double-float toolchain 137 + env.NIX_CFLAGS_COMPILE = lib.optionalString (with stdenv.hostPlatform; isRiscV && is64bit && lib.versionOlder version "91") "-mabi=lp64d"; 138 139 # https://github.com/NixOS/nixpkgs/issues/201254 140 NIX_LDFLAGS = if (with stdenv; isAarch64 && isLinux) then [ "-lgcc" ] else null;
+1 -1
pkgs/development/interpreters/unicon-lang/default.nix
··· 19 # ld: ../common/ipp.o:(.bss+0x0): multiple definition of `lpath'; tglobals.o:(.bss+0x30): first defined here 20 # TODO: remove the workaround once upstream releases version past: 21 # https://sourceforge.net/p/unicon/unicon/ci/b1a65230233f3825d055aee913b4fdcf178a0eaf/ 22 - NIX_CFLAGS_COMPILE = "-fcommon"; 23 24 configurePhase = '' 25 case "$(uname -a | sed 's/ /_/g')" in
··· 19 # ld: ../common/ipp.o:(.bss+0x0): multiple definition of `lpath'; tglobals.o:(.bss+0x30): first defined here 20 # TODO: remove the workaround once upstream releases version past: 21 # https://sourceforge.net/p/unicon/unicon/ci/b1a65230233f3825d055aee913b4fdcf178a0eaf/ 22 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 23 24 configurePhase = '' 25 case "$(uname -a | sed 's/ /_/g')" in
+1 -1
pkgs/development/java-modules/jogl/default.nix
··· 35 # Workaround build failure on -fno-common toolchains: 36 # ld: ../obj/Bindingtest1p1Impl_JNI.o:(.bss+0x8): multiple definition of 37 # `unsigned_size_t_1'; ../obj/TK_Surface_JNI.o:(.bss+0x8): first defined here 38 - NIX_CFLAGS_COMPILE = "-fcommon"; 39 40 buildPhase = '' 41 cp -r ${gluegen-src} $NIX_BUILD_TOP/gluegen
··· 35 # Workaround build failure on -fno-common toolchains: 36 # ld: ../obj/Bindingtest1p1Impl_JNI.o:(.bss+0x8): multiple definition of 37 # `unsigned_size_t_1'; ../obj/TK_Surface_JNI.o:(.bss+0x8): first defined here 38 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 39 40 buildPhase = '' 41 cp -r ${gluegen-src} $NIX_BUILD_TOP/gluegen
+1 -1
pkgs/development/libraries/ace/default.nix
··· 14 nativeBuildInputs = [ pkg-config libtool ]; 15 buildInputs = [ perl ]; 16 17 - NIX_CFLAGS_COMPILE = [ 18 "-Wno-error=format-security" 19 ]; 20
··· 14 nativeBuildInputs = [ pkg-config libtool ]; 15 buildInputs = [ perl ]; 16 17 + env.NIX_CFLAGS_COMPILE = toString [ 18 "-Wno-error=format-security" 19 ]; 20
+1 -1
pkgs/development/libraries/assimp/default.nix
··· 23 24 cmakeFlags = [ "-DASSIMP_BUILD_ASSIMP_TOOLS=ON" ]; 25 26 - NIX_CFLAGS_COMPILE = [ 27 # Needed with GCC 12 28 "-Wno-error=array-bounds" 29 ];
··· 23 24 cmakeFlags = [ "-DASSIMP_BUILD_ASSIMP_TOOLS=ON" ]; 25 26 + env.NIX_CFLAGS_COMPILE = toString [ 27 # Needed with GCC 12 28 "-Wno-error=array-bounds" 29 ];
+1 -1
pkgs/development/libraries/audio/qm-dsp/default.nix
··· 41 "LIBDIR=${placeholder "out"}/lib" 42 ]; 43 44 - NIX_CFLAGS_COMPILE = "-I${kissfft}/include/kissfft"; 45 46 meta = with lib; { 47 description = "A C++ library of functions for DSP and Music Informatics purposes";
··· 41 "LIBDIR=${placeholder "out"}/lib" 42 ]; 43 44 + env.NIX_CFLAGS_COMPILE = "-I${kissfft}/include/kissfft"; 45 46 meta = with lib; { 47 description = "A C++ library of functions for DSP and Music Informatics purposes";
+1 -1
pkgs/development/libraries/aws-sdk-cpp/default.nix
··· 105 ] ++ lib.optional (apis != ["*"]) 106 "-DBUILD_ONLY=${lib.concatStringsSep ";" apis}"; 107 108 - NIX_CFLAGS_COMPILE = [ 109 # openssl 3 generates several deprecation warnings 110 "-Wno-error=deprecated-declarations" 111 ];
··· 105 ] ++ lib.optional (apis != ["*"]) 106 "-DBUILD_ONLY=${lib.concatStringsSep ";" apis}"; 107 108 + env.NIX_CFLAGS_COMPILE = toString [ 109 # openssl 3 generates several deprecation warnings 110 "-Wno-error=deprecated-declarations" 111 ];
+1 -1
pkgs/development/libraries/bamf/default.nix
··· 76 doCheck = false; 77 78 # Ignore deprecation errors 79 - NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 80 81 passthru.updateScript = gitUpdater { 82 ignoredVersions = ".ubuntu.*";
··· 76 doCheck = false; 77 78 # Ignore deprecation errors 79 + env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 80 81 passthru.updateScript = gitUpdater { 82 ignoredVersions = ".ubuntu.*";
+2 -2
pkgs/development/libraries/belle-sip/default.nix
··· 29 # Do not build static libraries 30 cmakeFlags = [ "-DENABLE_STATIC=NO" ]; 31 32 - NIX_CFLAGS_COMPILE = [ 33 "-Wno-error=cast-function-type" 34 "-Wno-error=deprecated-declarations" 35 "-Wno-error=format-truncation" ··· 37 ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 38 # Needed with GCC 12 but problematic with some old GCCs and probably clang 39 "-Wno-error=use-after-free" 40 - ]; 41 42 propagatedBuildInputs = [ libantlr3c mbedtls_2 bctoolbox belr ]; 43
··· 29 # Do not build static libraries 30 cmakeFlags = [ "-DENABLE_STATIC=NO" ]; 31 32 + env.NIX_CFLAGS_COMPILE = toString ([ 33 "-Wno-error=cast-function-type" 34 "-Wno-error=deprecated-declarations" 35 "-Wno-error=format-truncation" ··· 37 ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 38 # Needed with GCC 12 but problematic with some old GCCs and probably clang 39 "-Wno-error=use-after-free" 40 + ]); 41 42 propagatedBuildInputs = [ libantlr3c mbedtls_2 bctoolbox belr ]; 43
+2 -2
pkgs/development/libraries/boringssl/default.nix
··· 30 export GOARCH=$(go env GOHOSTARCH) 31 ''; 32 33 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ 34 # Needed with GCC 12 but breaks on darwin (with clang) 35 "-Wno-error=stringop-overflow" 36 - ]; 37 38 buildPhase = '' 39 ninjaBuildPhase
··· 30 export GOARCH=$(go env GOHOSTARCH) 31 ''; 32 33 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ 34 # Needed with GCC 12 but breaks on darwin (with clang) 35 "-Wno-error=stringop-overflow" 36 + ]); 37 38 buildPhase = '' 39 ninjaBuildPhase
+1 -1
pkgs/development/libraries/bullet/default.nix
··· 47 "-DBUILD_BULLET_ROBOTICS_GUI_EXTRA=OFF" 48 ]; 49 50 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang 51 "-Wno-error=argument-outside-range -Wno-error=c++11-narrowing"; 52 53 meta = with lib; {
··· 47 "-DBUILD_BULLET_ROBOTICS_GUI_EXTRA=OFF" 48 ]; 49 50 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang 51 "-Wno-error=argument-outside-range -Wno-error=c++11-narrowing"; 52 53 meta = with lib; {
+1 -1
pkgs/development/libraries/bzrtp/default.nix
··· 25 # Do not build static libraries 26 cmakeFlags = [ "-DENABLE_STATIC=NO" "-DCMAKE_C_FLAGS=-Wno-error=cast-function-type" ]; 27 28 - NIX_CFLAGS_COMPILE = [ 29 # Needed with GCC 12 30 "-Wno-error=stringop-overflow" 31 ];
··· 25 # Do not build static libraries 26 cmakeFlags = [ "-DENABLE_STATIC=NO" "-DCMAKE_C_FLAGS=-Wno-error=cast-function-type" ]; 27 28 + env.NIX_CFLAGS_COMPILE = toString [ 29 # Needed with GCC 12 30 "-Wno-error=stringop-overflow" 31 ];
+1 -1
pkgs/development/libraries/classads/default.nix
··· 18 ]; 19 20 # error: use of undeclared identifier 'finite'; did you mean 'isfinite'? 21 - NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-Dfinite=isfinite"; 22 23 meta = { 24 homepage = "http://www.cs.wisc.edu/condor/classad/";
··· 18 ]; 19 20 # error: use of undeclared identifier 'finite'; did you mean 'isfinite'? 21 + env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-Dfinite=isfinite"; 22 23 meta = { 24 homepage = "http://www.cs.wisc.edu/condor/classad/";
+1 -1
pkgs/development/libraries/clucene-core/2.x.nix
··· 47 # /build/clucene-core-2.3.3.4/build/bin/cl_test" 48 doCheck = false; 49 50 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing"; 51 52 meta = with lib; { 53 description = "Core library for full-featured text search engine";
··· 47 # /build/clucene-core-2.3.3.4/build/bin/cl_test" 48 doCheck = false; 49 50 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing"; 51 52 meta = with lib; { 53 description = "Core library for full-featured text search engine";
+1 -1
pkgs/development/libraries/clucene-core/default.nix
··· 11 12 patches = [ ./gcc6.patch ]; 13 14 - NIX_CFLAGS_COMPILE = [ 15 "-std=c++11" 16 ]; 17
··· 11 12 patches = [ ./gcc6.patch ]; 13 14 + env.NIX_CFLAGS_COMPILE = toString [ 15 "-std=c++11" 16 ]; 17
+1 -1
pkgs/development/libraries/cpp-hocon/default.nix
··· 15 sed -i -e '/add_subdirectory(tests)/d' lib/CMakeLists.txt 16 ''; 17 18 - NIX_CFLAGS_COMPILE = "-Wno-error"; 19 20 nativeBuildInputs = [ cmake ]; 21
··· 15 sed -i -e '/add_subdirectory(tests)/d' lib/CMakeLists.txt 16 ''; 17 18 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 19 20 nativeBuildInputs = [ cmake ]; 21
+1 -1
pkgs/development/libraries/cpp-ipfs-http-client/default.nix
··· 22 buildInputs = [ curl ]; 23 propagatedBuildInputs = [ nlohmann_json ]; 24 25 - NIX_CFLAGS_COMPILE = [ 26 "-Wno-error=range-loop-construct" 27 # Needed with GCC 12 28 "-Wno-error=deprecated-declarations"
··· 22 buildInputs = [ curl ]; 23 propagatedBuildInputs = [ nlohmann_json ]; 24 25 + env.NIX_CFLAGS_COMPILE = toString [ 26 "-Wno-error=range-loop-construct" 27 # Needed with GCC 12 28 "-Wno-error=deprecated-declarations"
+1 -1
pkgs/development/libraries/cppdb/default.nix
··· 13 buildInputs = [ sqlite libmysqlclient postgresql unixODBC ]; 14 15 cmakeFlags = [ "--no-warn-unused-cli" ]; 16 - NIX_CFLAGS_COMPILE = "-I${libmysqlclient}/include/mysql -L${libmysqlclient}/lib/mysql"; 17 18 meta = with lib; { 19 homepage = "http://cppcms.com/sql/cppdb/";
··· 13 buildInputs = [ sqlite libmysqlclient postgresql unixODBC ]; 14 15 cmakeFlags = [ "--no-warn-unused-cli" ]; 16 + env.NIX_CFLAGS_COMPILE = "-I${libmysqlclient}/include/mysql -L${libmysqlclient}/lib/mysql"; 17 18 meta = with lib; { 19 homepage = "http://cppcms.com/sql/cppdb/";
+1 -1
pkgs/development/libraries/crc32c/default.nix
··· 21 nativeBuildInputs = [ cmake ]; 22 buildInputs = [ gflags ]; 23 24 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isAarch64 "-march=armv8-a+crc"; 25 26 cmakeFlags = [ 27 "-DCRC32C_INSTALL=1"
··· 21 nativeBuildInputs = [ cmake ]; 22 buildInputs = [ gflags ]; 23 24 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isAarch64 "-march=armv8-a+crc"; 25 26 cmakeFlags = [ 27 "-DCRC32C_INSTALL=1"
+1 -1
pkgs/development/libraries/easyloggingpp/default.nix
··· 15 nativeBuildInputs = [cmake]; 16 buildInputs = [gtest]; 17 cmakeFlags = [ "-Dtest=ON" ]; 18 - NIX_CFLAGS_COMPILE = "-std=c++11" + 19 lib.optionalString stdenv.isLinux " -pthread"; 20 postInstall = '' 21 mkdir -p $out/include
··· 15 nativeBuildInputs = [cmake]; 16 buildInputs = [gtest]; 17 cmakeFlags = [ "-Dtest=ON" ]; 18 + env.NIX_CFLAGS_COMPILE = "-std=c++11" + 19 lib.optionalString stdenv.isLinux " -pthread"; 20 postInstall = '' 21 mkdir -p $out/include
+1 -1
pkgs/development/libraries/ffms/default.nix
··· 18 sha256 = "sha256-3bPxt911T0bGpAIS2RxBjo+VV84xW06eKcCj3ZAcmvw="; 19 }; 20 21 - NIX_CFLAGS_COMPILE = "-fPIC"; 22 23 nativeBuildInputs = [ 24 autoreconfHook
··· 18 sha256 = "sha256-3bPxt911T0bGpAIS2RxBjo+VV84xW06eKcCj3ZAcmvw="; 19 }; 20 21 + env.NIX_CFLAGS_COMPILE = "-fPIC"; 22 23 nativeBuildInputs = [ 24 autoreconfHook
+1 -1
pkgs/development/libraries/flatcc/default.nix
··· 21 "-DCMAKE_BUILD_TYPE=Release" 22 ]; 23 24 - NIX_CFLAGS_COMPILE = [ 25 "-Wno-error=misleading-indentation" 26 "-Wno-error=stringop-overflow" 27 ];
··· 21 "-DCMAKE_BUILD_TYPE=Release" 22 ]; 23 24 + env.NIX_CFLAGS_COMPILE = toString [ 25 "-Wno-error=misleading-indentation" 26 "-Wno-error=stringop-overflow" 27 ];
+1 -1
pkgs/development/libraries/folly/default.nix
··· 57 # jemalloc headers are required in include/folly/portability/Malloc.h 58 propagatedBuildInputs = lib.optional stdenv.isLinux jemalloc; 59 60 - NIX_CFLAGS_COMPILE = [ "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" "-fpermissive" ]; 61 cmakeFlags = [ 62 "-DBUILD_SHARED_LIBS=ON" 63
··· 57 # jemalloc headers are required in include/folly/portability/Malloc.h 58 propagatedBuildInputs = lib.optional stdenv.isLinux jemalloc; 59 60 + env.NIX_CFLAGS_COMPILE = toString [ "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" "-fpermissive" ]; 61 cmakeFlags = [ 62 "-DBUILD_SHARED_LIBS=ON" 63
+1 -1
pkgs/development/libraries/gegl/default.nix
··· 115 116 # TODO: Fix missing math symbols in gegl seamless clone. 117 # It only appears when we use packaged poly2tri-c instead of vendored one. 118 - NIX_CFLAGS_COMPILE = "-lm"; 119 120 postPatch = '' 121 chmod +x tests/opencl/opencl_test.sh
··· 115 116 # TODO: Fix missing math symbols in gegl seamless clone. 117 # It only appears when we use packaged poly2tri-c instead of vendored one. 118 + env.NIX_CFLAGS_COMPILE = "-lm"; 119 120 postPatch = '' 121 chmod +x tests/opencl/opencl_test.sh
+1 -1
pkgs/development/libraries/geis/default.nix
··· 25 sha256 = "1svhbjibm448ybq6gnjjzj0ak42srhihssafj0w402aj71lgaq4a"; 26 }; 27 28 - NIX_CFLAGS_COMPILE = "-Wno-error=misleading-indentation -Wno-error=pointer-compare"; 29 30 hardeningDisable = [ "format" ]; 31
··· 25 sha256 = "1svhbjibm448ybq6gnjjzj0ak42srhihssafj0w402aj71lgaq4a"; 26 }; 27 28 + env.NIX_CFLAGS_COMPILE = "-Wno-error=misleading-indentation -Wno-error=pointer-compare"; 29 30 hardeningDisable = [ "format" ]; 31
+1 -1
pkgs/development/libraries/glib/default.nix
··· 194 "-Dxattr=false" 195 ]; 196 197 - NIX_CFLAGS_COMPILE = toString [ 198 "-Wno-error=nonnull" 199 # Default for release buildtype but passed manually because 200 # we're using plain
··· 194 "-Dxattr=false" 195 ]; 196 197 + env.NIX_CFLAGS_COMPILE = toString [ 198 "-Wno-error=nonnull" 199 # Default for release buildtype but passed manually because 200 # we're using plain
+15 -13
pkgs/development/libraries/glibc/default.nix
··· 50 # invocation does not work. 51 hardeningDisable = [ "fortify" "pie" "stackprotector" ]; 52 53 - NIX_CFLAGS_COMPILE = lib.concatStringsSep " " 54 - (builtins.concatLists [ 55 - (lib.optionals withGd gdCflags) 56 - # Fix -Werror build failure when building glibc with musl with GCC >= 8, see: 57 - # https://github.com/NixOS/nixpkgs/pull/68244#issuecomment-544307798 58 - (lib.optional stdenv.hostPlatform.isMusl "-Wno-error=attribute-alias") 59 - (lib.optionals ((stdenv.hostPlatform != stdenv.buildPlatform) || stdenv.hostPlatform.isMusl) [ 60 - # Ignore "error: '__EI___errno_location' specifies less restrictive attributes than its target '__errno_location'" 61 - # New warning as of GCC 9 62 - # Same for musl: https://github.com/NixOS/nixpkgs/issues/78805 63 - "-Wno-error=missing-attributes" 64 - ]) 65 - ]); 66 67 # When building glibc from bootstrap-tools, we need libgcc_s at RPATH for 68 # any program we run, because the gcc will have been placed at a new
··· 50 # invocation does not work. 51 hardeningDisable = [ "fortify" "pie" "stackprotector" ]; 52 53 + env = (previousAttrs.env or { }) // { 54 + NIX_CFLAGS_COMPILE = (previousAttrs.env.NIX_CFLAGS_COMPILE or "") + lib.concatStringsSep " " 55 + (builtins.concatLists [ 56 + (lib.optionals withGd gdCflags) 57 + # Fix -Werror build failure when building glibc with musl with GCC >= 8, see: 58 + # https://github.com/NixOS/nixpkgs/pull/68244#issuecomment-544307798 59 + (lib.optional stdenv.hostPlatform.isMusl "-Wno-error=attribute-alias") 60 + (lib.optionals ((stdenv.hostPlatform != stdenv.buildPlatform) || stdenv.hostPlatform.isMusl) [ 61 + # Ignore "error: '__EI___errno_location' specifies less restrictive attributes than its target '__errno_location'" 62 + # New warning as of GCC 9 63 + # Same for musl: https://github.com/NixOS/nixpkgs/issues/78805 64 + "-Wno-error=missing-attributes" 65 + ]) 66 + ]); 67 + }; 68 69 # When building glibc from bootstrap-tools, we need libgcc_s at RPATH for 70 # any program we run, because the gcc will have been placed at a new
+1 -1
pkgs/development/libraries/glm/default.nix
··· 28 29 nativeBuildInputs = [ cmake ]; 30 31 - NIX_CFLAGS_COMPILE = 32 lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [ 33 "-fno-ipa-modref" # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102823 34 ];
··· 28 29 nativeBuildInputs = [ cmake ]; 30 31 + env.NIX_CFLAGS_COMPILE = 32 lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [ 33 "-fno-ipa-modref" # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102823 34 ];
+1 -1
pkgs/development/libraries/gnome-online-accounts/default.nix
··· 85 webkitgtk_4_1 86 ]; 87 88 - NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 89 90 separateDebugInfo = true; 91
··· 85 webkitgtk_4_1 86 ]; 87 88 + env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; 89 90 separateDebugInfo = true; 91
+1 -1
pkgs/development/libraries/gperftools/default.nix
··· 40 substituteInPlace Makefile.am --replace stdc++ c++ 41 ''; 42 43 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin 44 "-D_XOPEN_SOURCE"; 45 46 # some packages want to link to the static tcmalloc_minimal
··· 40 substituteInPlace Makefile.am --replace stdc++ c++ 41 ''; 42 43 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin 44 "-D_XOPEN_SOURCE"; 45 46 # some packages want to link to the static tcmalloc_minimal
+1 -1
pkgs/development/libraries/gpgme/default.nix
··· 104 # fit in the limit. https://github.com/NixOS/nix/pull/1085 105 ++ lib.optionals stdenv.isDarwin [ "--disable-gpg-test" ]; 106 107 - NIX_CFLAGS_COMPILE = toString ( 108 # qgpgme uses Q_ASSERT which retains build inputs at runtime unless 109 # debugging is disabled 110 lib.optional (qtbase != null) "-DQT_NO_DEBUG"
··· 104 # fit in the limit. https://github.com/NixOS/nix/pull/1085 105 ++ lib.optionals stdenv.isDarwin [ "--disable-gpg-test" ]; 106 107 + env.NIX_CFLAGS_COMPILE = toString ( 108 # qgpgme uses Q_ASSERT which retains build inputs at runtime unless 109 # debugging is disabled 110 lib.optional (qtbase != null) "-DQT_NO_DEBUG"
+1 -1
pkgs/development/libraries/grpc/default.nix
··· 82 export LD_LIBRARY_PATH=$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH 83 ''; 84 85 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=unknown-warning-option" 86 + lib.optionalString stdenv.isAarch64 "-Wno-error=format-security"; 87 88 enableParallelBuilds = true;
··· 82 export LD_LIBRARY_PATH=$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH 83 ''; 84 85 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=unknown-warning-option" 86 + lib.optionalString stdenv.isAarch64 "-Wno-error=format-security"; 87 88 enableParallelBuilds = true;
+1 -1
pkgs/development/libraries/gsl/default.nix
··· 20 ''; 21 22 # do not let -march=skylake to enable FMA (https://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html) 23 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isx86_64 "-mno-fma"; 24 25 # https://lists.gnu.org/archive/html/bug-gsl/2015-11/msg00012.html 26 doCheck = stdenv.hostPlatform.system != "i686-linux";
··· 20 ''; 21 22 # do not let -march=skylake to enable FMA (https://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html) 23 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isx86_64 "-mno-fma"; 24 25 # https://lists.gnu.org/archive/html/bug-gsl/2015-11/msg00012.html 26 doCheck = stdenv.hostPlatform.system != "i686-linux";
+1 -1
pkgs/development/libraries/gsmlib/default.nix
··· 12 13 nativeBuildInputs = [ autoreconfHook ]; 14 15 - NIX_CFLAGS_COMPILE = [ 16 # Needed with GCC 12 17 "-std=c++14" 18 ];
··· 12 13 nativeBuildInputs = [ autoreconfHook ]; 14 15 + env.NIX_CFLAGS_COMPILE = toString [ 16 # Needed with GCC 12 17 "-std=c++14" 18 ];
+2 -2
pkgs/development/libraries/gtk-frdp/default.nix
··· 44 }; 45 }; 46 47 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ 48 "-DTARGET_OS_IPHONE=0" 49 "-DTARGET_OS_WATCH=0" 50 - ]; 51 52 meta = with lib; { 53 homepage = "https://gitlab.gnome.org/GNOME/gtk-frdp";
··· 44 }; 45 }; 46 47 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ 48 "-DTARGET_OS_IPHONE=0" 49 "-DTARGET_OS_WATCH=0" 50 + ]); 51 52 meta = with lib; { 53 homepage = "https://gitlab.gnome.org/GNOME/gtk-frdp";
+1 -1
pkgs/development/libraries/gtk/3.x.nix
··· 171 172 # These are the defines that'd you'd get with --enable-debug=minimum (default). 173 # See: https://developer.gnome.org/gtk3/stable/gtk-building.html#extra-configuration-options 174 - NIX_CFLAGS_COMPILE = "-DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"; 175 176 postPatch = '' 177 # See https://github.com/NixOS/nixpkgs/issues/132259
··· 171 172 # These are the defines that'd you'd get with --enable-debug=minimum (default). 173 # See: https://developer.gnome.org/gtk3/stable/gtk-building.html#extra-configuration-options 174 + env.NIX_CFLAGS_COMPILE = "-DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"; 175 176 postPatch = '' 177 # See https://github.com/NixOS/nixpkgs/issues/132259
+1 -1
pkgs/development/libraries/gtk/4.x.nix
··· 175 176 # These are the defines that'd you'd get with --enable-debug=minimum (default). 177 # See: https://developer.gnome.org/gtk3/stable/gtk-building.html#extra-configuration-options 178 - NIX_CFLAGS_COMPILE = "-DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"; 179 180 postPatch = '' 181 files=(
··· 175 176 # These are the defines that'd you'd get with --enable-debug=minimum (default). 177 # See: https://developer.gnome.org/gtk3/stable/gtk-building.html#extra-configuration-options 178 + env.NIX_CFLAGS_COMPILE = "-DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"; 179 180 postPatch = '' 181 files=(
+1 -1
pkgs/development/libraries/http-parser/default.nix
··· 11 sha256 = "1vda4dp75pjf5fcph73sy0ifm3xrssrmf927qd1x8g3q46z0cv6c"; 12 }; 13 14 - NIX_CFLAGS_COMPILE = "-Wno-error"; 15 patches = [ 16 ./build-shared.patch 17 ] ++ lib.optionals stdenv.isAarch32 [
··· 11 sha256 = "1vda4dp75pjf5fcph73sy0ifm3xrssrmf927qd1x8g3q46z0cv6c"; 12 }; 13 14 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 15 patches = [ 16 ./build-shared.patch 17 ] ++ lib.optionals stdenv.isAarch32 [
+1 -1
pkgs/development/libraries/intel-media-driver/default.nix
··· 43 "-DMEDIA_BUILD_FATAL_WARNINGS=OFF" 44 ]; 45 46 - NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.hostPlatform.system == "i686-linux") "-D_FILE_OFFSET_BITS=64"; 47 48 nativeBuildInputs = [ cmake pkg-config ]; 49
··· 43 "-DMEDIA_BUILD_FATAL_WARNINGS=OFF" 44 ]; 45 46 + env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.hostPlatform.system == "i686-linux") "-D_FILE_OFFSET_BITS=64"; 47 48 nativeBuildInputs = [ cmake pkg-config ]; 49
+1 -1
pkgs/development/libraries/iqueue/default.nix
··· 12 nativeBuildInputs = [ pkg-config ]; 13 buildInputs = [ libbsd microsoft_gsl ]; 14 15 - NIX_CFLAGS_COMPILE = [ 16 # Needed with GCC 12 17 "-Wno-error=array-parameter" 18 "-Wno-error=misleading-indentation"
··· 12 nativeBuildInputs = [ pkg-config ]; 13 buildInputs = [ libbsd microsoft_gsl ]; 14 15 + env.NIX_CFLAGS_COMPILE = toString [ 16 # Needed with GCC 12 17 "-Wno-error=array-parameter" 18 "-Wno-error=misleading-indentation"
+1 -1
pkgs/development/libraries/jemalloc/default.nix
··· 47 ++ lib.optional (stdenv.isDarwin && stdenv.isx86_64) "--with-lg-vaddr=48" 48 ; 49 50 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-error=array-bounds"; 51 52 doCheck = true; 53
··· 47 ++ lib.optional (stdenv.isDarwin && stdenv.isx86_64) "--with-lg-vaddr=48" 48 ; 49 50 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-error=array-bounds"; 51 52 doCheck = true; 53
+1 -1
pkgs/development/libraries/leatherman/default.nix
··· 13 14 cmakeFlags = [ "-DLEATHERMAN_ENABLE_TESTING=OFF" ]; 15 16 - NIX_CFLAGS_COMPILE = "-Wno-error"; 17 18 nativeBuildInputs = [ cmake ]; 19 buildInputs = [ boost curl ruby ];
··· 13 14 cmakeFlags = [ "-DLEATHERMAN_ENABLE_TESTING=OFF" ]; 15 16 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 17 18 nativeBuildInputs = [ cmake ]; 19 buildInputs = [ boost curl ruby ];
+1 -1
pkgs/development/libraries/libagar/libagar_test.nix
··· 11 # ld: textdlg.o:(.bss+0x0): multiple definition of `someString'; 12 # configsettings.o:(.bss+0x0): first defined here 13 # TODO: the workaround can be removed once nixpkgs updates to 1.6.0. 14 - NIX_CFLAGS_COMPILE = "-fcommon"; 15 16 preConfigure = '' 17 substituteInPlace configure.in \
··· 11 # ld: textdlg.o:(.bss+0x0): multiple definition of `someString'; 12 # configsettings.o:(.bss+0x0): first defined here 13 # TODO: the workaround can be removed once nixpkgs updates to 1.6.0. 14 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 15 16 preConfigure = '' 17 substituteInPlace configure.in \
+1 -1
pkgs/development/libraries/libbladeRF/default.nix
··· 46 "-DBLADERF_GROUP=bladerf" 47 ]; 48 49 - NIX_CFLAGS_COMPILE = [ 50 # Needed with GCC 12 51 "-Wno-error=array-bounds" 52 ];
··· 46 "-DBLADERF_GROUP=bladerf" 47 ]; 48 49 + env.NIX_CFLAGS_COMPILE = toString [ 50 # Needed with GCC 12 51 "-Wno-error=array-bounds" 52 ];
+1 -1
pkgs/development/libraries/libcaca/default.nix
··· 41 (if x11Support then "--enable-x11" else "--disable-x11") 42 ]; 43 44 - NIX_CFLAGS_COMPILE = lib.optionalString (!x11Support) "-DX_DISPLAY_MISSING"; 45 46 postInstall = '' 47 mkdir -p $dev/bin
··· 41 (if x11Support then "--enable-x11" else "--disable-x11") 42 ]; 43 44 + env.NIX_CFLAGS_COMPILE = lib.optionalString (!x11Support) "-DX_DISPLAY_MISSING"; 45 46 postInstall = '' 47 mkdir -p $dev/bin
+1 -1
pkgs/development/libraries/libcamera/default.nix
··· 85 ]; 86 87 # Fixes error on a deprecated declaration 88 - NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 89 90 # Silence fontconfig warnings about missing config 91 FONTCONFIG_FILE = makeFontsConf { fontDirectories = []; };
··· 85 ]; 86 87 # Fixes error on a deprecated declaration 88 + env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 89 90 # Silence fontconfig warnings about missing config 91 FONTCONFIG_FILE = makeFontsConf { fontDirectories = []; };
+1 -1
pkgs/development/libraries/libchop/default.nix
··· 16 17 nativeBuildInputs = [ pkg-config gperf rpcsvc-proto ]; 18 19 - NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ]; 20 NIX_LDFLAGS = [ "-ltirpc" ]; 21 22 buildInputs =
··· 16 17 nativeBuildInputs = [ pkg-config gperf rpcsvc-proto ]; 18 19 + env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ]; 20 NIX_LDFLAGS = [ "-ltirpc" ]; 21 22 buildInputs =
+1 -1
pkgs/development/libraries/libcli/default.nix
··· 24 25 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "AR=${stdenv.cc.targetPrefix}ar" "PREFIX=$(out)" ]; 26 27 - NIX_CFLAGS_COMPILE = [ 28 # Needed with GCC 12 29 "-Wno-error=address" 30 ];
··· 24 25 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "AR=${stdenv.cc.targetPrefix}ar" "PREFIX=$(out)" ]; 26 27 + env.NIX_CFLAGS_COMPILE = toString [ 28 # Needed with GCC 12 29 "-Wno-error=address" 30 ];
+1 -1
pkgs/development/libraries/libclxclient/default.nix
··· 13 14 nativeBuildInputs = [ pkg-config ]; 15 16 - NIX_CFLAGS_COMPILE = "-I${xorg.xorgproto}/include -I${libXft.dev}/include"; 17 18 patchPhase = '' 19 cd source
··· 13 14 nativeBuildInputs = [ pkg-config ]; 15 16 + env.NIX_CFLAGS_COMPILE = "-I${xorg.xorgproto}/include -I${libXft.dev}/include"; 17 18 patchPhase = '' 19 cd source
+1 -1
pkgs/development/libraries/libcutl/default.nix
··· 28 buildInputs = [ xercesc ]; 29 enableParallelBuilding = true; 30 31 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 32 }
··· 28 buildInputs = [ xercesc ]; 29 enableParallelBuilding = true; 30 31 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 32 }
+1 -1
pkgs/development/libraries/libdynd/default.nix
··· 15 "-DDYND_BUILD_BENCHMARKS=OFF" 16 ]; 17 18 - NIX_CFLAGS_COMPILE = builtins.toString [ 19 # added to fix build with gcc7+ 20 "-Wno-error=implicit-fallthrough" 21 "-Wno-error=nonnull"
··· 15 "-DDYND_BUILD_BENCHMARKS=OFF" 16 ]; 17 18 + env.NIX_CFLAGS_COMPILE = builtins.toString [ 19 # added to fix build with gcc7+ 20 "-Wno-error=implicit-fallthrough" 21 "-Wno-error=nonnull"
+1 -1
pkgs/development/libraries/libe-book/default.nix
··· 35 postPatch = '' 36 sed -i 's,^CPPFLAGS.*,\0 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED,' src/lib/Makefile.in 37 ''; 38 - NIX_CFLAGS_COMPILE = "-Wno-error=unused-function"; 39 meta = with lib; { 40 description = "Library for import of reflowable e-book formats"; 41 license = licenses.lgpl21Plus;
··· 35 postPatch = '' 36 sed -i 's,^CPPFLAGS.*,\0 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED,' src/lib/Makefile.in 37 ''; 38 + env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-function"; 39 meta = with lib; { 40 description = "Library for import of reflowable e-book formats"; 41 license = licenses.lgpl21Plus;
+1 -1
pkgs/development/libraries/libepoxy/default.nix
··· 56 "-Dx11=${lib.boolToString x11Support}" 57 ]; 58 59 - NIX_CFLAGS_COMPILE = lib.optionalString x11Support ''-DLIBGL_PATH="${getLib libGL}/lib"''; 60 61 # cgl_core and cgl_epoxy_api fail in darwin sandbox and on Hydra (because it's headless?) 62 preCheck = lib.optionalString stdenv.isDarwin ''
··· 56 "-Dx11=${lib.boolToString x11Support}" 57 ]; 58 59 + env.NIX_CFLAGS_COMPILE = lib.optionalString x11Support ''-DLIBGL_PATH="${getLib libGL}/lib"''; 60 61 # cgl_core and cgl_epoxy_api fail in darwin sandbox and on Hydra (because it's headless?) 62 preCheck = lib.optionalString stdenv.isDarwin ''
+1 -1
pkgs/development/libraries/libfaketime/default.nix
··· 35 PREFIX = placeholder "out"; 36 LIBDIRNAME = "/lib"; 37 38 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=cast-function-type -Wno-error=format-truncation"; 39 40 nativeCheckInputs = [ perl ]; 41
··· 35 PREFIX = placeholder "out"; 36 LIBDIRNAME = "/lib"; 37 38 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=cast-function-type -Wno-error=format-truncation"; 39 40 nativeCheckInputs = [ perl ]; 41
+1 -1
pkgs/development/libraries/libfpx/default.nix
··· 10 }; 11 12 # Darwin gets misdetected as Windows without this 13 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D__unix"; 14 15 patches = [ 16 (fetchpatch {
··· 10 }; 11 12 # Darwin gets misdetected as Windows without this 13 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D__unix"; 14 15 patches = [ 16 (fetchpatch {
+1 -1
pkgs/development/libraries/libgaminggear/default.nix
··· 27 ]; 28 29 # https://sourceforge.net/p/libgaminggear/discussion/general/thread/b43a776b3a/ 30 - NIX_CFLAGS_COMPILE = [ "-I${harfbuzz.dev}/include/harfbuzz" ]; 31 32 postFixup = '' 33 moveToOutput bin "$bin"
··· 27 ]; 28 29 # https://sourceforge.net/p/libgaminggear/discussion/general/thread/b43a776b3a/ 30 + env.NIX_CFLAGS_COMPILE = toString [ "-I${harfbuzz.dev}/include/harfbuzz" ]; 31 32 postFixup = '' 33 moveToOutput bin "$bin"
+1 -1
pkgs/development/libraries/libglvnd/default.nix
··· 27 --replace "-Xlinker --version-script=$(VERSION_SCRIPT)" "-Xlinker" 28 ''; 29 30 - NIX_CFLAGS_COMPILE = toString ([ 31 "-UDEFAULT_EGL_VENDOR_CONFIG_DIRS" 32 # FHS paths are added so that non-NixOS applications can find vendor files. 33 "-DDEFAULT_EGL_VENDOR_CONFIG_DIRS=\"${addOpenGLRunpath.driverLink}/share/glvnd/egl_vendor.d:/etc/glvnd/egl_vendor.d:/usr/share/glvnd/egl_vendor.d\""
··· 27 --replace "-Xlinker --version-script=$(VERSION_SCRIPT)" "-Xlinker" 28 ''; 29 30 + env.NIX_CFLAGS_COMPILE = toString ([ 31 "-UDEFAULT_EGL_VENDOR_CONFIG_DIRS" 32 # FHS paths are added so that non-NixOS applications can find vendor files. 33 "-DDEFAULT_EGL_VENDOR_CONFIG_DIRS=\"${addOpenGLRunpath.driverLink}/share/glvnd/egl_vendor.d:/etc/glvnd/egl_vendor.d:/usr/share/glvnd/egl_vendor.d\""
+1 -1
pkgs/development/libraries/libicns/default.nix
··· 18 19 nativeBuildInputs = [ autoreconfHook ]; 20 buildInputs = [ libpng openjpeg ]; 21 - NIX_CFLAGS_COMPILE = [ "-I${openjpeg.dev}/include/${openjpeg.incDir}" ]; 22 23 meta = with lib; { 24 description = "Library for manipulation of the Mac OS icns resource format";
··· 18 19 nativeBuildInputs = [ autoreconfHook ]; 20 buildInputs = [ libpng openjpeg ]; 21 + env.NIX_CFLAGS_COMPILE = toString [ "-I${openjpeg.dev}/include/${openjpeg.incDir}" ]; 22 23 meta = with lib; { 24 description = "Library for manipulation of the Mac OS icns resource format";
+1 -1
pkgs/development/libraries/libipfix/default.nix
··· 13 # `ht_globals'; collector.o:/build/libipfix_110209/collector/../libmisc/misc.h:111: first defined here 14 # TODO: drop the workaround when fix ix released: 15 # https://sourceforge.net/p/libipfix/code/ci/a501612c6b8ac6f2df16b366f7a92211382bae6b/ 16 - NIX_CFLAGS_COMPILE = "-fcommon"; 17 18 meta = with lib; { 19 homepage = "https://libipfix.sourceforge.net/";
··· 13 # `ht_globals'; collector.o:/build/libipfix_110209/collector/../libmisc/misc.h:111: first defined here 14 # TODO: drop the workaround when fix ix released: 15 # https://sourceforge.net/p/libipfix/code/ci/a501612c6b8ac6f2df16b366f7a92211382bae6b/ 16 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 17 18 meta = with lib; { 19 homepage = "https://libipfix.sourceforge.net/";
+1 -2
pkgs/development/libraries/libiscsi/default.nix
··· 14 nativeBuildInputs = [ autoreconfHook ]; 15 16 # This problem is gone on libiscsi master. 17 - NIX_CFLAGS_COMPILE = 18 - lib.optional stdenv.hostPlatform.is32bit "-Wno-error=sign-compare"; 19 20 meta = with lib; { 21 description = "iscsi client library and utilities";
··· 14 nativeBuildInputs = [ autoreconfHook ]; 15 16 # This problem is gone on libiscsi master. 17 + env.NIX_CFLAGS_COMPILE = toString (lib.optional stdenv.hostPlatform.is32bit "-Wno-error=sign-compare"); 18 19 meta = with lib; { 20 description = "iscsi client library and utilities";
+1 -1
pkgs/development/libraries/libjson-rpc-cpp/default.nix
··· 23 rev = "v${version}"; 24 }; 25 26 - NIX_CFLAGS_COMPILE = "-I${catch2}/include/catch2"; 27 28 patches = [ 29 (fetchpatch {
··· 23 rev = "v${version}"; 24 }; 25 26 + env.NIX_CFLAGS_COMPILE = "-I${catch2}/include/catch2"; 27 28 patches = [ 29 (fetchpatch {
+1 -1
pkgs/development/libraries/libjson/default.nix
··· 10 patches = [ ./install-fix.patch ]; 11 nativeBuildInputs = [ unzip ]; 12 makeFlags = [ "prefix=$(out)" ]; 13 - NIX_CFLAGS_COMPILE = [ "-std=c++11" ]; 14 preInstall = "mkdir -p $out/lib"; 15 16 meta = with lib; {
··· 10 patches = [ ./install-fix.patch ]; 11 nativeBuildInputs = [ unzip ]; 12 makeFlags = [ "prefix=$(out)" ]; 13 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++11" ]; 14 preInstall = "mkdir -p $out/lib"; 15 16 meta = with lib; {
+1 -1
pkgs/development/libraries/liblastfm/default.nix
··· 23 buildInputs = [ fftwSinglePrec libsamplerate qtbase ] 24 ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration; 25 26 - NIX_CFLAGS_COMPILE = 27 lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [ 28 "-std=c++11" 29 ];
··· 23 buildInputs = [ fftwSinglePrec libsamplerate qtbase ] 24 ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration; 25 26 + env.NIX_CFLAGS_COMPILE = 27 lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [ 28 "-std=c++11" 29 ];
+1 -1
pkgs/development/libraries/libmemcached/default.nix
··· 24 buildInputs = [ libevent ]; 25 propagatedBuildInputs = [ cyrus_sasl ]; 26 27 - NIX_CFLAGS_COMPILE = "-fpermissive"; 28 29 meta = with lib; { 30 homepage = "https://libmemcached.org";
··· 24 buildInputs = [ libevent ]; 25 propagatedBuildInputs = [ cyrus_sasl ]; 26 27 + env.NIX_CFLAGS_COMPILE = "-fpermissive"; 28 29 meta = with lib; { 30 homepage = "https://libmemcached.org";
+1 -1
pkgs/development/libraries/libomxil-bellagio/default.nix
··· 23 24 doCheck = false; # fails 25 26 - NIX_CFLAGS_COMPILE = 27 if stdenv.cc.isGNU then "-Wno-error=array-bounds -Wno-error=stringop-overflow=8" 28 else "-Wno-error=absolute-value -Wno-error=enum-conversion -Wno-error=logical-not-parentheses -Wno-error=non-literal-null-conversion"; 29
··· 23 24 doCheck = false; # fails 25 26 + env.NIX_CFLAGS_COMPILE = 27 if stdenv.cc.isGNU then "-Wno-error=array-bounds -Wno-error=stringop-overflow=8" 28 else "-Wno-error=absolute-value -Wno-error=enum-conversion -Wno-error=logical-not-parentheses -Wno-error=non-literal-null-conversion"; 29
+1 -1
pkgs/development/libraries/liboping/default.nix
··· 23 }) 24 ]; 25 26 - NIX_CFLAGS_COMPILE = lib.optionalString 27 stdenv.cc.isGNU "-Wno-error=format-truncation"; 28 29 buildInputs = [ ncurses perl ];
··· 23 }) 24 ]; 25 26 + env.NIX_CFLAGS_COMPILE = lib.optionalString 27 stdenv.cc.isGNU "-Wno-error=format-truncation"; 28 29 buildInputs = [ ncurses perl ];
+1 -1
pkgs/development/libraries/libpfm/default.nix
··· 18 "SYS=${stdenv.hostPlatform.uname.system}" 19 ]; 20 21 - NIX_CFLAGS_COMPILE = "-Wno-error"; 22 23 meta = with lib; { 24 description = "Helper library to program the performance monitoring events";
··· 18 "SYS=${stdenv.hostPlatform.uname.system}" 19 ]; 20 21 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 22 23 meta = with lib; { 24 description = "Helper library to program the performance monitoring events";
+1 -1
pkgs/development/libraries/libpulsar/default.nix
··· 69 ++ defaultOptionals; 70 71 # Needed for GCC on Linux 72 - NIX_CFLAGS_COMPILE = [ "-Wno-error=return-type" ]; 73 74 cmakeFlags = [ 75 "-DBUILD_TESTS=${enableCmakeFeature gtestSupport}"
··· 69 ++ defaultOptionals; 70 71 # Needed for GCC on Linux 72 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=return-type" ]; 73 74 cmakeFlags = [ 75 "-DBUILD_TESTS=${enableCmakeFeature gtestSupport}"
+1 -1
pkgs/development/libraries/librsb/default.nix
··· 39 ]; 40 41 # Ensure C/Fortran code is position-independent. 42 - NIX_CFLAGS_COMPILE = [ "-fPIC" "-Ofast" ]; 43 FCFLAGS = [ "-fPIC" "-Ofast" ]; 44 45 enableParallelBuilding = true;
··· 39 ]; 40 41 # Ensure C/Fortran code is position-independent. 42 + env.NIX_CFLAGS_COMPILE = toString [ "-fPIC" "-Ofast" ]; 43 FCFLAGS = [ "-fPIC" "-Ofast" ]; 44 45 enableParallelBuilding = true;
+1 -1
pkgs/development/libraries/libsoundio/default.nix
··· 21 "-DBUILD_TESTS=OFF" 22 ]; 23 24 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-strict-prototypes"; 25 26 meta = with lib; { 27 description = "Cross platform audio input and output";
··· 21 "-DBUILD_TESTS=OFF" 22 ]; 23 24 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-strict-prototypes"; 25 26 meta = with lib; { 27 description = "Cross platform audio input and output";
+1 -1
pkgs/development/libraries/libsoup/default.nix
··· 64 "-Dsysprof=disabled" 65 ]; 66 67 - NIX_CFLAGS_COMPILE = "-lpthread"; 68 69 doCheck = false; # ERROR:../tests/socket-test.c:37:do_unconnected_socket_test: assertion failed (res == SOUP_STATUS_OK): (2 == 200) 70
··· 64 "-Dsysprof=disabled" 65 ]; 66 67 + env.NIX_CFLAGS_COMPILE = "-lpthread"; 68 69 doCheck = false; # ERROR:../tests/socket-test.c:37:do_unconnected_socket_test: assertion failed (res == SOUP_STATUS_OK): (2 == 200) 70
+1 -1
pkgs/development/libraries/libtomcrypt/default.nix
··· 11 12 # Fixes a build failure on aarch64-darwin. Define for all Darwin targets for when x86_64-darwin 13 # upgrades to a newer SDK. 14 - NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-DTARGET_OS_IPHONE=0"; 15 16 patches = [ 17 (fetchpatch {
··· 11 12 # Fixes a build failure on aarch64-darwin. Define for all Darwin targets for when x86_64-darwin 13 # upgrades to a newer SDK. 14 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DTARGET_OS_IPHONE=0"; 15 16 patches = [ 17 (fetchpatch {
+1 -1
pkgs/development/libraries/libtommath/default.nix
··· 24 25 makefile = "makefile.shared"; 26 27 - NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-DTARGET_OS_IPHONE=0"; 28 29 enableParallelBuilding = true; 30
··· 24 25 makefile = "makefile.shared"; 26 27 + env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-DTARGET_OS_IPHONE=0"; 28 29 enableParallelBuilding = true; 30
+1 -1
pkgs/development/libraries/libunique/default.nix
··· 15 ''; 16 17 # glib-2.62 deprecations 18 - NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 19 20 # Patches from Gentoo portage 21 patches = [
··· 15 ''; 16 17 # glib-2.62 deprecations 18 + env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 19 20 # Patches from Gentoo portage 21 patches = [
+1 -1
pkgs/development/libraries/libvirt-glib/default.nix
··· 71 ]; 72 73 # https://gitlab.com/libvirt/libvirt-glib/-/issues/4 74 - NIX_CFLAGS_COMPILE = [ "-Wno-error=pointer-sign" ]; 75 76 meta = with lib; { 77 description = "Library for working with virtual machines";
··· 71 ]; 72 73 # https://gitlab.com/libvirt/libvirt-glib/-/issues/4 74 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=pointer-sign" ]; 75 76 meta = with lib; { 77 description = "Library for working with virtual machines";
+1 -1
pkgs/development/libraries/libwhereami/default.nix
··· 11 owner = "puppetlabs"; 12 }; 13 14 - NIX_CFLAGS_COMPILE = "-Wno-error"; 15 16 nativeBuildInputs = [ cmake ]; 17
··· 11 owner = "puppetlabs"; 12 }; 13 14 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 15 16 nativeBuildInputs = [ cmake ]; 17
+1 -1
pkgs/development/libraries/libwps/default.nix
··· 12 nativeBuildInputs = [ pkg-config ]; 13 buildInputs = [ boost librevenge zlib ]; 14 15 - NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough"; 16 17 meta = with lib; { 18 homepage = "https://libwps.sourceforge.net/";
··· 12 nativeBuildInputs = [ pkg-config ]; 13 buildInputs = [ boost librevenge zlib ]; 14 15 + env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough"; 16 17 meta = with lib; { 18 homepage = "https://libwps.sourceforge.net/";
+1 -1
pkgs/development/libraries/libxkbcommon/libxkbcommon_7.nix
··· 19 "--with-x-locale-root=${libX11.out}/share/X11/locale" 20 ]; 21 22 - NIX_CFLAGS_COMPILE = [ 23 # Needed with GCC 12 24 "-Wno-error=array-bounds" 25 ];
··· 19 "--with-x-locale-root=${libX11.out}/share/X11/locale" 20 ]; 21 22 + env.NIX_CFLAGS_COMPILE = toString [ 23 # Needed with GCC 12 24 "-Wno-error=array-bounds" 25 ];
+1 -1
pkgs/development/libraries/loki/default.nix
··· 14 make build-shared 15 ''; 16 17 - NIX_CFLAGS_COMPILE = [ 18 "-std=c++11" 19 ]; 20
··· 14 make build-shared 15 ''; 16 17 + env.NIX_CFLAGS_COMPILE = toString [ 18 "-std=c++11" 19 ]; 20
+1 -1
pkgs/development/libraries/mapbox-gl-native/default.nix
··· 50 "-DMBGL_WITH_QT_LIB_ONLY=ON" 51 "-DMBGL_WITH_QT_HEADLESS=OFF" 52 ]; 53 - NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations -Wno-error=type-limits"; 54 55 meta = with lib; { 56 description = "Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL";
··· 50 "-DMBGL_WITH_QT_LIB_ONLY=ON" 51 "-DMBGL_WITH_QT_HEADLESS=OFF" 52 ]; 53 + env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations -Wno-error=type-limits"; 54 55 meta = with lib; { 56 description = "Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL";
+2 -2
pkgs/development/libraries/maplibre-gl-native/default.nix
··· 56 "-DMBGL_WITH_QT_HEADLESS=OFF" 57 ]; 58 59 - NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 60 # Needed with GCC 12 but problematic with some old GCCs 61 "-Wno-error=use-after-free" 62 - ]; 63 64 meta = with lib; { 65 description = "Open-source alternative to Mapbox GL Native";
··· 56 "-DMBGL_WITH_QT_HEADLESS=OFF" 57 ]; 58 59 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 60 # Needed with GCC 12 but problematic with some old GCCs 61 "-Wno-error=use-after-free" 62 + ]); 63 64 meta = with lib; { 65 description = "Open-source alternative to Mapbox GL Native";
+2 -2
pkgs/development/libraries/mesa/default.nix
··· 323 done 324 ''; 325 326 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ "-fno-common" ] ++ lib.optionals enableOpenCL [ 327 "-UPIPE_SEARCH_DIR" 328 "-DPIPE_SEARCH_DIR=\"${placeholder "opencl"}/lib/gallium-pipe\"" 329 - ]; 330 331 passthru = { 332 inherit (libglvnd) driverLink;
··· 323 done 324 ''; 325 326 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ "-fno-common" ] ++ lib.optionals enableOpenCL [ 327 "-UPIPE_SEARCH_DIR" 328 "-DPIPE_SEARCH_DIR=\"${placeholder "opencl"}/lib/gallium-pipe\"" 329 + ]); 330 331 passthru = { 332 inherit (libglvnd) driverLink;
+1 -1
pkgs/development/libraries/mp4v2/default.nix
··· 12 sha256 = "sha256-OP+oVTH9pqYfHtYL1Kjrs1qey/J40ijLi5Gu8GJnvSY="; 13 }; 14 15 - NIX_CFLAGS_COMPILE = "-Wno-error=narrowing"; 16 17 # `faac' expects `mp4.h'. 18 postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h";
··· 12 sha256 = "sha256-OP+oVTH9pqYfHtYL1Kjrs1qey/J40ijLi5Gu8GJnvSY="; 13 }; 14 15 + env.NIX_CFLAGS_COMPILE = "-Wno-error=narrowing"; 16 17 # `faac' expects `mp4.h'. 18 postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h";
+1 -1
pkgs/development/libraries/mps/default.nix
··· 13 buildInputs = [ sqlite ]; 14 15 # needed for 1.116.0 to build with gcc7 16 - NIX_CFLAGS_COMPILE = toString [ 17 "-Wno-implicit-fallthrough" 18 "-Wno-error=clobbered" 19 "-Wno-error=cast-function-type"
··· 13 buildInputs = [ sqlite ]; 14 15 # needed for 1.116.0 to build with gcc7 16 + env.NIX_CFLAGS_COMPILE = toString [ 17 "-Wno-implicit-fallthrough" 18 "-Wno-error=clobbered" 19 "-Wno-error=cast-function-type"
+2 -2
pkgs/development/libraries/nss/generic.nix
··· 103 runHook postBuild 104 ''; 105 106 - NIX_CFLAGS_COMPILE = [ 107 "-Wno-error" 108 "-DNIX_NSS_LIBDIR=\"${placeholder "out"}/lib/\"" 109 ] ++ lib.optionals stdenv.hostPlatform.is64bit [ 110 "-DNSS_USE_64=1" 111 ] ++ lib.optionals stdenv.hostPlatform.isILP32 [ 112 "-DNS_PTR_LE_32=1" # See RNG_RandomUpdate() in drdbg.c 113 - ]; 114 115 installPhase = '' 116 runHook preInstall
··· 103 runHook postBuild 104 ''; 105 106 + env.NIX_CFLAGS_COMPILE = toString ([ 107 "-Wno-error" 108 "-DNIX_NSS_LIBDIR=\"${placeholder "out"}/lib/\"" 109 ] ++ lib.optionals stdenv.hostPlatform.is64bit [ 110 "-DNSS_USE_64=1" 111 ] ++ lib.optionals stdenv.hostPlatform.isILP32 [ 112 "-DNS_PTR_LE_32=1" # See RNG_RandomUpdate() in drdbg.c 113 + ]); 114 115 installPhase = '' 116 runHook preInstall
+1 -1
pkgs/development/libraries/ntrack/default.nix
··· 14 nativeBuildInputs = [ pkg-config python3 ]; 15 16 # error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] 17 - NIX_CFLAGS_COMPILE = "-Wno-error"; 18 19 configureFlags = [ "--without-gobject" "CFLAGS=--std=gnu99" ]; 20
··· 14 nativeBuildInputs = [ pkg-config python3 ]; 15 16 # error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] 17 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 18 19 configureFlags = [ "--without-gobject" "CFLAGS=--std=gnu99" ]; 20
+1 -1
pkgs/development/libraries/octomap/default.nix
··· 15 16 nativeBuildInputs = [ cmake ]; 17 18 - NIX_CFLAGS_COMPILE = [ 19 # Needed with GCC 12 20 "-Wno-error=deprecated-declarations" 21 ];
··· 15 16 nativeBuildInputs = [ cmake ]; 17 18 + env.NIX_CFLAGS_COMPILE = toString [ 19 # Needed with GCC 12 20 "-Wno-error=deprecated-declarations" 21 ];
+1 -1
pkgs/development/libraries/opae/default.nix
··· 20 21 doCheck = false; 22 23 - NIX_CFLAGS_COMPILE = [ 24 "-Wno-error=format-truncation" 25 "-Wno-error=address-of-packed-member" 26 "-Wno-array-bounds"
··· 20 21 doCheck = false; 22 23 + env.NIX_CFLAGS_COMPILE = toString [ 24 "-Wno-error=format-truncation" 25 "-Wno-error=address-of-packed-member" 26 "-Wno-array-bounds"
+1 -1
pkgs/development/libraries/opencv/3.x.nix
··· 216 217 nativeBuildInputs = [ cmake pkg-config unzip ]; 218 219 - NIX_CFLAGS_COMPILE = lib.optionalString enableEXR "-I${ilmbase.dev}/include/OpenEXR"; 220 221 # Configure can't find the library without this. 222 OpenBLAS_HOME = lib.optionalString enableOpenblas openblas;
··· 216 217 nativeBuildInputs = [ cmake pkg-config unzip ]; 218 219 + env.NIX_CFLAGS_COMPILE = lib.optionalString enableEXR "-I${ilmbase.dev}/include/OpenEXR"; 220 221 # Configure can't find the library without this. 222 OpenBLAS_HOME = lib.optionalString enableOpenblas openblas;
+1 -1
pkgs/development/libraries/opencv/4.x.nix
··· 307 pythonPackages.setuptools 308 ]; 309 310 - NIX_CFLAGS_COMPILE = lib.optionalString enableEXR "-I${ilmbase.dev}/include/OpenEXR"; 311 312 # Configure can't find the library without this. 313 OpenBLAS_HOME = lib.optionalString withOpenblas openblas_.dev;
··· 307 pythonPackages.setuptools 308 ]; 309 310 + env.NIX_CFLAGS_COMPILE = lib.optionalString enableEXR "-I${ilmbase.dev}/include/OpenEXR"; 311 312 # Configure can't find the library without this. 313 OpenBLAS_HOME = lib.optionalString withOpenblas openblas_.dev;
+1 -1
pkgs/development/libraries/opencv/default.nix
··· 56 57 nativeBuildInputs = [ cmake pkg-config unzip ]; 58 59 - NIX_CFLAGS_COMPILE = lib.optionalString enableEXR "-I${ilmbase.dev}/include/OpenEXR"; 60 61 cmakeFlags = [ 62 (opencvFlag "TIFF" enableTIFF)
··· 56 57 nativeBuildInputs = [ cmake pkg-config unzip ]; 58 59 + env.NIX_CFLAGS_COMPILE = lib.optionalString enableEXR "-I${ilmbase.dev}/include/OpenEXR"; 60 61 cmakeFlags = [ 62 (opencvFlag "TIFF" enableTIFF)
+1 -1
pkgs/development/libraries/opendbx/default.nix
··· 19 20 buildInputs = [ readline libmysqlclient postgresql sqlite ]; 21 22 - NIX_CFLAGS_COMPILE = [ 23 # Needed with GCC 12 24 "-std=c++14" 25 ];
··· 19 20 buildInputs = [ readline libmysqlclient postgresql sqlite ]; 21 22 + env.NIX_CFLAGS_COMPILE = toString [ 23 # Needed with GCC 12 24 "-std=c++14" 25 ];
+1 -1
pkgs/development/libraries/openexrid-unstable/default.nix
··· 20 --replace g++ c++ 21 ''; 22 23 - NIX_CFLAGS_COMPILE=''-I${ilmbase.dev}/include/OpenEXR 24 -I${openexr.dev}/include/OpenEXR 25 -I${openfx.dev}/include/OpenFX 26 '';
··· 20 --replace g++ c++ 21 ''; 22 23 + env.NIX_CFLAGS_COMPILE = ''-I${ilmbase.dev}/include/OpenEXR 24 -I${openexr.dev}/include/OpenEXR 25 -I${openfx.dev}/include/OpenFX 26 '';
+1 -1
pkgs/development/libraries/openldap/default.nix
··· 64 "ac_cv_func_memcmp_working=yes" 65 ] ++ lib.optional stdenv.isFreeBSD "--with-pic"; 66 67 - NIX_CFLAGS_COMPILE = [ "-DLDAPI_SOCK=\"/run/openldap/ldapi\"" ]; 68 69 makeFlags= [ 70 "CC=${stdenv.cc.targetPrefix}cc"
··· 64 "ac_cv_func_memcmp_working=yes" 65 ] ++ lib.optional stdenv.isFreeBSD "--with-pic"; 66 67 + env.NIX_CFLAGS_COMPILE = toString [ "-DLDAPI_SOCK=\"/run/openldap/ldapi\"" ]; 68 69 makeFlags= [ 70 "CC=${stdenv.cc.targetPrefix}cc"
+1 -1
pkgs/development/libraries/opensaml-cpp/default.nix
··· 19 20 configureFlags = [ "--with-xmltooling=${xml-tooling-c}" ]; 21 22 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 23 24 enableParallelBuilding = true; 25
··· 19 20 configureFlags = [ "--with-xmltooling=${xml-tooling-c}" ]; 21 22 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 23 24 enableParallelBuilding = true; 25
+1 -1
pkgs/development/libraries/ortp/default.nix
··· 21 # Do not build static libraries 22 cmakeFlags = [ "-DENABLE_STATIC=NO" ]; 23 24 - NIX_CFLAGS_COMPILE = "-Wno-error=stringop-truncation"; 25 26 buildInputs = [ bctoolbox ]; 27 nativeBuildInputs = [ cmake ];
··· 21 # Do not build static libraries 22 cmakeFlags = [ "-DENABLE_STATIC=NO" ]; 23 24 + env.NIX_CFLAGS_COMPILE = "-Wno-error=stringop-truncation"; 25 26 buildInputs = [ bctoolbox ]; 27 nativeBuildInputs = [ cmake ];
+1 -1
pkgs/development/libraries/phonon/backends/gstreamer.nix
··· 34 35 dontWrapQtApps = true; 36 37 - NIX_CFLAGS_COMPILE = 38 let gstPluginPaths = 39 lib.makeSearchPathOutput "lib" "/lib/gstreamer-1.0" 40 (with gst_all_1; [
··· 34 35 dontWrapQtApps = true; 36 37 + env.NIX_CFLAGS_COMPILE = 38 let gstPluginPaths = 39 lib.makeSearchPathOutput "lib" "/lib/gstreamer-1.0" 40 (with gst_all_1; [
+1 -1
pkgs/development/libraries/phonon/default.nix
··· 50 51 outputs = [ "out" "dev" ]; 52 53 - NIX_CFLAGS_COMPILE = "-fPIC"; 54 55 cmakeFlags = [ 56 "-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
··· 50 51 outputs = [ "out" "dev" ]; 52 53 + env.NIX_CFLAGS_COMPILE = "-fPIC"; 54 55 cmakeFlags = [ 56 "-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
+1 -1
pkgs/development/libraries/physics/cernlib/default.nix
··· 56 # Workaround build failure on -fno-common toolchains: 57 # ld: libpacklib.a(kedit.o):kuip/klink1.h:11: multiple definition of `klnkaddr'; 58 # libzftplib.a(zftpcdf.o):zftp/zftpcdf.c:155: first defined here 59 - NIX_CFLAGS_COMPILE = "-fcommon"; 60 61 makeFlags = [ 62 "FORTRANOPTIONS=$(FFLAGS)"
··· 56 # Workaround build failure on -fno-common toolchains: 57 # ld: libpacklib.a(kedit.o):kuip/klink1.h:11: multiple definition of `klnkaddr'; 58 # libzftplib.a(zftpcdf.o):zftp/zftpcdf.c:155: first defined here 59 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 60 61 makeFlags = [ 62 "FORTRANOPTIONS=$(FFLAGS)"
+1 -1
pkgs/development/libraries/physics/nlojet/default.nix
··· 14 ]; 15 16 # error: no member named 'finite' in the global namespace; did you mean simply 'finite'? 17 - NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-Dfinite=isfinite"; 18 19 meta = { 20 homepage = "http://www.desy.de/~znagy/Site/NLOJet++.html";
··· 14 ]; 15 16 # error: no member named 'finite' in the global namespace; did you mean simply 'finite'? 17 + env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-Dfinite=isfinite"; 18 19 meta = { 20 homepage = "http://www.desy.de/~znagy/Site/NLOJet++.html";
+1 -1
pkgs/development/libraries/pipewire/0.2.nix
··· 31 # Workaround build on gcc-10+ and clang11+: 32 # spa/plugins/bluez5/libspa-bluez5.so.p/bluez5-monitor.c.o:(.bss+0x0): 33 # multiple definition of `spa_a2dp_sink_factory' 34 - NIX_CFLAGS_COMPILE = [ "-fcommon" ]; 35 36 mesonFlags = [ 37 "-Ddocs=true"
··· 31 # Workaround build on gcc-10+ and clang11+: 32 # spa/plugins/bluez5/libspa-bluez5.so.p/bluez5-monitor.c.o:(.bss+0x0): 33 # multiple definition of `spa_a2dp_sink_factory' 34 + env.NIX_CFLAGS_COMPILE = toString [ "-fcommon" ]; 35 36 mesonFlags = [ 37 "-Ddocs=true"
+1 -1
pkgs/development/libraries/pmdk/default.nix
··· 21 22 patchPhase = "patchShebangs utils"; 23 24 - NIX_CFLAGS_COMPILE = "-Wno-error"; 25 26 installPhase = '' 27 make install prefix=$out
··· 21 22 patchPhase = "patchShebangs utils"; 23 24 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 25 26 installPhase = '' 27 make install prefix=$out
+1 -1
pkgs/development/libraries/poly2tri-c/default.nix
··· 28 glib 29 ]; 30 31 - NIX_CFLAGS_COMPILE = [ 32 "--std=gnu99" 33 "-Wno-error" 34 ];
··· 28 glib 29 ]; 30 31 + env.NIX_CFLAGS_COMPILE = toString [ 32 "--std=gnu99" 33 "-Wno-error" 34 ];
+1 -1
pkgs/development/libraries/portaudio/default.nix
··· 25 26 configureFlags = [ "--disable-mac-universal" "--enable-cxx" ]; 27 28 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=nullability-inferred-on-nested-type -Wno-error=nullability-completeness-on-arrays -Wno-error=implicit-const-int-float-conversion"; 29 30 propagatedBuildInputs = lib.optionals stdenv.isDarwin [ AudioUnit AudioToolbox CoreAudio CoreServices Carbon ]; 31
··· 25 26 configureFlags = [ "--disable-mac-universal" "--enable-cxx" ]; 27 28 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=nullability-inferred-on-nested-type -Wno-error=nullability-completeness-on-arrays -Wno-error=implicit-const-int-float-conversion"; 29 30 propagatedBuildInputs = lib.optionals stdenv.isDarwin [ AudioUnit AudioToolbox CoreAudio CoreServices Carbon ]; 31
+1 -1
pkgs/development/libraries/precice/default.nix
··· 18 "-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}" 19 ]; 20 21 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ "-D_GNU_SOURCE" ]; 22 23 nativeBuildInputs = [ cmake gcc ]; 24 buildInputs = [ boost eigen libxml2 mpi python3 python3.pkgs.numpy ];
··· 18 "-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}" 19 ]; 20 21 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ "-D_GNU_SOURCE" ]); 22 23 nativeBuildInputs = [ cmake gcc ]; 24 buildInputs = [ boost eigen libxml2 mpi python3 python3.pkgs.numpy ];
+1 -1
pkgs/development/libraries/prime-server/default.nix
··· 17 buildInputs = [ curl zeromq czmq libsodium ]; 18 19 # https://github.com/kevinkreiser/prime_server/issues/95 20 - NIX_CFLAGS_COMPILE = [ "-Wno-error=unused-variable" ]; 21 22 meta = with lib; { 23 description = "Non-blocking (web)server API for distributed computing and SOA based on zeromq";
··· 17 buildInputs = [ curl zeromq czmq libsodium ]; 18 19 # https://github.com/kevinkreiser/prime_server/issues/95 20 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=unused-variable" ]; 21 22 meta = with lib; { 23 description = "Non-blocking (web)server API for distributed computing and SOA based on zeromq";
+1 -1
pkgs/development/libraries/prometheus-client-c/default.nix
··· 48 # ld: CMakeFiles/prom.dir/src/prom_process_stat.c.o:(.bss+0x0): multiple definition of 49 # `prom_process_start_time_seconds'; CMakeFiles/prom.dir/src/prom_collector.c.o:(.bss+0x0): first defined here 50 # Should be fixed in 1.2.0 and later: https://github.com/digitalocean/prometheus-client-c/pull/25 51 - NIX_CFLAGS_COMPILE = "-fcommon"; 52 53 preConfigure = '' 54 cd ${subdir}
··· 48 # ld: CMakeFiles/prom.dir/src/prom_process_stat.c.o:(.bss+0x0): multiple definition of 49 # `prom_process_start_time_seconds'; CMakeFiles/prom.dir/src/prom_collector.c.o:(.bss+0x0): first defined here 50 # Should be fixed in 1.2.0 and later: https://github.com/digitalocean/prometheus-client-c/pull/25 51 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 52 53 preConfigure = '' 54 cd ${subdir}
+1 -1
pkgs/development/libraries/qoauth/default.nix
··· 21 buildInputs = [ qtbase qca-qt5 ]; 22 nativeBuildInputs = [ qmake ]; 23 24 - NIX_CFLAGS_COMPILE = "-I${qca-qt5}/include/Qca-qt5/QtCrypto"; 25 NIX_LDFLAGS = "-lqca-qt5"; 26 27 dontWrapQtApps = true;
··· 21 buildInputs = [ qtbase qca-qt5 ]; 22 nativeBuildInputs = [ qmake ]; 23 24 + env.NIX_CFLAGS_COMPILE = "-I${qca-qt5}/include/Qca-qt5/QtCrypto"; 25 NIX_LDFLAGS = "-lqca-qt5"; 26 27 dontWrapQtApps = true;
+1 -1
pkgs/development/libraries/qt-4.x/4.8/default.nix
··· 198 199 enableParallelBuilding = true; 200 201 - NIX_CFLAGS_COMPILE = toString ( 202 # with gcc7 the warnings blow the log over Hydra's limit 203 [ "-Wno-expansion-to-defined" "-Wno-unused-local-typedefs" ] 204 ++ lib.optional stdenv.isLinux "-std=gnu++98" # gnu++ in (Obj)C flags is no good on Darwin
··· 198 199 enableParallelBuilding = true; 200 201 + env.NIX_CFLAGS_COMPILE = toString ( 202 # with gcc7 the warnings blow the log over Hydra's limit 203 [ "-Wno-expansion-to-defined" "-Wno-unused-local-typedefs" ] 204 ++ lib.optional stdenv.isLinux "-std=gnu++98" # gnu++ in (Obj)C flags is no good on Darwin
+1 -1
pkgs/development/libraries/qt-5/modules/qt3d.nix
··· 5 qtInputs = [ qtbase qtdeclarative ]; 6 outputs = [ "out" "dev" "bin" ]; 7 # error: use of undeclared identifier 'stat64' 8 - NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-Dstat64=stat"; 9 }
··· 5 qtInputs = [ qtbase qtdeclarative ]; 6 outputs = [ "out" "dev" "bin" ]; 7 # error: use of undeclared identifier 'stat64' 8 + env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-Dstat64=stat"; 9 }
+1 -1
pkgs/development/libraries/qt-5/modules/qtbase.nix
··· 176 done 177 ''; 178 179 - NIX_CFLAGS_COMPILE = toString ([ 180 "-Wno-error=sign-compare" # freetype-2.5.4 changed signedness of some struct fields 181 ''-DNIXPKGS_QTCOMPOSE="${libX11.out}/share/X11/locale"'' 182 ''-DLIBRESOLV_SO="${stdenv.cc.libc.out}/lib/libresolv"''
··· 176 done 177 ''; 178 179 + env.NIX_CFLAGS_COMPILE = toString ([ 180 "-Wno-error=sign-compare" # freetype-2.5.4 changed signedness of some struct fields 181 ''-DNIXPKGS_QTCOMPOSE="${libX11.out}/share/X11/locale"'' 182 ''-DLIBRESOLV_SO="${stdenv.cc.libc.out}/lib/libresolv"''
+1 -1
pkgs/development/libraries/qt-5/modules/qtserialport.nix
··· 3 qtModule { 4 pname = "qtserialport"; 5 qtInputs = [ qtbase ]; 6 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isLinux "-DNIXPKGS_LIBUDEV=\"${lib.getLib systemd}/lib/libudev\""; 7 }
··· 3 qtModule { 4 pname = "qtserialport"; 5 qtInputs = [ qtbase ]; 6 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isLinux "-DNIXPKGS_LIBUDEV=\"${lib.getLib systemd}/lib/libudev\""; 7 }
+1 -1
pkgs/development/libraries/qt-5/modules/qttools.nix
··· 36 "bin/macdeployqt" 37 ]; 38 39 - NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"''; 40 41 setupHook = ../hooks/qttools-setup-hook.sh; 42 }
··· 36 "bin/macdeployqt" 37 ]; 38 39 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"''; 40 41 setupHook = ../hooks/qttools-setup-hook.sh; 42 }
+2 -2
pkgs/development/libraries/qt-5/modules/qtwebengine.nix
··· 102 --replace "-Wl,-fatal_warnings" "" 103 '') + postPatch; 104 105 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ 106 # with gcc8, -Wclass-memaccess became part of -Wall and this exceeds the logging limit 107 "-Wno-class-memaccess" 108 ] ++ lib.optionals (stdenv.hostPlatform.gcc.arch or "" == "sandybridge") [ ··· 111 "-march=westmere" 112 ] ++ lib.optionals stdenv.cc.isClang [ 113 "-Wno-elaborated-enum-base" 114 - ]; 115 116 preConfigure = '' 117 export NINJAFLAGS=-j$NIX_BUILD_CORES
··· 102 --replace "-Wl,-fatal_warnings" "" 103 '') + postPatch; 104 105 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ 106 # with gcc8, -Wclass-memaccess became part of -Wall and this exceeds the logging limit 107 "-Wno-class-memaccess" 108 ] ++ lib.optionals (stdenv.hostPlatform.gcc.arch or "" == "sandybridge") [ ··· 111 "-march=westmere" 112 ] ++ lib.optionals stdenv.cc.isClang [ 113 "-Wno-elaborated-enum-base" 114 + ]); 115 116 preConfigure = '' 117 export NINJAFLAGS=-j$NIX_BUILD_CORES
+2 -2
pkgs/development/libraries/qt-5/modules/qtwebkit.nix
··· 35 "-DMACOS_FORCE_SYSTEM_XML_LIBRARIES=OFF" 36 ]; 37 38 - NIX_CFLAGS_COMPILE = [ 39 # with gcc7 this warning blows the log over Hydra's limit 40 "-Wno-expansion-to-defined" 41 ] ··· 43 ++ lib.optional stdenv.cc.isGNU "-Wno-class-memaccess" 44 # with clang this warning blows the log over Hydra's limit 45 ++ lib.optional stdenv.isDarwin "-Wno-inconsistent-missing-override" 46 - ++ lib.optional (!stdenv.isDarwin) ''-DNIXPKGS_LIBUDEV="${lib.getLib systemd}/lib/libudev"''; 47 48 doCheck = false; # fails 13 out of 13 tests (ctest) 49
··· 35 "-DMACOS_FORCE_SYSTEM_XML_LIBRARIES=OFF" 36 ]; 37 38 + env.NIX_CFLAGS_COMPILE = toString ([ 39 # with gcc7 this warning blows the log over Hydra's limit 40 "-Wno-expansion-to-defined" 41 ] ··· 43 ++ lib.optional stdenv.cc.isGNU "-Wno-class-memaccess" 44 # with clang this warning blows the log over Hydra's limit 45 ++ lib.optional stdenv.isDarwin "-Wno-inconsistent-missing-override" 46 + ++ lib.optional (!stdenv.isDarwin) ''-DNIXPKGS_LIBUDEV="${lib.getLib systemd}/lib/libudev"''); 47 48 doCheck = false; # fails 13 out of 13 tests (ctest) 49
+1 -1
pkgs/development/libraries/qt-6/modules/qtmultimedia.nix
··· 30 ++ lib.optionals stdenv.isLinux [ gst-vaapi ] 31 ++ lib.optionals stdenv.isDarwin [ VideoToolbox ]; 32 33 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin 34 "-include AudioToolbox/AudioToolbox.h"; 35 NIX_LDFLAGS = lib.optionalString stdenv.isDarwin 36 "-framework AudioToolbox";
··· 30 ++ lib.optionals stdenv.isLinux [ gst-vaapi ] 31 ++ lib.optionals stdenv.isDarwin [ VideoToolbox ]; 32 33 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin 34 "-include AudioToolbox/AudioToolbox.h"; 35 NIX_LDFLAGS = lib.optionalString stdenv.isDarwin 36 "-framework AudioToolbox";
+1 -1
pkgs/development/libraries/qt-6/modules/qtquick3dphysics.nix
··· 8 qtModule { 9 pname = "qtquick3dphysics"; 10 qtInputs = [ qtbase qtquick3d ]; 11 - NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) 12 "-faligned-allocation"; 13 }
··· 8 qtModule { 9 pname = "qtquick3dphysics"; 10 qtInputs = [ qtbase qtquick3d ]; 11 + env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) 12 "-faligned-allocation"; 13 }
+1 -1
pkgs/development/libraries/qt-6/modules/qttools.nix
··· 14 patches = [ 15 ../patches/qttools-paths.patch 16 ]; 17 - NIX_CFLAGS_COMPILE = [ 18 "-DNIX_OUTPUT_DEV=\"${placeholder "dev"}\"" 19 ]; 20
··· 14 patches = [ 15 ../patches/qttools-paths.patch 16 ]; 17 + env.NIX_CFLAGS_COMPILE = toString [ 18 "-DNIX_OUTPUT_DEV=\"${placeholder "dev"}\"" 19 ]; 20
+1 -1
pkgs/development/libraries/qt-mobility/default.nix
··· 11 sha256 = "14713pbscysd6d0b9rgm7gg145jzwvgdn22778pf2v13qzvfmy1i"; 12 }; 13 14 - NIX_CFLAGS_COMPILE="-fpermissive"; 15 16 configurePhase = '' 17 ./configure -prefix $out
··· 11 sha256 = "14713pbscysd6d0b9rgm7gg145jzwvgdn22778pf2v13qzvfmy1i"; 12 }; 13 14 + env.NIX_CFLAGS_COMPILE = "-fpermissive"; 15 16 configurePhase = '' 17 ./configure -prefix $out
+1 -1
pkgs/development/libraries/rdkafka/default.nix
··· 15 16 buildInputs = [ zlib zstd openssl ]; 17 18 - NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow"; 19 20 postPatch = '' 21 patchShebangs .
··· 15 16 buildInputs = [ zlib zstd openssl ]; 17 18 + env.NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow"; 19 20 postPatch = '' 21 patchShebangs .
+1 -1
pkgs/development/libraries/rlottie/default.nix
··· 28 29 nativeBuildInputs = [ meson ninja pkg-config ]; 30 31 - NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-U__ARM_NEON__"; 32 33 meta = with lib; { 34 homepage = "https://github.com/Samsung/rlottie";
··· 28 29 nativeBuildInputs = [ meson ninja pkg-config ]; 30 31 + env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-U__ARM_NEON__"; 32 33 meta = with lib; { 34 homepage = "https://github.com/Samsung/rlottie";
+2 -2
pkgs/development/libraries/rocksdb/default.nix
··· 40 "tools" 41 ]; 42 43 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ 44 "-Wno-error=deprecated-copy" 45 "-Wno-error=pessimizing-move" 46 # Needed with GCC 12 ··· 49 ] ++ lib.optionals stdenv.cc.isClang [ 50 "-Wno-error=unused-private-field" 51 "-faligned-allocation" 52 - ]; 53 54 cmakeFlags = [ 55 "-DPORTABLE=1"
··· 40 "tools" 41 ]; 42 43 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ 44 "-Wno-error=deprecated-copy" 45 "-Wno-error=pessimizing-move" 46 # Needed with GCC 12 ··· 49 ] ++ lib.optionals stdenv.cc.isClang [ 50 "-Wno-error=unused-private-field" 51 "-faligned-allocation" 52 + ]); 53 54 cmakeFlags = [ 55 "-DPORTABLE=1"
+1 -1
pkgs/development/libraries/roctracer/default.nix
··· 62 "-DCMAKE_INSTALL_INCLUDEDIR=include" 63 ]; 64 65 - NIX_CFLAGS_COMPILE = [ 66 # Needed with GCC 12 67 "-Wno-error=array-bounds" 68 ];
··· 62 "-DCMAKE_INSTALL_INCLUDEDIR=include" 63 ]; 64 65 + env.NIX_CFLAGS_COMPILE = toString [ 66 # Needed with GCC 12 67 "-Wno-error=array-bounds" 68 ];
+1 -1
pkgs/development/libraries/science/math/nccl/default.nix
··· 38 addOpenGLRunpath $out/lib/lib*.so 39 ''; 40 41 - NIX_CFLAGS_COMPILE = [ "-Wno-unused-function" ]; 42 43 enableParallelBuilding = true; 44
··· 38 addOpenGLRunpath $out/lib/lib*.so 39 ''; 40 41 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-unused-function" ]; 42 43 enableParallelBuilding = true; 44
+1 -1
pkgs/development/libraries/science/math/osi/default.nix
··· 25 lib.optionalString withCplex "-L${cplex}/cplex/bin/${cplex.libArch}"; 26 27 # Compile errors 28 - NIX_CFLAGS_COMPILE = "-Wno-cast-qual"; 29 hardeningDisable = [ "format" ]; 30 31 enableParallelBuilding = true;
··· 25 lib.optionalString withCplex "-L${cplex}/cplex/bin/${cplex.libArch}"; 26 27 # Compile errors 28 + env.NIX_CFLAGS_COMPILE = "-Wno-cast-qual"; 29 hardeningDisable = [ "format" ]; 30 31 enableParallelBuilding = true;
+1 -1
pkgs/development/libraries/science/math/suitesparse/4.4.nix
··· 53 "LAPACK=-llapack" 54 ]; 55 56 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin " -DNTIMER"; 57 58 postInstall = '' 59 # Build and install shared library
··· 53 "LAPACK=-llapack" 54 ]; 55 56 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin " -DNTIMER"; 57 58 postInstall = '' 59 # Build and install shared library
+1 -1
pkgs/development/libraries/shibboleth-sp/default.nix
··· 20 "--with-fastcgi" 21 ]; 22 23 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 24 25 enableParallelBuilding = true; 26
··· 20 "--with-fastcgi" 21 ]; 22 23 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 24 25 enableParallelBuilding = true; 26
+1 -1
pkgs/development/libraries/smesh/default.nix
··· 23 nativeBuildInputs = [ cmake ninja ]; 24 buildInputs = [ opencascade ] ++ lib.optionals stdenv.isDarwin [ Cocoa ]; 25 26 - NIX_CFLAGS_COMPILE = [ "-std=c++11" ]; 27 28 meta = with lib; { 29 description = "Extension to OCE providing advanced meshing features";
··· 23 nativeBuildInputs = [ cmake ninja ]; 24 buildInputs = [ opencascade ] ++ lib.optionals stdenv.isDarwin [ Cocoa ]; 25 26 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++11" ]; 27 28 meta = with lib; { 29 description = "Extension to OCE providing advanced meshing features";
+1 -1
pkgs/development/libraries/spdk/default.nix
··· 61 62 configureFlags = [ "--with-dpdk=${dpdk'}" ]; 63 64 - NIX_CFLAGS_COMPILE = "-mssse3"; # Necessary to compile. 65 # otherwise does not find strncpy when compiling 66 NIX_LDFLAGS = "-lbsd"; 67
··· 61 62 configureFlags = [ "--with-dpdk=${dpdk'}" ]; 63 64 + env.NIX_CFLAGS_COMPILE = "-mssse3"; # Necessary to compile. 65 # otherwise does not find strncpy when compiling 66 NIX_LDFLAGS = "-lbsd"; 67
+1 -1
pkgs/development/libraries/speech-tools/default.nix
··· 14 # Workaround build failure on -fno-common toolchains: 15 # ld: libestools.a(editline.o):(.bss+0x28): multiple definition of 16 # `editline_history_file'; libestools.a(siodeditline.o):(.data.rel.local+0x8): first defined here 17 - NIX_CFLAGS_COMPILE = "-fcommon"; 18 19 preConfigure = '' 20 sed -e s@/usr/bin/@@g -i $( grep -rl '/usr/bin/' . )
··· 14 # Workaround build failure on -fno-common toolchains: 15 # ld: libestools.a(editline.o):(.bss+0x28): multiple definition of 16 # `editline_history_file'; libestools.a(siodeditline.o):(.data.rel.local+0x8): first defined here 17 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 18 19 preConfigure = '' 20 sed -e s@/usr/bin/@@g -i $( grep -rl '/usr/bin/' . )
+1 -1
pkgs/development/libraries/spice/default.nix
··· 93 gdk-pixbuf 94 ]; 95 96 - NIX_CFLAGS_COMPILE = "-fno-stack-protector"; 97 98 mesonFlags = [ 99 "-Dgstreamer=1.0"
··· 93 gdk-pixbuf 94 ]; 95 96 + env.NIX_CFLAGS_COMPILE = "-fno-stack-protector"; 97 98 mesonFlags = [ 99 "-Dgstreamer=1.0"
+1 -1
pkgs/development/libraries/sqlite/default.nix
··· 36 37 configureFlags = [ "--enable-threadsafe" ] ++ lib.optional interactive "--enable-readline"; 38 39 - NIX_CFLAGS_COMPILE = toString ([ 40 "-DSQLITE_ENABLE_COLUMN_METADATA" 41 "-DSQLITE_ENABLE_DBSTAT_VTAB" 42 "-DSQLITE_ENABLE_JSON1"
··· 36 37 configureFlags = [ "--enable-threadsafe" ] ++ lib.optional interactive "--enable-readline"; 38 39 + env.NIX_CFLAGS_COMPILE = toString ([ 40 "-DSQLITE_ENABLE_COLUMN_METADATA" 41 "-DSQLITE_ENABLE_DBSTAT_VTAB" 42 "-DSQLITE_ENABLE_JSON1"
+1 -1
pkgs/development/libraries/swiftshader/default.nix
··· 13 nativeBuildInputs = [ cmake python3 jq ]; 14 buildInputs = [ libX11 libXext zlib ]; 15 16 - NIX_CFLAGS_COMPILE = [ 17 # Needed with GCC 12 18 "-Wno-error=array-bounds" 19 "-Wno-error=uninitialized"
··· 13 nativeBuildInputs = [ cmake python3 jq ]; 14 buildInputs = [ libX11 libXext zlib ]; 15 16 + env.NIX_CFLAGS_COMPILE = toString [ 17 # Needed with GCC 12 18 "-Wno-error=array-bounds" 19 "-Wno-error=uninitialized"
+1 -1
pkgs/development/libraries/tinyxml/2.6.2.nix
··· 27 28 hardeningDisable = [ "format" ]; 29 30 - NIX_CFLAGS_COMPILE = 31 lib.optionalString stdenv.isDarwin "-mmacosx-version-min=10.9"; 32 33 nativeBuildInputs = [ unzip ];
··· 27 28 hardeningDisable = [ "format" ]; 29 30 + env.NIX_CFLAGS_COMPILE = 31 lib.optionalString stdenv.isDarwin "-mmacosx-version-min=10.9"; 32 33 nativeBuildInputs = [ unzip ];
+1 -1
pkgs/development/libraries/ucl/default.nix
··· 10 }; 11 12 # needed to successfully compile with gcc 6 13 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=c90"; 14 15 meta = { 16 homepage = "http://www.oberhumer.com/opensource/ucl/";
··· 10 }; 11 12 # needed to successfully compile with gcc 6 13 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=c90"; 14 15 meta = { 16 homepage = "http://www.oberhumer.com/opensource/ucl/";
+1 -1
pkgs/development/libraries/uri/default.nix
··· 11 sha256 = "148361pixrm94q6v04k13s1msa04bx9yc3djb0lxpa7dlw19vhcd"; 12 }; 13 14 - NIX_CFLAGS_COMPILE = [ 15 "-Wno-error=parentheses" 16 # Needed with GCC 12 17 "-Wno-error=deprecated-declarations"
··· 11 sha256 = "148361pixrm94q6v04k13s1msa04bx9yc3djb0lxpa7dlw19vhcd"; 12 }; 13 14 + env.NIX_CFLAGS_COMPILE = toString [ 15 "-Wno-error=parentheses" 16 # Needed with GCC 12 17 "-Wno-error=deprecated-declarations"
+1 -1
pkgs/development/libraries/ustr/default.nix
··· 13 patches = [ ./va_args.patch ]; 14 15 # Work around gcc5 switch to gnu11 16 - NIX_CFLAGS_COMPILE = "-std=gnu89"; 17 18 # Fix detection of stdint.h 19 postPatch = ''
··· 13 patches = [ ./va_args.patch ]; 14 15 # Work around gcc5 switch to gnu11 16 + env.NIX_CFLAGS_COMPILE = "-std=gnu89"; 17 18 # Fix detection of stdint.h 19 postPatch = ''
+1 -1
pkgs/development/libraries/v8/8_x.nix
··· 125 ''v8_snapshot_toolchain="//build/toolchain/linux/unbundle:default"'' 126 ] ++ lib.optional stdenv.cc.isClang ''clang_base_path="${stdenv.cc}"''; 127 128 - NIX_CFLAGS_COMPILE = "-O2"; 129 FORCE_MAC_SDK_MIN = stdenv.targetPlatform.sdkVer or "10.12"; 130 131 nativeBuildInputs = [
··· 125 ''v8_snapshot_toolchain="//build/toolchain/linux/unbundle:default"'' 126 ] ++ lib.optional stdenv.cc.isClang ''clang_base_path="${stdenv.cc}"''; 127 128 + env.NIX_CFLAGS_COMPILE = "-O2"; 129 FORCE_MAC_SDK_MIN = stdenv.targetPlatform.sdkVer or "10.12"; 130 131 nativeBuildInputs = [
+1 -1
pkgs/development/libraries/v8/default.nix
··· 135 ] ++ lib.optional stdenv.cc.isClang ''clang_base_path="${llvmCcAndBintools}"'' 136 ++ lib.optional stdenv.isDarwin ''use_lld=false''; 137 138 - NIX_CFLAGS_COMPILE = "-O2"; 139 FORCE_MAC_SDK_MIN = stdenv.targetPlatform.sdkVer or "10.12"; 140 141 nativeBuildInputs = [
··· 135 ] ++ lib.optional stdenv.cc.isClang ''clang_base_path="${llvmCcAndBintools}"'' 136 ++ lib.optional stdenv.isDarwin ''use_lld=false''; 137 138 + env.NIX_CFLAGS_COMPILE = "-O2"; 139 FORCE_MAC_SDK_MIN = stdenv.targetPlatform.sdkVer or "10.12"; 140 141 nativeBuildInputs = [
+1 -1
pkgs/development/libraries/vaapi-intel-hybrid/default.nix
··· 26 enableParallelBuilding = true; 27 28 # Workaround build failure on -fno-common toolchains like upstream gcc-10. 29 - NIX_CFLAGS_COMPILE = "-fcommon"; 30 31 configureFlags = [ 32 "--enable-drm"
··· 26 enableParallelBuilding = true; 27 28 # Workaround build failure on -fno-common toolchains like upstream gcc-10. 29 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 30 31 configureFlags = [ 32 "--enable-drm"
+1 -1
pkgs/development/libraries/vigra/default.nix
··· 28 sha256 = "sha256-pFANoT00Wkh1/Dyd2x75IVTfyaoVA7S86tafUSr29Og="; 29 }; 30 31 - NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR"; 32 33 nativeBuildInputs = [ cmake ]; 34 buildInputs = [
··· 28 sha256 = "sha256-pFANoT00Wkh1/Dyd2x75IVTfyaoVA7S86tafUSr29Og="; 29 }; 30 31 + env.NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR"; 32 33 nativeBuildInputs = [ cmake ]; 34 buildInputs = [
+1 -1
pkgs/development/libraries/vte/default.nix
··· 93 ]; 94 95 # error: argument unused during compilation: '-pie' [-Werror,-Wunused-command-line-argument] 96 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isMusl "-Wno-unused-command-line-argument"; 97 98 postPatch = '' 99 patchShebangs perf/*
··· 93 ]; 94 95 # error: argument unused during compilation: '-pie' [-Werror,-Wunused-command-line-argument] 96 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isMusl "-Wno-unused-command-line-argument"; 97 98 postPatch = '' 99 patchShebangs perf/*
+1 -1
pkgs/development/libraries/wxwidgets/wxmac30.nix
··· 77 ./wx-config --libs 78 ''; 79 80 - NIX_CFLAGS_COMPILE = "-Wno-undef"; 81 82 enableParallelBuilding = true; 83
··· 77 ./wx-config --libs 78 ''; 79 80 + env.NIX_CFLAGS_COMPILE = "-Wno-undef"; 81 82 enableParallelBuilding = true; 83
+1 -1
pkgs/development/libraries/xml-tooling-c/default.nix
··· 15 buildInputs = [ boost curl openssl log4shib xercesc xml-security-c ]; 16 nativeBuildInputs = [ autoreconfHook pkg-config ]; 17 18 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 19 20 enableParallelBuilding = true; 21
··· 15 buildInputs = [ boost curl openssl log4shib xercesc xml-security-c ]; 16 nativeBuildInputs = [ autoreconfHook pkg-config ]; 17 18 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 19 20 enableParallelBuilding = true; 21
+1 -1
pkgs/development/libraries/zlib/default.nix
··· 102 103 # As zlib takes part in the stdenv building, we don't want references 104 # to the bootstrap-tools libgcc (as uses to happen on arm/mips) 105 - NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.hostPlatform.isDarwin) "-static-libgcc"; 106 107 # We don't strip on static cross-compilation because of reports that native 108 # stripping corrupted the target library; see commit 12e960f5 for the report.
··· 102 103 # As zlib takes part in the stdenv building, we don't want references 104 # to the bootstrap-tools libgcc (as uses to happen on arm/mips) 105 + env.NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.hostPlatform.isDarwin) "-static-libgcc"; 106 107 # We don't strip on static cross-compilation because of reports that native 108 # stripping corrupted the target library; see commit 12e960f5 for the report.
+1 -1
pkgs/development/misc/msp430/mspds/default.nix
··· 25 libName = "libmsp430${stdenv.hostPlatform.extensions.sharedLibrary}"; 26 makeFlags = [ "OUTPUT=$(libName)" "HIDOBJ=" ]; 27 NIX_LDFLAGS = [ "-lpugixml" "-lhidapi${hidapiDriver}" ]; 28 - NIX_CFLAGS_COMPILE = [ "-I${hidapi}/include/hidapi" ]; 29 30 patches = [ ./bsl430.patch ]; 31
··· 25 libName = "libmsp430${stdenv.hostPlatform.extensions.sharedLibrary}"; 26 makeFlags = [ "OUTPUT=$(libName)" "HIDOBJ=" ]; 27 NIX_LDFLAGS = [ "-lpugixml" "-lhidapi${hidapiDriver}" ]; 28 + env.NIX_CFLAGS_COMPILE = toString [ "-I${hidapi}/include/hidapi" ]; 29 30 patches = [ ./bsl430.patch ]; 31
+1 -1
pkgs/development/mobile/webos/novacomd.nix
··· 32 # Workaround build failure on -fno-common toolchains: 33 # ld: src/host/usb-linux.c:82: multiple definition of `t_recovery_queue'; 34 # src/host/recovery.c:45: first defined here 35 - NIX_CFLAGS_COMPILE = "-fcommon"; 36 37 cmakeFlags = [ "-DWEBOS_TARGET_MACHINE_IMPL=host" ]; 38
··· 32 # Workaround build failure on -fno-common toolchains: 33 # ld: src/host/usb-linux.c:82: multiple definition of `t_recovery_queue'; 34 # src/host/recovery.c:45: first defined here 35 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 36 37 cmakeFlags = [ "-DWEBOS_TARGET_MACHINE_IMPL=host" ]; 38
+1 -1
pkgs/development/mobile/xpwn/default.nix
··· 14 # Workaround build failure on -fno-common toolchains: 15 # ld: ../ipsw-patch/libxpwn.a(libxpwn.c.o):(.bss+0x4): multiple definition of 16 # `endianness'; CMakeFiles/xpwn-bin.dir/src/xpwn.cpp.o:(.bss+0x0): first defined here 17 - NIX_CFLAGS_COMPILE = "-fcommon"; 18 19 preConfigure = '' 20 rm BUILD # otherwise `mkdir build` fails on case insensitive file systems
··· 14 # Workaround build failure on -fno-common toolchains: 15 # ld: ../ipsw-patch/libxpwn.a(libxpwn.c.o):(.bss+0x4): multiple definition of 16 # `endianness'; CMakeFiles/xpwn-bin.dir/src/xpwn.cpp.o:(.bss+0x0): first defined here 17 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 18 19 preConfigure = '' 20 rm BUILD # otherwise `mkdir build` fails on case insensitive file systems
+1 -1
pkgs/development/ocaml-modules/curses/default.nix
··· 18 nativeBuildInputs = [ ocaml findlib ]; 19 20 # Fix build for recent ncurses versions 21 - NIX_CFLAGS_COMPILE = "-DNCURSES_INTERNALS=1"; 22 23 createFindlibDestdir = true; 24
··· 18 nativeBuildInputs = [ ocaml findlib ]; 19 20 # Fix build for recent ncurses versions 21 + env.NIX_CFLAGS_COMPILE = "-DNCURSES_INTERNALS=1"; 22 23 createFindlibDestdir = true; 24
+1 -1
pkgs/development/ocaml-modules/eigen/default.nix
··· 15 16 minimumOCamlVersion = "4.02"; 17 18 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; 19 20 propagatedBuildInputs = [ ctypes ]; 21
··· 15 16 minimumOCamlVersion = "4.02"; 17 18 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; 19 20 propagatedBuildInputs = [ ctypes ]; 21
+3 -3
pkgs/development/ocaml-modules/lablgtk/default.nix
··· 12 rev = version; 13 sha256 = "sha256-69Svno0qLaUifMscnVuPUJlCo9d8Lee+1qiYx34G3Po="; 14 }; 15 - NIX_CFLAGS_COMPILE = null; 16 buildInputs = [ camlp-streams ]; 17 } else if check "3.12" then { 18 version = "2.18.5"; ··· 24 # gcc-10. Otherwise build fails as: 25 # ld: ml_gtktree.o:(.bss+0x0): multiple definition of 26 # `ml_table_extension_events'; ml_gdkpixbuf.o:(.bss+0x0): first defined here 27 - NIX_CFLAGS_COMPILE = "-fcommon"; 28 } else throw "lablgtk is not available for OCaml ${ocaml.version}"; 29 in 30 31 stdenv.mkDerivation { 32 pname = "ocaml${ocaml.version}-lablgtk"; 33 - inherit (param) version src NIX_CFLAGS_COMPILE; 34 35 # gnumake42: https://github.com/garrigue/lablgtk/issues/162 36 nativeBuildInputs = [ pkg-config ocaml findlib gnumake42 ];
··· 12 rev = version; 13 sha256 = "sha256-69Svno0qLaUifMscnVuPUJlCo9d8Lee+1qiYx34G3Po="; 14 }; 15 + env.NIX_CFLAGS_COMPILE = null; 16 buildInputs = [ camlp-streams ]; 17 } else if check "3.12" then { 18 version = "2.18.5"; ··· 24 # gcc-10. Otherwise build fails as: 25 # ld: ml_gtktree.o:(.bss+0x0): multiple definition of 26 # `ml_table_extension_events'; ml_gdkpixbuf.o:(.bss+0x0): first defined here 27 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 28 } else throw "lablgtk is not available for OCaml ${ocaml.version}"; 29 in 30 31 stdenv.mkDerivation { 32 pname = "ocaml${ocaml.version}-lablgtk"; 33 + inherit (param) version src env; 34 35 # gnumake42: https://github.com/garrigue/lablgtk/issues/162 36 nativeBuildInputs = [ pkg-config ocaml findlib gnumake42 ];
+1 -1
pkgs/development/ocaml-modules/num/default.nix
··· 29 inherit (src.meta) homepage; 30 }; 31 } // (if lib.versions.majorMinor ocaml.version == "4.06" then { 32 - NIX_CFLAGS_COMPILE = "-fcommon"; 33 } else {}) 34 )
··· 29 inherit (src.meta) homepage; 30 }; 31 } // (if lib.versions.majorMinor ocaml.version == "4.06" then { 32 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 33 } else {}) 34 )
+1 -1
pkgs/development/pharo/vm/build-vm-legacy.nix
··· 44 # gcc-10. Otherwise build fails as: 45 # ld: CMakeFiles/pharo.dir/build/pharo-vm-2016.02.18/src/vm/gcc3x-cointerp.c.o:(.bss+0x88): multiple definition of 46 # `sendTrace'; CMakeFiles/pharo.dir/build/pharo-vm-2016.02.18/src/vm/cogit.c.o:(.bss+0x84): first defined here 47 - NIX_CFLAGS_COMPILE = "-fcommon"; 48 49 installPhase = '' 50 mkdir -p "$prefix/lib/$name"
··· 44 # gcc-10. Otherwise build fails as: 45 # ld: CMakeFiles/pharo.dir/build/pharo-vm-2016.02.18/src/vm/gcc3x-cointerp.c.o:(.bss+0x88): multiple definition of 46 # `sendTrace'; CMakeFiles/pharo.dir/build/pharo-vm-2016.02.18/src/vm/cogit.c.o:(.bss+0x84): first defined here 47 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 48 49 installPhase = '' 50 mkdir -p "$prefix/lib/$name"
+1 -1
pkgs/development/pharo/vm/build-vm.nix
··· 90 # gcc-10. Otherwise build fails as: 91 # ld: vm/vm.a(cogit.o):/build/source/spur64src/vm/cointerp.h:358: multiple definition of `checkAllocFiller'; 92 # vm/vm.a(gcc3x-cointerp.o):/build/source/spur64src/vm/cointerp.h:358: first defined here 93 - NIX_CFLAGS_COMPILE = "-fcommon"; 94 95 CFLAGS = "-DPharoVM -DIMMUTABILITY=1 -msse2 -D_GNU_SOURCE -DCOGMTVM=0 -g -O2 -DNDEBUG -DDEBUGVM=0"; 96 LDFLAGS = "-Wl,-z,now";
··· 90 # gcc-10. Otherwise build fails as: 91 # ld: vm/vm.a(cogit.o):/build/source/spur64src/vm/cointerp.h:358: multiple definition of `checkAllocFiller'; 92 # vm/vm.a(gcc3x-cointerp.o):/build/source/spur64src/vm/cointerp.h:358: first defined here 93 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 94 95 CFLAGS = "-DPharoVM -DIMMUTABILITY=1 -msse2 -D_GNU_SOURCE -DCOGMTVM=0 -g -O2 -DNDEBUG -DDEBUGVM=0"; 96 LDFLAGS = "-Wl,-z,now";
+1 -1
pkgs/development/python-modules/cffi/default.nix
··· 75 propagatedBuildInputs = [ pycparser ]; 76 77 # The tests use -Werror but with python3.6 clang detects some unreachable code. 78 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang 79 "-Wno-unused-command-line-argument -Wno-unreachable-code -Wno-c++11-narrowing"; 80 81 doCheck = !stdenv.hostPlatform.isMusl;
··· 75 propagatedBuildInputs = [ pycparser ]; 76 77 # The tests use -Werror but with python3.6 clang detects some unreachable code. 78 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang 79 "-Wno-unused-command-line-argument -Wno-unreachable-code -Wno-c++11-narrowing"; 80 81 doCheck = !stdenv.hostPlatform.isMusl;
+1 -1
pkgs/development/python-modules/cld2-cffi/default.nix
··· 13 nativeCheckInputs = [ nose ]; 14 15 # gcc doesn't approve of this code, so disable -Werror 16 - NIX_CFLAGS_COMPILE = "-w" + lib.optionalString stdenv.cc.isClang " -Wno-error=c++11-narrowing"; 17 18 checkPhase = "nosetests -v"; 19
··· 13 nativeCheckInputs = [ nose ]; 14 15 # gcc doesn't approve of this code, so disable -Werror 16 + env.NIX_CFLAGS_COMPILE = "-w" + lib.optionalString stdenv.cc.isClang " -Wno-error=c++11-narrowing"; 17 18 checkPhase = "nosetests -v"; 19
+1 -1
pkgs/development/python-modules/datatable/default.nix
··· 44 nativeCheckInputs = [ docutils pytestCheckHook ]; 45 46 LLVM = llvm; 47 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-isystem ${lib.getDev libcxx}/include/c++/v1"; 48 49 # test suite is very cpu intensive, only run small subset to ensure package is working as expected 50 pytestFlagsArray = [ "tests/test-sets.py" ];
··· 44 nativeCheckInputs = [ docutils pytestCheckHook ]; 45 46 LLVM = llvm; 47 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-isystem ${lib.getDev libcxx}/include/c++/v1"; 48 49 # test suite is very cpu intensive, only run small subset to ensure package is working as expected 50 pytestFlagsArray = [ "tests/test-sets.py" ];
+1 -1
pkgs/development/python-modules/kivy/default.nix
··· 59 # prefer pkg-config over hardcoded framework paths 60 USE_OSX_FRAMEWORKS = 0; 61 # work around python distutils compiling C++ with $CC (see issue #26709) 62 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; 63 64 postPatch = lib.optionalString stdenv.isLinux '' 65 substituteInPlace kivy/lib/mtdev.py \
··· 59 # prefer pkg-config over hardcoded framework paths 60 USE_OSX_FRAMEWORKS = 0; 61 # work around python distutils compiling C++ with $CC (see issue #26709) 62 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; 63 64 postPatch = lib.optionalString stdenv.isLinux '' 65 substituteInPlace kivy/lib/mtdev.py \
+1 -1
pkgs/development/python-modules/kiwisolver/default.nix
··· 20 hash = "sha256-1BmXUZ/LpKHkbrSi/jG8EvD/lXsrgbrCjbJHRPMz6VU="; 21 }; 22 23 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin [ 24 "-I${lib.getDev libcxx}/include/c++/v1" 25 ]; 26
··· 20 hash = "sha256-1BmXUZ/LpKHkbrSi/jG8EvD/lXsrgbrCjbJHRPMz6VU="; 21 }; 22 23 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin [ 24 "-I${lib.getDev libcxx}/include/c++/v1" 25 ]; 26
+2 -2
pkgs/development/python-modules/levenshtein/default.nix
··· 37 rapidfuzz-cpp 38 ]; 39 40 - NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isClang && stdenv.isDarwin) [ 41 "-fno-lto" # work around https://github.com/NixOS/nixpkgs/issues/19098 42 - ]; 43 44 propagatedBuildInputs = [ 45 rapidfuzz
··· 37 rapidfuzz-cpp 38 ]; 39 40 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isClang && stdenv.isDarwin) [ 41 "-fno-lto" # work around https://github.com/NixOS/nixpkgs/issues/19098 42 + ]); 43 44 propagatedBuildInputs = [ 45 rapidfuzz
+1 -1
pkgs/development/python-modules/mayavi/default.nix
··· 48 vtk 49 ]; 50 51 - NIX_CFLAGS_COMPILE = "-Wno-error"; 52 53 # Needs X server 54 doCheck = false;
··· 48 vtk 49 ]; 50 51 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 52 53 # Needs X server 54 doCheck = false;
+1 -1
pkgs/development/python-modules/numba/default.nix
··· 40 --replace "setuptools<60" "setuptools" 41 ''; 42 43 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; 44 45 nativeBuildInputs = lib.optionals cudaSupport [ 46 addOpenGLRunpath
··· 40 --replace "setuptools<60" "setuptools" 41 ''; 42 43 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; 44 45 nativeBuildInputs = lib.optionals cudaSupport [ 46 addOpenGLRunpath
+1 -1
pkgs/development/python-modules/pivy/default.nix
··· 23 libXi libXext libSM libICE libX11 24 ]; 25 26 - NIX_CFLAGS_COMPILE = toString [ 27 "-I${qtbase.dev}/include/QtCore" 28 "-I${qtbase.dev}/include/QtGui" 29 "-I${qtbase.dev}/include/QtOpenGL"
··· 23 libXi libXext libSM libICE libX11 24 ]; 25 26 + env.NIX_CFLAGS_COMPILE = toString [ 27 "-I${qtbase.dev}/include/QtCore" 28 "-I${qtbase.dev}/include/QtGui" 29 "-I${qtbase.dev}/include/QtOpenGL"
+1 -1
pkgs/development/python-modules/py3exiv2/default.nix
··· 26 ]; 27 28 # Work around Python distutils compiling C++ with $CC (see issue #26709) 29 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin [ 30 "-I${lib.getDev libcxx}/include/c++/v1" 31 ]; 32
··· 26 ]; 27 28 # Work around Python distutils compiling C++ with $CC (see issue #26709) 29 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin [ 30 "-I${lib.getDev libcxx}/include/c++/v1" 31 ]; 32
+1 -1
pkgs/development/python-modules/pyscard/default.nix
··· 33 "${lib.getLib pcsclite}/lib/libpcsclite${stdenv.hostPlatform.extensions.sharedLibrary}" 34 ''; 35 36 - NIX_CFLAGS_COMPILE = lib.optionalString (! withApplePCSC) 37 "-I ${lib.getDev pcsclite}/include/PCSC"; 38 39 propagatedBuildInputs = if withApplePCSC then [ PCSC ] else [ pcsclite ];
··· 33 "${lib.getLib pcsclite}/lib/libpcsclite${stdenv.hostPlatform.extensions.sharedLibrary}" 34 ''; 35 36 + env.NIX_CFLAGS_COMPILE = lib.optionalString (! withApplePCSC) 37 "-I ${lib.getDev pcsclite}/include/PCSC"; 38 39 propagatedBuildInputs = if withApplePCSC then [ PCSC ] else [ pcsclite ];
+1 -1
pkgs/development/python-modules/pyside2/default.nix
··· 37 "-DPYTHON_EXECUTABLE=${python.interpreter}" 38 ]; 39 40 - NIX_CFLAGS_COMPILE = "-I${qt5.qtdeclarative.dev}/include/QtQuick/${qt5.qtdeclarative.version}/QtQuick"; 41 42 nativeBuildInputs = [ cmake ninja qt5.qmake python ]; 43
··· 37 "-DPYTHON_EXECUTABLE=${python.interpreter}" 38 ]; 39 40 + env.NIX_CFLAGS_COMPILE = "-I${qt5.qtdeclarative.dev}/include/QtQuick/${qt5.qtdeclarative.version}/QtQuick"; 41 42 nativeBuildInputs = [ cmake ninja qt5.qmake python ]; 43
+1 -1
pkgs/development/python-modules/pystemmer/default.nix
··· 44 export PYSTEMMER_SYSTEM_LIBSTEMMER="${lib.getDev libstemmer}/include" 45 ''; 46 47 - NIX_CFLAGS_COMPILE = [ 48 "-I${lib.getDev libstemmer}/include" 49 ]; 50
··· 44 export PYSTEMMER_SYSTEM_LIBSTEMMER="${lib.getDev libstemmer}/include" 45 ''; 46 47 + env.NIX_CFLAGS_COMPILE = toString [ 48 "-I${lib.getDev libstemmer}/include" 49 ]; 50
+2 -2
pkgs/development/python-modules/rapidfuzz/default.nix
··· 52 export CMAKE_ARGS="-DCMAKE_CXX_COMPILER_AR=$AR -DCMAKE_CXX_COMPILER_RANLIB=$RANLIB" 53 ''; 54 55 - NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isClang && stdenv.isDarwin) [ 56 "-fno-lto" # work around https://github.com/NixOS/nixpkgs/issues/19098 57 - ]; 58 59 propagatedBuildInputs = [ 60 numpy
··· 52 export CMAKE_ARGS="-DCMAKE_CXX_COMPILER_AR=$AR -DCMAKE_CXX_COMPILER_RANLIB=$RANLIB" 53 ''; 54 55 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isClang && stdenv.isDarwin) [ 56 "-fno-lto" # work around https://github.com/NixOS/nixpkgs/issues/19098 57 + ]); 58 59 propagatedBuildInputs = [ 60 numpy
+1 -1
pkgs/development/python-modules/tensorflow/default.nix
··· 317 ''; 318 319 # https://github.com/tensorflow/tensorflow/pull/39470 320 - NIX_CFLAGS_COMPILE = [ "-Wno-stringop-truncation" ]; 321 322 preConfigure = let 323 opt_flags = []
··· 317 ''; 318 319 # https://github.com/tensorflow/tensorflow/pull/39470 320 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-stringop-truncation" ]; 321 322 preConfigure = let 323 opt_flags = []
+2 -2
pkgs/development/python-modules/torch/default.nix
··· 213 # 214 # Also of interest: pytorch ignores CXXFLAGS uses CFLAGS for both C and C++: 215 # https://github.com/pytorch/pytorch/blob/v1.11.0/setup.py#L17 216 - NIX_CFLAGS_COMPILE = lib.optionals (blas.implementation == "mkl") [ "-Wno-error=array-bounds" ] 217 # Suppress gcc regression: avx512 math function raises uninitialized variable warning 218 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105593 219 # See also: Fails to compile with GCC 12.1.0 https://github.com/pytorch/pytorch/issues/77939 220 - ++ lib.optionals stdenv.cc.isGNU [ "-Wno-error=maybe-uninitialized" "-Wno-error=uninitialized" ]; 221 222 nativeBuildInputs = [ 223 cmake
··· 213 # 214 # Also of interest: pytorch ignores CXXFLAGS uses CFLAGS for both C and C++: 215 # https://github.com/pytorch/pytorch/blob/v1.11.0/setup.py#L17 216 + env.NIX_CFLAGS_COMPILE = toString ((lib.optionals (blas.implementation == "mkl") [ "-Wno-error=array-bounds" ] 217 # Suppress gcc regression: avx512 math function raises uninitialized variable warning 218 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105593 219 # See also: Fails to compile with GCC 12.1.0 https://github.com/pytorch/pytorch/issues/77939 220 + ++ lib.optionals stdenv.cc.isGNU [ "-Wno-error=maybe-uninitialized" "-Wno-error=uninitialized" ])); 221 222 nativeBuildInputs = [ 223 cmake
+1 -1
pkgs/development/python-modules/vmprof/default.nix
··· 30 # `_PyThreadState_Current'; src/_vmprof.o:src/vmprof_common.h:92: first defined here 31 # TODO: can be removed once next release contains: 32 # https://github.com/vmprof/vmprof-python/pull/203 33 - NIX_CFLAGS_COMPILE = "-fcommon"; 34 35 meta = with lib; { 36 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
··· 30 # `_PyThreadState_Current'; src/_vmprof.o:src/vmprof_common.h:92: first defined here 31 # TODO: can be removed once next release contains: 32 # https://github.com/vmprof/vmprof-python/pull/203 33 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 34 35 meta = with lib; { 36 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
+2 -2
pkgs/development/python2-modules/pygtk/default.nix
··· 37 38 buildPhase = "buildPhase"; 39 40 - NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-ObjC" 41 - ++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-lpython2.7"; 42 43 installPhase = "installPhase"; 44
··· 37 38 buildPhase = "buildPhase"; 39 40 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-ObjC" 41 + + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) " -lpython2.7"; 42 43 installPhase = "installPhase"; 44
+3 -3
pkgs/development/r-modules/default.nix
··· 975 }); 976 977 data_table = old.data_table.overrideDerivation (attrs: { 978 - NIX_CFLAGS_COMPILE = attrs.NIX_CFLAGS_COMPILE + " -fopenmp"; 979 patchPhase = "patchShebangs configure"; 980 }); 981 982 ModelMetrics = old.ModelMetrics.overrideDerivation (attrs: { 983 - NIX_CFLAGS_COMPILE = attrs.NIX_CFLAGS_COMPILE 984 + lib.optionalString stdenv.isDarwin " -fopenmp"; 985 }); 986 ··· 1184 }); 1185 1186 rstan = old.rstan.overrideDerivation (attrs: { 1187 - NIX_CFLAGS_COMPILE = "${attrs.NIX_CFLAGS_COMPILE} -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION"; 1188 }); 1189 1190 mongolite = old.mongolite.overrideDerivation (attrs: {
··· 975 }); 976 977 data_table = old.data_table.overrideDerivation (attrs: { 978 + env.NIX_CFLAGS_COMPILE = attrs.NIX_CFLAGS_COMPILE + " -fopenmp"; 979 patchPhase = "patchShebangs configure"; 980 }); 981 982 ModelMetrics = old.ModelMetrics.overrideDerivation (attrs: { 983 + env.NIX_CFLAGS_COMPILE = attrs.NIX_CFLAGS_COMPILE 984 + lib.optionalString stdenv.isDarwin " -fopenmp"; 985 }); 986 ··· 1184 }); 1185 1186 rstan = old.rstan.overrideDerivation (attrs: { 1187 + env.NIX_CFLAGS_COMPILE = "${attrs.NIX_CFLAGS_COMPILE} -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION"; 1188 }); 1189 1190 mongolite = old.mongolite.overrideDerivation (attrs: {
+1 -1
pkgs/development/r-modules/generic-builder.nix
··· 7 lib.optionals requireX [util-linux xvfb-run] ++ 8 lib.optionals stdenv.isDarwin [Cocoa Foundation gfortran libiconv]; 9 10 - NIX_CFLAGS_COMPILE = 11 lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; 12 13 configurePhase = ''
··· 7 lib.optionals requireX [util-linux xvfb-run] ++ 8 lib.optionals stdenv.isDarwin [Cocoa Foundation gfortran libiconv]; 9 10 + env.NIX_CFLAGS_COMPILE = 11 lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; 12 13 configurePhase = ''
+1 -1
pkgs/development/ruby-modules/gem-config/default.nix
··· 323 nativeBuildInputs = [ pkg-config ] ++ lib.optional stdenv.isDarwin cctools; 324 buildInputs = [ openssl ]; 325 hardeningDisable = [ "format" ]; 326 - NIX_CFLAGS_COMPILE = toString [ 327 "-Wno-error=stringop-overflow" 328 "-Wno-error=implicit-fallthrough" 329 "-Wno-error=sizeof-pointer-memaccess"
··· 323 nativeBuildInputs = [ pkg-config ] ++ lib.optional stdenv.isDarwin cctools; 324 buildInputs = [ openssl ]; 325 hardeningDisable = [ "format" ]; 326 + env.NIX_CFLAGS_COMPILE = toString [ 327 "-Wno-error=stringop-overflow" 328 "-Wno-error=implicit-fallthrough" 329 "-Wno-error=sizeof-pointer-memaccess"
+2 -2
pkgs/development/ruby-modules/gem/default.nix
··· 136 137 # As of ruby 3.0, ruby headers require -fdeclspec when building with clang 138 # Introduced in https://github.com/ruby/ruby/commit/0958e19ffb047781fe1506760c7cbd8d7fe74e57 139 - NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isClang && lib.versionAtLeast ruby.version.major "3") [ 140 "-fdeclspec" 141 - ]; 142 143 buildPhase = attrs.buildPhase or '' 144 runHook preBuild
··· 136 137 # As of ruby 3.0, ruby headers require -fdeclspec when building with clang 138 # Introduced in https://github.com/ruby/ruby/commit/0958e19ffb047781fe1506760c7cbd8d7fe74e57 139 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isClang && lib.versionAtLeast ruby.version.major "3") [ 140 "-fdeclspec" 141 + ]); 142 143 buildPhase = attrs.buildPhase or '' 144 runHook preBuild
+1 -1
pkgs/development/tools/analysis/rr/default.nix
··· 50 ]; 51 52 # we turn on additional warnings due to hardening 53 - NIX_CFLAGS_COMPILE = "-Wno-error"; 54 55 hardeningDisable = [ "fortify" ]; 56
··· 50 ]; 51 52 # we turn on additional warnings due to hardening 53 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 54 55 hardeningDisable = [ "fortify" ]; 56
+1 -1
pkgs/development/tools/ashpd-demo/default.nix
··· 66 67 # FIXME: workaround for Pipewire 0.3.64 deprecated API change, remove when fixed upstream 68 # https://gitlab.freedesktop.org/pipewire/pipewire-rs/-/issues/55 69 - NIX_CFLAGS_COMPILE = [ "-DPW_ENABLE_DEPRECATED" ]; 70 71 passthru = { 72 updateScript = nix-update-script { };
··· 66 67 # FIXME: workaround for Pipewire 0.3.64 deprecated API change, remove when fixed upstream 68 # https://gitlab.freedesktop.org/pipewire/pipewire-rs/-/issues/55 69 + env.NIX_CFLAGS_COMPILE = toString [ "-DPW_ENABLE_DEPRECATED" ]; 70 71 passthru = { 72 updateScript = nix-update-script { };
+1 -1
pkgs/development/tools/documentation/doxygen/default.nix
··· 27 [ "-DICONV_INCLUDE_DIR=${libiconv}/include" ] ++ 28 lib.optional (qt5 != null) "-Dbuild_wizard=YES"; 29 30 - NIX_CFLAGS_COMPILE = 31 lib.optionalString stdenv.isDarwin "-mmacosx-version-min=10.9"; 32 33 meta = {
··· 27 [ "-DICONV_INCLUDE_DIR=${libiconv}/include" ] ++ 28 lib.optional (qt5 != null) "-Dbuild_wizard=YES"; 29 30 + env.NIX_CFLAGS_COMPILE = 31 lib.optionalString stdenv.isDarwin "-mmacosx-version-min=10.9"; 32 33 meta = {
+1 -1
pkgs/development/tools/literate-programming/nuweb/default.nix
··· 20 # gcc-10. Otherwise build fails as: 21 # ld: global.o:/build/nuweb-1.62/global.h:91: multiple definition of 22 # `current_sector'; main.o:/build/nuweb-1.62/global.h:91: first defined here 23 - NIX_CFLAGS_COMPILE = "-fcommon"; 24 25 buildPhase = '' 26 make nuweb
··· 20 # gcc-10. Otherwise build fails as: 21 # ld: global.o:/build/nuweb-1.62/global.h:91: multiple definition of 22 # `current_sector'; main.o:/build/nuweb-1.62/global.h:91: first defined here 23 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 24 25 buildPhase = '' 26 make nuweb
+1 -1
pkgs/development/tools/misc/binutils/2.38/default.nix
··· 152 153 # As binutils takes part in the stdenv building, we don't want references 154 # to the bootstrap-tools libgcc (as uses to happen on arm/mips) 155 - NIX_CFLAGS_COMPILE = 156 if hostPlatform.isDarwin 157 then "-Wno-string-plus-int -Wno-deprecated-declarations" 158 else "-static-libgcc";
··· 152 153 # As binutils takes part in the stdenv building, we don't want references 154 # to the bootstrap-tools libgcc (as uses to happen on arm/mips) 155 + env.NIX_CFLAGS_COMPILE = 156 if hostPlatform.isDarwin 157 then "-Wno-string-plus-int -Wno-deprecated-declarations" 158 else "-static-libgcc";
+1 -1
pkgs/development/tools/misc/binutils/default.nix
··· 169 170 # As binutils takes part in the stdenv building, we don't want references 171 # to the bootstrap-tools libgcc (as uses to happen on arm/mips) 172 - NIX_CFLAGS_COMPILE = 173 if hostPlatform.isDarwin 174 then "-Wno-string-plus-int -Wno-deprecated-declarations" 175 else "-static-libgcc";
··· 169 170 # As binutils takes part in the stdenv building, we don't want references 171 # to the bootstrap-tools libgcc (as uses to happen on arm/mips) 172 + env.NIX_CFLAGS_COMPILE = 173 if hostPlatform.isDarwin 174 then "-Wno-string-plus-int -Wno-deprecated-declarations" 175 else "-static-libgcc";
+1 -1
pkgs/development/tools/misc/dbench/default.nix
··· 12 13 nativeBuildInputs = [ autoconf rpcsvc-proto ]; 14 buildInputs = [ popt zlib libtirpc ]; 15 - NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ]; 16 NIX_LDFLAGS = [ "-ltirpc" ]; 17 18 patches = [
··· 12 13 nativeBuildInputs = [ autoconf rpcsvc-proto ]; 14 buildInputs = [ popt zlib libtirpc ]; 15 + env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ]; 16 NIX_LDFLAGS = [ "-ltirpc" ]; 17 18 patches = [
+1 -1
pkgs/development/tools/misc/ddd/default.nix
··· 15 ./gcc44.patch 16 ]; 17 18 - NIX_CFLAGS_COMPILE = "-fpermissive"; 19 20 postInstall = '' 21 install -D icons/ddd.xpm $out/share/pixmaps/ddd.xpm
··· 15 ./gcc44.patch 16 ]; 17 18 + env.NIX_CFLAGS_COMPILE = "-fpermissive"; 19 20 postInstall = '' 21 install -D icons/ddd.xpm $out/share/pixmaps/ddd.xpm
+1 -1
pkgs/development/tools/misc/gdb/default.nix
··· 77 # darwin build fails with format hardening since v7.12 78 hardeningDisable = lib.optionals stdenv.isDarwin [ "format" ]; 79 80 - NIX_CFLAGS_COMPILE = "-Wno-format-nonliteral"; 81 82 configurePlatforms = [ "build" "host" "target" ]; 83
··· 77 # darwin build fails with format hardening since v7.12 78 hardeningDisable = lib.optionals stdenv.isDarwin [ "format" ]; 79 80 + env.NIX_CFLAGS_COMPILE = "-Wno-format-nonliteral"; 81 82 configurePlatforms = [ "build" "host" "target" ]; 83
+1 -1
pkgs/development/tools/misc/hydra/unstable.nix
··· 197 198 configureFlags = [ "--with-docbook-xsl=${docbook_xsl}/xml/xsl/docbook" ]; 199 200 - NIX_CFLAGS_COMPILE = "-pthread"; 201 202 OPENLDAP_ROOT = openldap; 203
··· 197 198 configureFlags = [ "--with-docbook-xsl=${docbook_xsl}/xml/xsl/docbook" ]; 199 200 + env.NIX_CFLAGS_COMPILE = "-pthread"; 201 202 OPENLDAP_ROOT = openldap; 203
+1 -1
pkgs/development/tools/misc/indent/default.nix
··· 16 nativeBuildInputs = [ texinfo ]; 17 pkgsBuildBuild = [ buildPackages.stdenv.cc ]; # needed when cross-compiling 18 19 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang 20 "-Wno-implicit-function-declaration"; 21 22 hardeningDisable = [ "format" ];
··· 16 nativeBuildInputs = [ texinfo ]; 17 pkgsBuildBuild = [ buildPackages.stdenv.cc ]; # needed when cross-compiling 18 19 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang 20 "-Wno-implicit-function-declaration"; 21 22 hardeningDisable = [ "format" ];
+1 -1
pkgs/development/tools/misc/intel-gpu-tools/default.nix
··· 82 liboping 83 ]; 84 85 - NIX_CFLAGS_COMPILE = [ "-Wno-error=array-bounds" ]; 86 87 preConfigure = '' 88 patchShebangs tests man
··· 82 liboping 83 ]; 84 85 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=array-bounds" ]; 86 87 preConfigure = '' 88 patchShebangs tests man
+1 -1
pkgs/development/tools/misc/kconfig-frontends/default.nix
··· 18 "--enable-frontends=conf,mconf,nconf" 19 ]; 20 21 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=format-security"; 22 23 meta = with lib; { 24 description = "Out of Linux tree packaging of the kconfig infrastructure";
··· 18 "--enable-frontends=conf,mconf,nconf" 19 ]; 20 21 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=format-security"; 22 23 meta = with lib; { 24 description = "Out of Linux tree packaging of the kconfig infrastructure";
+1 -1
pkgs/development/tools/misc/rocgdb/default.nix
··· 40 ]; 41 42 # `-Wno-format-nonliteral` doesn't work 43 - NIX_CFLAGS_COMPILE = "-Wno-error=format-security"; 44 45 passthru.updateScript = rocmUpdateScript { 46 name = finalAttrs.pname;
··· 40 ]; 41 42 # `-Wno-format-nonliteral` doesn't work 43 + env.NIX_CFLAGS_COMPILE = "-Wno-error=format-security"; 44 45 passthru.updateScript = rocmUpdateScript { 46 name = finalAttrs.pname;
+1 -1
pkgs/development/tools/misc/tcptrack/default.nix
··· 23 24 buildInputs = [ ncurses libpcap ]; 25 26 - NIX_CFLAGS_COMPILE = "-Wno-error=cpp"; 27 28 meta = with lib; { 29 inherit (src.meta) homepage;
··· 23 24 buildInputs = [ ncurses libpcap ]; 25 26 + env.NIX_CFLAGS_COMPILE = "-Wno-error=cpp"; 27 28 meta = with lib; { 29 inherit (src.meta) homepage;
+1 -1
pkgs/development/tools/misc/xxdiff/default.nix
··· 20 dontUseQmakeConfigure = true; 21 22 # c++11 and above is needed for building with Qt 5.9+ 23 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 24 25 sourceRoot = "source/src"; 26
··· 20 dontUseQmakeConfigure = true; 21 22 # c++11 and above is needed for building with Qt 5.9+ 23 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 24 25 sourceRoot = "source/src"; 26
+1 -1
pkgs/development/tools/mmixware/default.nix
··· 20 21 # Workaround build failure on -fno-common toolchains: 22 # ld: mmix-config.o:(.bss+0x600): multiple definition of `buffer'; /build/ccDuGrwH.o:(.bss+0x20): first defined here 23 - NIX_CFLAGS_COMPILE = "-fcommon"; 24 25 nativeBuildInputs = [ tetex ]; 26 enableParallelBuilding = true;
··· 20 21 # Workaround build failure on -fno-common toolchains: 22 # ld: mmix-config.o:(.bss+0x600): multiple definition of `buffer'; /build/ccDuGrwH.o:(.bss+0x20): first defined here 23 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 24 25 nativeBuildInputs = [ tetex ]; 26 enableParallelBuilding = true;
+2 -2
pkgs/development/tools/mold/default.nix
··· 41 "-DMOLD_USE_SYSTEM_MIMALLOC:BOOL=ON" 42 ]; 43 44 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ 45 "-faligned-allocation" 46 - ]; 47 48 passthru.tests.version = testers.testVersion { package = mold; }; 49
··· 41 "-DMOLD_USE_SYSTEM_MIMALLOC:BOOL=ON" 42 ]; 43 44 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ 45 "-faligned-allocation" 46 + ]); 47 48 passthru.tests.version = testers.testVersion { package = mold; }; 49
+1 -1
pkgs/development/tools/parsing/ragel/default.nix
··· 21 22 configureFlags = [ "--with-colm=${colm}" ]; 23 24 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=gnu++98"; 25 26 doCheck = true; 27
··· 21 22 configureFlags = [ "--with-colm=${colm}" ]; 23 24 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=gnu++98"; 25 26 doCheck = true; 27
+3 -3
pkgs/development/tools/poetry2nix/poetry2nix/overrides/default.nix
··· 345 LIB_DIR = "${lib.getLib pkgs.secp256k1}/lib"; 346 347 # for actual C toolchain build 348 - NIX_CFLAGS_COMPILE = "-I ${lib.getDev pkgs.secp256k1}/include"; 349 NIX_LDFLAGS = "-L ${lib.getLib pkgs.secp256k1}/lib"; 350 } 351 ); ··· 1383 openexr = super.openexr.overridePythonAttrs ( 1384 old: { 1385 buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.openexr pkgs.ilmbase ]; 1386 - NIX_CFLAGS_COMPILE = [ "-I${pkgs.openexr.dev}/include/OpenEXR" "-I${pkgs.ilmbase.dev}/include/OpenEXR" ]; 1387 } 1388 ); 1389 ··· 1838 propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ ( 1839 if withApplePCSC then [ PCSC ] else [ pcsclite ] 1840 ); 1841 - NIX_CFLAGS_COMPILE = lib.optionalString (! withApplePCSC) 1842 "-I ${lib.getDev pcsclite}/include/PCSC"; 1843 nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ 1844 pkgs.swig
··· 345 LIB_DIR = "${lib.getLib pkgs.secp256k1}/lib"; 346 347 # for actual C toolchain build 348 + env.NIX_CFLAGS_COMPILE = "-I ${lib.getDev pkgs.secp256k1}/include"; 349 NIX_LDFLAGS = "-L ${lib.getLib pkgs.secp256k1}/lib"; 350 } 351 ); ··· 1383 openexr = super.openexr.overridePythonAttrs ( 1384 old: { 1385 buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.openexr pkgs.ilmbase ]; 1386 + env.NIX_CFLAGS_COMPILE = toString [ "-I${pkgs.openexr.dev}/include/OpenEXR" "-I${pkgs.ilmbase.dev}/include/OpenEXR" ]; 1387 } 1388 ); 1389 ··· 1838 propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ ( 1839 if withApplePCSC then [ PCSC ] else [ pcsclite ] 1840 ); 1841 + env.NIX_CFLAGS_COMPILE = lib.optionalString (! withApplePCSC) 1842 "-I ${lib.getDev pcsclite}/include/PCSC"; 1843 nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ 1844 pkgs.swig
+1 -1
pkgs/development/tools/profiling/systemtap/default.nix
··· 19 nativeBuildInputs = [ pkg-config cpio python3 python3.pkgs.setuptools ]; 20 buildInputs = [ elfutils gettext ]; 21 enableParallelBuilding = true; 22 - NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ]; # Needed with GCC 12 23 }; 24 25 ## a kernel build dir as expected by systemtap
··· 19 nativeBuildInputs = [ pkg-config cpio python3 python3.pkgs.setuptools ]; 20 buildInputs = [ elfutils gettext ]; 21 enableParallelBuilding = true; 22 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ]; # Needed with GCC 12 23 }; 24 25 ## a kernel build dir as expected by systemtap
+1 -1
pkgs/development/tools/py-spy/default.nix
··· 20 '') 21 ]; 22 23 - NIX_CFLAGS_COMPILE = "-L${libunwind}/lib"; 24 25 # error: linker `arm-linux-gnueabihf-gcc` not found 26 preConfigure = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
··· 20 '') 21 ]; 22 23 + env.NIX_CFLAGS_COMPILE = "-L${libunwind}/lib"; 24 25 # error: linker `arm-linux-gnueabihf-gcc` not found 26 preConfigure = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
+1 -1
pkgs/development/tools/shadered/default.nix
··· 38 ./install_path_fix.patch 39 ]; 40 41 - NIX_CFLAGS_COMPILE = "-Wno-error=format-security"; 42 43 meta = with lib; { 44 description = "Lightweight, cross-platform & full-featured shader IDE";
··· 38 ./install_path_fix.patch 39 ]; 40 41 + env.NIX_CFLAGS_COMPILE = "-Wno-error=format-security"; 42 43 meta = with lib; { 44 description = "Lightweight, cross-platform & full-featured shader IDE";
+1 -1
pkgs/development/tools/tora/default.nix
··· 42 # these libraries are only searched for at runtime so we need to force-link them 43 NIX_LDFLAGS = "-lgvc -lmysqlclient -lecpg -lssl"; 44 45 - NIX_CFLAGS_COMPILE = "-L${libmysqlclient}/lib/mysql -I${libmysqlclient}/include/mysql"; 46 47 qtWrapperArgs = [ 48 ''--prefix PATH : ${lib.getBin graphviz}/bin''
··· 42 # these libraries are only searched for at runtime so we need to force-link them 43 NIX_LDFLAGS = "-lgvc -lmysqlclient -lecpg -lssl"; 44 45 + env.NIX_CFLAGS_COMPILE = "-L${libmysqlclient}/lib/mysql -I${libmysqlclient}/include/mysql"; 46 47 qtWrapperArgs = [ 48 ''--prefix PATH : ${lib.getBin graphviz}/bin''
+2 -2
pkgs/development/tools/tracy/default.nix
··· 21 ++ lib.optionals stdenv.isDarwin [ Carbon AppKit freetype ] 22 ++ lib.optionals stdenv.isLinux [ gtk3 tbb dbus ]; 23 24 - NIX_CFLAGS_COMPILE = [ ] 25 # Apple's compiler finds a format string security error on 26 # ../../../server/TracyView.cpp:649:34, preventing building. 27 ++ lib.optional stdenv.isDarwin "-Wno-format-security" 28 ++ lib.optional stdenv.isLinux "-ltbb" 29 ++ lib.optional stdenv.cc.isClang "-faligned-allocation" 30 - ++ lib.optional disableLTO "-fno-lto"; 31 32 NIX_CFLAGS_LINK = lib.optional disableLTO "-fno-lto"; 33
··· 21 ++ lib.optionals stdenv.isDarwin [ Carbon AppKit freetype ] 22 ++ lib.optionals stdenv.isLinux [ gtk3 tbb dbus ]; 23 24 + env.NIX_CFLAGS_COMPILE = toString ([ ] 25 # Apple's compiler finds a format string security error on 26 # ../../../server/TracyView.cpp:649:34, preventing building. 27 ++ lib.optional stdenv.isDarwin "-Wno-format-security" 28 ++ lib.optional stdenv.isLinux "-ltbb" 29 ++ lib.optional stdenv.cc.isClang "-faligned-allocation" 30 + ++ lib.optional disableLTO "-fno-lto"); 31 32 NIX_CFLAGS_LINK = lib.optional disableLTO "-fno-lto"; 33
+1 -1
pkgs/development/tools/wlcs/default.nix
··· 42 wayland 43 ]; 44 45 - NIX_CFLAGS_COMPILE = [ 46 # Needed with GCC 12 47 "-Wno-error=maybe-uninitialized" 48 ];
··· 42 wayland 43 ]; 44 45 + env.NIX_CFLAGS_COMPILE = toString [ 46 # Needed with GCC 12 47 "-Wno-error=maybe-uninitialized" 48 ];
+1 -1
pkgs/development/tools/xcbuild/default.nix
··· 56 cp liblinenoise.* $out/lib/ 57 ''; 58 59 - NIX_CFLAGS_COMPILE = "-Wno-error"; 60 61 cmakeFlags = [ "-GNinja" ]; 62
··· 56 cp liblinenoise.* $out/lib/ 57 ''; 58 59 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 60 61 cmakeFlags = [ "-GNinja" ]; 62
+1 -1
pkgs/development/web/kore/default.nix
··· 28 ''; 29 30 # added to fix build w/gcc7 and clang5 31 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=pointer-compare" 32 + lib.optionalString stdenv.cc.isClang " -Wno-error=unknown-warning-option"; 33 34 enableParallelBuilding = true;
··· 28 ''; 29 30 # added to fix build w/gcc7 and clang5 31 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=pointer-compare" 32 + lib.optionalString stdenv.cc.isClang " -Wno-error=unknown-warning-option"; 33 34 enableParallelBuilding = true;
+1 -1
pkgs/development/web/wml/default.nix
··· 31 32 # Workaround build failure on -fno-common toolchains: 33 # ld: iselect_browse.o:(.bss+0x2020): multiple definition of `Line'; iselect_main.o:(.bss+0x100000): first defined here 34 - NIX_CFLAGS_COMPILE = "-fcommon"; 35 36 hardeningDisable = [ "format" ]; 37
··· 31 32 # Workaround build failure on -fno-common toolchains: 33 # ld: iselect_browse.o:(.bss+0x2020): multiple definition of `Line'; iselect_main.o:(.bss+0x100000): first defined here 34 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 35 36 hardeningDisable = [ "format" ]; 37
+1 -1
pkgs/games/0ad/game.nix
··· 42 nvidia-texture-tools libsodium fmt freetype 43 ] ++ lib.optional withEditor wxGTK; 44 45 - NIX_CFLAGS_COMPILE = toString [ 46 "-I${xorgproto}/include" 47 "-I${libX11.dev}/include" 48 "-I${libXcursor.dev}/include"
··· 42 nvidia-texture-tools libsodium fmt freetype 43 ] ++ lib.optional withEditor wxGTK; 44 45 + env.NIX_CFLAGS_COMPILE = toString [ 46 "-I${xorgproto}/include" 47 "-I${libX11.dev}/include" 48 "-I${libXcursor.dev}/include"
+1 -1
pkgs/games/0verkill/default.nix
··· 29 30 # The code needs an update for gcc-10: 31 # https://github.com/hackndev/0verkill/issues/7 32 - NIX_CFLAGS_COMPILE = "-fcommon"; 33 hardeningDisable = [ "all" ]; # Someday the upstream will update the code... 34 35 meta = with lib; {
··· 29 30 # The code needs an update for gcc-10: 31 # https://github.com/hackndev/0verkill/issues/7 32 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 33 hardeningDisable = [ "all" ]; # Someday the upstream will update the code... 34 35 meta = with lib; {
+1 -1
pkgs/games/azimuth/default.nix
··· 14 nativeBuildInputs = [ which ]; 15 buildInputs = [ SDL ]; 16 17 - NIX_CFLAGS_COMPILE = [ "-Wno-error=maybe-uninitialized" ]; 18 19 preConfigure = '' 20 substituteInPlace data/azimuth.desktop \
··· 14 nativeBuildInputs = [ which ]; 15 buildInputs = [ SDL ]; 16 17 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=maybe-uninitialized" ]; 18 19 preConfigure = '' 20 substituteInPlace data/azimuth.desktop \
+1 -1
pkgs/games/blobwars/default.nix
··· 11 12 nativeBuildInputs = [ pkg-config gettext ]; 13 buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_net SDL2_ttf zlib ]; 14 - NIX_CFLAGS_COMPILE = [ "-Wno-error" ]; 15 16 makeFlags = [ "PREFIX=$(out)" "RELEASE=1" ]; 17
··· 11 12 nativeBuildInputs = [ pkg-config gettext ]; 13 buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_net SDL2_ttf zlib ]; 14 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error" ]; 15 16 makeFlags = [ "PREFIX=$(out)" "RELEASE=1" ]; 17
+1 -1
pkgs/games/btanks/default.nix
··· 16 17 enableParallelBuilding = true; 18 19 - NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL"; 20 21 patches = [ 22 (fetchpatch {
··· 16 17 enableParallelBuilding = true; 18 19 + env.NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL"; 20 21 patches = [ 22 (fetchpatch {
+1 -1
pkgs/games/cataclysm-dda/stable.nix
··· 44 "VERSION=${version}" 45 ]; 46 47 - NIX_CFLAGS_COMPILE = [ 48 # Needed with GCC 12 49 "-Wno-error=array-bounds" 50 ];
··· 44 "VERSION=${version}" 45 ]; 46 47 + env.NIX_CFLAGS_COMPILE = toString [ 48 # Needed with GCC 12 49 "-Wno-error=array-bounds" 50 ];
+1 -1
pkgs/games/cdogs-sdl/default.nix
··· 31 "-DCMAKE_C_FLAGS=-Wno-error=array-bounds" 32 ]; 33 34 - NIX_CFLAGS_COMPILE = [ 35 # Needed with GCC 12 36 "-Wno-error=stringop-overflow" 37 ];
··· 31 "-DCMAKE_C_FLAGS=-Wno-error=array-bounds" 32 ]; 33 34 + env.NIX_CFLAGS_COMPILE = toString [ 35 # Needed with GCC 12 36 "-Wno-error=stringop-overflow" 37 ];
+1 -1
pkgs/games/dxx-rebirth/default.nix
··· 39 40 sconsFlags = [ "sdl2=1" ]; 41 42 - NIX_CFLAGS_COMPILE = [ 43 "-Wno-format-nonliteral" 44 "-Wno-format-truncation" 45 ];
··· 39 40 sconsFlags = [ "sdl2=1" ]; 41 42 + env.NIX_CFLAGS_COMPILE = toString [ 43 "-Wno-format-nonliteral" 44 "-Wno-format-truncation" 45 ];
+1 -1
pkgs/games/eboard/default.nix
··· 20 patchShebangs ./configure 21 ''; 22 23 - NIX_CFLAGS_COMPILE = "-fpermissive"; 24 25 meta = { 26 homepage = "http://www.bergo.eng.br/eboard/";
··· 20 patchShebangs ./configure 21 ''; 22 23 + env.NIX_CFLAGS_COMPILE = "-fpermissive"; 24 25 meta = { 26 homepage = "http://www.bergo.eng.br/eboard/";
+1 -1
pkgs/games/egoboo/default.nix
··· 48 # Workaround build failure on -fno-common toolchains like upstream 49 # gcc-10. Otherwise build fails as: 50 # ld: mad.o:(.bss+0x233800): multiple definition of `tile_dict'; camera.o:(.bss+0x140): first defined here 51 - NIX_CFLAGS_COMPILE = "-fcommon"; 52 53 NIX_LDFLAGS = "-lm"; 54
··· 48 # Workaround build failure on -fno-common toolchains like upstream 49 # gcc-10. Otherwise build fails as: 50 # ld: mad.o:(.bss+0x233800): multiple definition of `tile_dict'; camera.o:(.bss+0x140): first defined here 51 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 52 53 NIX_LDFLAGS = "-lm"; 54
+1 -1
pkgs/games/garden-of-coloured-lights/default.nix
··· 21 # Workaround build failure on -fno-common toolchains: 22 # ld: main.o:src/main.c:58: multiple definition of 23 # `eclass'; eclass.o:src/eclass.c:21: first defined here 24 - NIX_CFLAGS_COMPILE = "-fcommon"; 25 26 meta = with lib; { 27 description = "Old-school vertical shoot-em-up / bullet hell";
··· 21 # Workaround build failure on -fno-common toolchains: 22 # ld: main.o:src/main.c:58: multiple definition of 23 # `eclass'; eclass.o:src/eclass.c:21: first defined here 24 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 25 26 meta = with lib; { 27 description = "Old-school vertical shoot-em-up / bullet hell";
+1 -1
pkgs/games/gargoyle/default.nix
··· 39 # ld: build/linux.release/alan3/Location.o:(.bss+0x0): multiple definition of 40 # `logFile'; build/linux.release/alan3/act.o:(.bss+0x0): first defined here 41 # TODO: drop once updated to 2022.1 or later. 42 - NIX_CFLAGS_COMPILE = "-fcommon"; 43 44 buildPhase = jamenv + "jam -j$NIX_BUILD_CORES"; 45
··· 39 # ld: build/linux.release/alan3/Location.o:(.bss+0x0): multiple definition of 40 # `logFile'; build/linux.release/alan3/act.o:(.bss+0x0): first defined here 41 # TODO: drop once updated to 2022.1 or later. 42 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 43 44 buildPhase = jamenv + "jam -j$NIX_BUILD_CORES"; 45
+1 -1
pkgs/games/gimx/default.nix
··· 39 40 makeFlags = [ "build-core" ]; 41 42 - NIX_CFLAGS_COMPILE = [ 43 # Needed with GCC 12 44 "-Wno-error=address" 45 "-Wno-error=deprecated-declarations"
··· 39 40 makeFlags = [ "build-core" ]; 41 42 + env.NIX_CFLAGS_COMPILE = toString [ 43 # Needed with GCC 12 44 "-Wno-error=address" 45 "-Wno-error=deprecated-declarations"
+1 -1
pkgs/games/iortcw/sp.nix
··· 30 ]; 31 nativeBuildInputs = [ makeWrapper ]; 32 33 - NIX_CFLAGS_COMPILE = [ 34 "-I${SDL2.dev}/include/SDL2" 35 "-I${opusfile.dev}/include/opus" 36 ];
··· 30 ]; 31 nativeBuildInputs = [ makeWrapper ]; 32 33 + env.NIX_CFLAGS_COMPILE = toString [ 34 "-I${SDL2.dev}/include/SDL2" 35 "-I${opusfile.dev}/include/opus" 36 ];
+1 -1
pkgs/games/ivan/default.nix
··· 23 cmakeFlags = ["-DCMAKE_CXX_FLAGS=-DWIZARD"]; 24 25 # Help CMake find SDL_mixer.h 26 - NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2_mixer}/include/SDL2"; 27 28 # Create "ivan.desktop" file 29 ivanDesktop = makeDesktopItem {
··· 23 cmakeFlags = ["-DCMAKE_CXX_FLAGS=-DWIZARD"]; 24 25 # Help CMake find SDL_mixer.h 26 + env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2_mixer}/include/SDL2"; 27 28 # Create "ivan.desktop" file 29 ivanDesktop = makeDesktopItem {
+1 -1
pkgs/games/keeperrl/default.nix
··· 53 openal curl libogg libvorbis libtheora SDL2 SDL2_image zlib clang 54 ]; 55 56 - NIX_CFLAGS_COMPILE = [ 57 "-I${SDL2.dev}/include/SDL2" 58 ]; 59
··· 53 openal curl libogg libvorbis libtheora SDL2 SDL2_image zlib clang 54 ]; 55 56 + env.NIX_CFLAGS_COMPILE = toString [ 57 "-I${SDL2.dev}/include/SDL2" 58 ]; 59
+1 -1
pkgs/games/lincity/default.nix
··· 29 # gcc-10. Otherwise build fails as: 30 # ld: modules/.libs/libmodules.a(rocket_pad.o):/build/lincity-1.13.1/modules/../screen.h:23: 31 # multiple definition of `monthgraph_style'; ldsvguts.o:/build/lincity-1.13.1/screen.h:23: first defined here 32 - NIX_CFLAGS_COMPILE = "-fcommon"; 33 34 meta = with lib; { 35 description = "City simulation game";
··· 29 # gcc-10. Otherwise build fails as: 30 # ld: modules/.libs/libmodules.a(rocket_pad.o):/build/lincity-1.13.1/modules/../screen.h:23: 31 # multiple definition of `monthgraph_style'; ldsvguts.o:/build/lincity-1.13.1/screen.h:23: first defined here 32 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 33 34 meta = with lib; { 35 description = "City simulation game";
+1 -1
pkgs/games/liquidwar/5.nix
··· 13 14 hardeningDisable = [ "format" ]; 15 16 - NIX_CFLAGS_COMPILE = [ 17 # Workaround build failure on -fno-common toolchains like upstream 18 # gcc-10. Otherwise build fails as: 19 # ld: random.o:(.bss+0x0): multiple definition of `LW_RANDOM_ON'; game.o:(.bss+0x4): first defined here
··· 13 14 hardeningDisable = [ "format" ]; 15 16 + env.NIX_CFLAGS_COMPILE = toString [ 17 # Workaround build failure on -fno-common toolchains like upstream 18 # gcc-10. Otherwise build fails as: 19 # ld: random.o:(.bss+0x0): multiple definition of `LW_RANDOM_ON'; game.o:(.bss+0x4): first defined here
+2 -2
pkgs/games/liquidwar/default.nix
··· 30 31 hardeningDisable = [ "format" ]; 32 33 - NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 34 # Needed with GCC 12 but problematic with some old GCCs 35 "-Wno-error=address" 36 "-Wno-error=use-after-free" ··· 38 "-Wno-error=deprecated-declarations" 39 # Avoid GL_GLEXT_VERSION double definition 40 " -DNO_SDL_GLEXT" 41 - ]; 42 43 # To avoid problems finding SDL_types.h. 44 configureFlags = [ "CFLAGS=-I${lib.getDev SDL}/include/SDL" ];
··· 30 31 hardeningDisable = [ "format" ]; 32 33 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 34 # Needed with GCC 12 but problematic with some old GCCs 35 "-Wno-error=address" 36 "-Wno-error=use-after-free" ··· 38 "-Wno-error=deprecated-declarations" 39 # Avoid GL_GLEXT_VERSION double definition 40 " -DNO_SDL_GLEXT" 41 + ]); 42 43 # To avoid problems finding SDL_types.h. 44 configureFlags = [ "CFLAGS=-I${lib.getDev SDL}/include/SDL" ];
+1 -1
pkgs/games/macopix/default.nix
··· 22 # Workaround build failure on -fno-common toolchains: 23 # ld: dnd.o:src/main.h:136: multiple definition of 24 # `MENU_EXT'; main.o:src/main.h:136: first defined here 25 - NIX_CFLAGS_COMPILE = "-fcommon"; 26 27 NIX_LDFLAGS = "-lX11"; 28
··· 22 # Workaround build failure on -fno-common toolchains: 23 # ld: dnd.o:src/main.h:136: multiple definition of 24 # `MENU_EXT'; main.o:src/main.h:136: first defined here 25 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 26 27 NIX_LDFLAGS = "-lX11"; 28
+1 -1
pkgs/games/minetest/default.nix
··· 88 "-DENABLE_TOUCH=TRUE" 89 ]; 90 91 - NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3 92 93 nativeBuildInputs = [ cmake doxygen graphviz ninja ]; 94
··· 88 "-DENABLE_TOUCH=TRUE" 89 ]; 90 91 + env.NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3 92 93 nativeBuildInputs = [ cmake doxygen graphviz ninja ]; 94
+1 -1
pkgs/games/naev/default.nix
··· 23 24 nativeBuildInputs = [ pkg-config makeWrapper ]; 25 26 - NIX_CFLAGS_COMPILE="-include ${zlib.dev}/include/zlib.h"; 27 28 postInstall = '' 29 mkdir -p $out/share/naev
··· 23 24 nativeBuildInputs = [ pkg-config makeWrapper ]; 25 26 + env.NIX_CFLAGS_COMPILE = "-include ${zlib.dev}/include/zlib.h"; 27 28 postInstall = '' 29 mkdir -p $out/share/naev
+1 -1
pkgs/games/npush/default.nix
··· 24 makeFlags = [ 25 "CC=${stdenv.cc.targetPrefix}c++" 26 ]; 27 - NIX_CFLAGS_COMPILE = "-Wno-error=format-security"; 28 29 installPhase = '' 30 runHook preInstall
··· 24 makeFlags = [ 25 "CC=${stdenv.cc.targetPrefix}c++" 26 ]; 27 + env.NIX_CFLAGS_COMPILE = "-Wno-error=format-security"; 28 29 installPhase = '' 30 runHook preInstall
+1 -1
pkgs/games/openlierox/default.nix
··· 10 sha256 = "1k35xppfqi3qfysv81xq3hj4qdy9j2ciinbkfdcmwclcsf3nh94z"; 11 }; 12 13 - NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2 -std=c++98 -Wno-error"; 14 15 # The breakpad fails to build on x86_64, and it's only to report bugs upstream 16 cmakeFlags = [ "-DBREAKPAD=0" ];
··· 10 sha256 = "1k35xppfqi3qfysv81xq3hj4qdy9j2ciinbkfdcmwclcsf3nh94z"; 11 }; 12 13 + env.NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2 -std=c++98 -Wno-error"; 14 15 # The breakpad fails to build on x86_64, and it's only to report bugs upstream 16 cmakeFlags = [ "-DBREAKPAD=0" ];
+1 -1
pkgs/games/openmw/tes3mp.nix
··· 89 # https://github.com/TES3MP/openmw-tes3mp/issues/552 90 patches = oldAttrs.patches ++ [ ./tes3mp.patch ]; 91 92 - NIX_CFLAGS_COMPILE = "-fpermissive"; 93 94 preConfigure = '' 95 substituteInPlace files/version.in \
··· 89 # https://github.com/TES3MP/openmw-tes3mp/issues/552 90 patches = oldAttrs.patches ++ [ ./tes3mp.patch ]; 91 92 + env.NIX_CFLAGS_COMPILE = "-fpermissive"; 93 94 preConfigure = '' 95 substituteInPlace files/version.in \
+1 -1
pkgs/games/openrct2/default.nix
··· 94 "-DDOWNLOAD_TITLE_SEQUENCES=OFF" 95 ]; 96 97 - NIX_CFLAGS_COMPILE = [ 98 # Needed with GCC 12 99 "-Wno-error=maybe-uninitialized" 100 ];
··· 94 "-DDOWNLOAD_TITLE_SEQUENCES=OFF" 95 ]; 96 97 + env.NIX_CFLAGS_COMPILE = toString [ 98 # Needed with GCC 12 99 "-Wno-error=maybe-uninitialized" 100 ];
+1 -1
pkgs/games/opensupaplex/default.nix
··· 36 37 enableParallelBuilding = true; 38 39 - NIX_CFLAGS_COMPILE = [ 40 "-DFILE_DATA_PATH=${placeholder "out"}/lib/opensupaplex" 41 "-DFILE_FHS_XDG_DIRS" 42 ];
··· 36 37 enableParallelBuilding = true; 38 39 + env.NIX_CFLAGS_COMPILE = toString [ 40 "-DFILE_DATA_PATH=${placeholder "out"}/lib/opensupaplex" 41 "-DFILE_FHS_XDG_DIRS" 42 ];
+1 -1
pkgs/games/pinball/default.nix
··· 23 "--with-sdl-prefix=${lib.getDev SDL}" 24 ]; 25 26 - NIX_CFLAGS_COMPILE = [ 27 "-I${lib.getDev SDL_image}/include/SDL" 28 "-I${lib.getDev SDL_mixer}/include/SDL" 29 ];
··· 23 "--with-sdl-prefix=${lib.getDev SDL}" 24 ]; 25 26 + env.NIX_CFLAGS_COMPILE = toString [ 27 "-I${lib.getDev SDL_image}/include/SDL" 28 "-I${lib.getDev SDL_mixer}/include/SDL" 29 ];
+1 -1
pkgs/games/pokerth/default.nix
··· 59 "pokerth.pro" 60 ]; 61 62 - NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL}/include/SDL"; 63 64 meta = with lib; { 65 homepage = "https://www.pokerth.net";
··· 59 "pokerth.pro" 60 ]; 61 62 + env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL}/include/SDL"; 63 64 meta = with lib; { 65 homepage = "https://www.pokerth.net";
+1 -1
pkgs/games/quake3/quake3e/default.nix
··· 15 16 nativeBuildInputs = [ makeWrapper ]; 17 buildInputs = [ curl libGL libX11 libXxf86dga alsa-lib libXrandr libXxf86vm libXext SDL2 glibc ]; 18 - NIX_CFLAGS_COMPILE = "-I${SDL2.dev}/include/SDL2"; 19 enableParallelBuilding = true; 20 21 postPatch = ''
··· 15 16 nativeBuildInputs = [ makeWrapper ]; 17 buildInputs = [ curl libGL libX11 libXxf86dga alsa-lib libXrandr libXxf86vm libXext SDL2 glibc ]; 18 + env.NIX_CFLAGS_COMPILE = "-I${SDL2.dev}/include/SDL2"; 19 enableParallelBuilding = true; 20 21 postPatch = ''
+1 -1
pkgs/games/rott/default.nix
··· 42 43 # when using SDL_compat instead of SDL_classic, SDL_mixer isn't correctly 44 # detected, but there is no harm just specifying it 45 - NIX_CFLAGS_COMPILE = [ 46 "-I${lib.getDev SDL_mixer}/include/SDL" 47 ]; 48
··· 42 43 # when using SDL_compat instead of SDL_classic, SDL_mixer isn't correctly 44 # detected, but there is no harm just specifying it 45 + env.NIX_CFLAGS_COMPILE = toString [ 46 "-I${lib.getDev SDL_mixer}/include/SDL" 47 ]; 48
+1 -1
pkgs/games/sgt-puzzles/default.nix
··· 27 wrapGAppsHook 28 ]; 29 30 - NIX_CFLAGS_COMPILE = lib.optionalString isMobile "-DSTYLUS_BASED"; 31 32 buildInputs = [ gtk3 libX11 ]; 33
··· 27 wrapGAppsHook 28 ]; 29 30 + env.NIX_CFLAGS_COMPILE = lib.optionalString isMobile "-DSTYLUS_BASED"; 31 32 buildInputs = [ gtk3 libX11 ]; 33
+1 -1
pkgs/games/sil/default.nix
··· 40 # gcc-10. Otherwise build fails as: 41 # ld: main.o:/build/source/Sil/src/externs.h:57: multiple definition of 42 # `mini_screenshot_char'; variable.o:/build/source/Sil/src/externs.h:57: first defined here 43 - NIX_CFLAGS_COMPILE = "-fcommon"; 44 45 installPhase = '' 46 runHook preInstall
··· 40 # gcc-10. Otherwise build fails as: 41 # ld: main.o:/build/source/Sil/src/externs.h:57: multiple definition of 42 # `mini_screenshot_char'; variable.o:/build/source/Sil/src/externs.h:57: first defined here 43 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 44 45 installPhase = '' 46 runHook preInstall
+1 -1
pkgs/games/t4kcommon/default.nix
··· 24 # ld: CMakeFiles/t4k_common.dir/t4k_throttle.c.o:(.bss+0x0): multiple definition of 25 # `wrapped_lines'; CMakeFiles/t4k_common.dir/t4k_audio.c.o:(.bss+0x0): first defined here 26 # TODO: revisit https://github.com/tux4kids/t4kcommon/pull/10 when merged. 27 - NIX_CFLAGS_COMPILE = "-fcommon"; 28 29 nativeBuildInputs = [ cmake pkg-config ]; 30 buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf libpng librsvg libxml2 ];
··· 24 # ld: CMakeFiles/t4k_common.dir/t4k_throttle.c.o:(.bss+0x0): multiple definition of 25 # `wrapped_lines'; CMakeFiles/t4k_common.dir/t4k_audio.c.o:(.bss+0x0): first defined here 26 # TODO: revisit https://github.com/tux4kids/t4kcommon/pull/10 when merged. 27 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 28 29 nativeBuildInputs = [ cmake pkg-config ]; 30 buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf libpng librsvg libxml2 ];
+1 -1
pkgs/games/tinyfugue/default.nix
··· 27 # gcc-10. Otherwise build fails as: 28 # ld: world.o:/build/tf-50b8/src/socket.h:24: multiple definition of 29 # `world_decl'; command.o:/build/tf-50b8/src/socket.h:24: first defined here 30 - NIX_CFLAGS_COMPILE="-fcommon"; 31 32 meta = { 33 homepage = "https://tinyfugue.sourceforge.net/";
··· 27 # gcc-10. Otherwise build fails as: 28 # ld: world.o:/build/tf-50b8/src/socket.h:24: multiple definition of 29 # `world_decl'; command.o:/build/tf-50b8/src/socket.h:24: first defined here 30 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 31 32 meta = { 33 homepage = "https://tinyfugue.sourceforge.net/";
+1 -1
pkgs/games/tome4/default.nix
··· 37 # disable parallel building as it caused sporadic build failures 38 enableParallelBuilding = false; 39 40 - NIX_CFLAGS_COMPILE = "-I${SDL2.dev}/include/SDL2 -I${SDL2_image}/include/SDL2 -I${SDL2_ttf}/include/SDL2"; 41 42 makeFlags = [ "config=release" ]; 43
··· 37 # disable parallel building as it caused sporadic build failures 38 enableParallelBuilding = false; 39 40 + env.NIX_CFLAGS_COMPILE = "-I${SDL2.dev}/include/SDL2 -I${SDL2_image}/include/SDL2 -I${SDL2_ttf}/include/SDL2"; 41 42 makeFlags = [ "config=release" ]; 43
+1 -1
pkgs/games/typespeed/default.nix
··· 15 # gcc-10. Otherwise build fails as: 16 # ld: typespeed-typespeed.o:/build/typespeed-0.6.5/src/typespeed.h:69: multiple definition of 17 # `opt'; typespeed-file.o:/build/typespeed-0.6.5/src/typespeed.h:69: first defined here 18 - NIX_CFLAGS_COMPILE = "-fcommon"; 19 20 configureFlags = [ "--datadir=\${out}/share/" ]; 21 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
··· 15 # gcc-10. Otherwise build fails as: 16 # ld: typespeed-typespeed.o:/build/typespeed-0.6.5/src/typespeed.h:69: multiple definition of 17 # `opt'; typespeed-file.o:/build/typespeed-0.6.5/src/typespeed.h:69: first defined here 18 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 19 20 configureFlags = [ "--datadir=\${out}/share/" ]; 21 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
+1 -1
pkgs/games/ufoai/default.nix
··· 19 # r_gl.h:52: first defined here 20 # TODO: drop once release contains upstream fix: 21 # https://github.com/ufoai/ufoai/commit/8a3075fffdad294e 22 - NIX_CFLAGS_COMPILE = "-fcommon"; 23 24 preConfigure = ''tar xvf "${srcData}"''; 25
··· 19 # r_gl.h:52: first defined here 20 # TODO: drop once release contains upstream fix: 21 # https://github.com/ufoai/ufoai/commit/8a3075fffdad294e 22 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 23 24 preConfigure = ''tar xvf "${srcData}"''; 25
+1 -1
pkgs/games/vvvvvv/default.nix
··· 49 ] ++ lib.optionals stdenv.isDarwin [ Foundation IOKit ]; 50 51 # Help CMake find SDL_mixer.h 52 - NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2_mixer}/include/SDL2"; 53 54 cmakeFlags = [ "-DBUNDLE_DEPENDENCIES=OFF" ] ++ lib.optional makeAndPlay "-DMAKEANDPLAY=ON"; 55
··· 49 ] ++ lib.optionals stdenv.isDarwin [ Foundation IOKit ]; 50 51 # Help CMake find SDL_mixer.h 52 + env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL2_mixer}/include/SDL2"; 53 54 cmakeFlags = [ "-DBUNDLE_DEPENDENCIES=OFF" ] ++ lib.optional makeAndPlay "-DMAKEANDPLAY=ON"; 55
+1 -1
pkgs/games/warsow/engine.nix
··· 28 # Workaround build failure on -fno-common toolchains: 29 # ld: CMakeFiles/wswtv_server.dir/__/unix/unix_time.c.o:(.bss+0x8): multiple definition of 30 # `c_pointcontents'; CMakeFiles/wswtv_server.dir/__/null/ascript_null.c.o:(.bss+0x8): first defined here 31 - NIX_CFLAGS_COMPILE = "-fcommon"; 32 33 cmakeFlags = [ "-DQFUSION_GAME=Warsow" ]; 34
··· 28 # Workaround build failure on -fno-common toolchains: 29 # ld: CMakeFiles/wswtv_server.dir/__/unix/unix_time.c.o:(.bss+0x8): multiple definition of 30 # `c_pointcontents'; CMakeFiles/wswtv_server.dir/__/null/ascript_null.c.o:(.bss+0x8): first defined here 31 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 32 33 cmakeFlags = [ "-DQFUSION_GAME=Warsow" ]; 34
+1 -1
pkgs/games/xsok/default.nix
··· 18 buildInputs = [libX11 libXt libXaw libXpm libXext]; 19 nativeBuildInputs = [imake]; 20 21 - NIX_CFLAGS_COMPILE=" -isystem ${libXpm.dev}/include/X11 "; 22 23 preConfigure = '' 24 sed -e "s@/usr/@$out/share/@g" -i src/Imakefile
··· 18 buildInputs = [libX11 libXt libXaw libXpm libXext]; 19 nativeBuildInputs = [imake]; 20 21 + env.NIX_CFLAGS_COMPILE = " -isystem ${libXpm.dev}/include/X11 "; 22 23 preConfigure = '' 24 sed -e "s@/usr/@$out/share/@g" -i src/Imakefile
+1 -1
pkgs/games/xsokoban/default.nix
··· 11 12 buildInputs = [ libX11 xorgproto libXpm libXt ]; 13 14 - NIX_CFLAGS_COMPILE = "-I${libXpm.dev}/include/X11"; 15 16 hardeningDisable = [ "format" ]; 17
··· 11 12 buildInputs = [ libX11 xorgproto libXpm libXt ]; 13 14 + env.NIX_CFLAGS_COMPILE = "-I${libXpm.dev}/include/X11"; 15 16 hardeningDisable = [ "format" ]; 17
+1 -1
pkgs/games/zaz/default.nix
··· 35 ]; 36 37 # Fix SDL include problems 38 - NIX_CFLAGS_COMPILE="-I${lib.getDev SDL}/include/SDL -I${SDL_image}/include/SDL"; 39 # Fix linking errors 40 makeFlags = [ 41 "ZAZ_LIBS+=-lSDL"
··· 35 ]; 36 37 # Fix SDL include problems 38 + env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL}/include/SDL -I${SDL_image}/include/SDL"; 39 # Fix linking errors 40 makeFlags = [ 41 "ZAZ_LIBS+=-lSDL"
+1 -1
pkgs/games/zoom/default.nix
··· 31 xorg.libXrender 32 ]; 33 34 - NIX_CFLAGS_COMPILE = "-I${freetype}/include/freetype2 -fgnu89-inline"; 35 36 meta = with lib; { 37 homepage = "https://www.logicalshift.co.uk/unix/zoom/";
··· 31 xorg.libXrender 32 ]; 33 34 + env.NIX_CFLAGS_COMPILE = "-I${freetype}/include/freetype2 -fgnu89-inline"; 35 36 meta = with lib; { 37 homepage = "https://www.logicalshift.co.uk/unix/zoom/";
+1 -1
pkgs/misc/cups/drivers/cups-bjnp/default.nix
··· 12 preConfigure = ''configureFlags="--with-cupsbackenddir=$out/lib/cups/backend"''; 13 14 buildInputs = [cups]; 15 - NIX_CFLAGS_COMPILE = [ 16 "-include stdio.h" 17 "-Wno-error=stringop-truncation" 18 "-Wno-error=deprecated-declarations"
··· 12 preConfigure = ''configureFlags="--with-cupsbackenddir=$out/lib/cups/backend"''; 13 14 buildInputs = [cups]; 15 + env.NIX_CFLAGS_COMPILE = toString [ 16 "-include stdio.h" 17 "-Wno-error=stringop-truncation" 18 "-Wno-error=deprecated-declarations"
+1 -1
pkgs/misc/drivers/foomatic-filters/default.nix
··· 29 # gcc-10. Otherwise build fails as: 30 # ld: foomatic_rip-options.o:/build/foomatic-filters-4.0.17/options.c:49: multiple definition of 31 # `cupsfilter'; foomatic_rip-foomaticrip.o:/build/foomatic-filters-4.0.17/foomaticrip.c:158: first defined here 32 - NIX_CFLAGS_COMPILE = "-fcommon"; 33 34 installTargets = [ "install-cups" ]; 35
··· 29 # gcc-10. Otherwise build fails as: 30 # ld: foomatic_rip-options.o:/build/foomatic-filters-4.0.17/options.c:49: multiple definition of 31 # `cupsfilter'; foomatic_rip-foomaticrip.o:/build/foomatic-filters-4.0.17/foomaticrip.c:158: first defined here 32 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 33 34 installTargets = [ "install-cups" ]; 35
+1 -1
pkgs/misc/drivers/utsushi/default.nix
··· 56 libusb1.dev 57 ]; 58 59 - NIX_CFLAGS_COMPILE = [ 60 "-Wno-error=deprecated-declarations" 61 "-Wno-error=parentheses" 62 "-Wno-error=unused-variable"
··· 56 libusb1.dev 57 ]; 58 59 + env.NIX_CFLAGS_COMPILE = toString [ 60 "-Wno-error=deprecated-declarations" 61 "-Wno-error=parentheses" 62 "-Wno-error=unused-variable"
+2 -2
pkgs/misc/logging/pacemaker/default.nix
··· 76 77 installFlags = [ "DESTDIR=${placeholder "out"}" ]; 78 79 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ 80 "-Wno-error=strict-prototypes" 81 - ]; 82 83 enableParallelBuilding = true; 84
··· 76 77 installFlags = [ "DESTDIR=${placeholder "out"}" ]; 78 79 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ 80 "-Wno-error=strict-prototypes" 81 + ]); 82 83 enableParallelBuilding = true; 84
+1 -1
pkgs/misc/screensavers/rss-glx/default.nix
··· 28 ./cstddef.patch 29 ]; 30 31 - NIX_CFLAGS_COMPILE = "-I${imagemagick6.dev}/include/ImageMagick"; 32 33 meta = { 34 description = "Really Slick Screensavers Port to GLX";
··· 28 ./cstddef.patch 29 ]; 30 31 + env.NIX_CFLAGS_COMPILE = "-I${imagemagick6.dev}/include/ImageMagick"; 32 33 meta = { 34 description = "Really Slick Screensavers Port to GLX";
+1 -1
pkgs/misc/screensavers/xscreensaver/default.nix
··· 39 ]; 40 41 # "marbling" has NEON code that mixes signed and unsigned vector types 42 - NIX_CFLAGS_COMPILE = lib.optional stdenv.hostPlatform.isAarch "-flax-vector-conversions"; 43 44 postInstall = '' 45 for bin in $out/bin/*; do
··· 39 ]; 40 41 # "marbling" has NEON code that mixes signed and unsigned vector types 42 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isAarch "-flax-vector-conversions"; 43 44 postInstall = '' 45 for bin in $out/bin/*; do
+1 -1
pkgs/os-specific/bsd/freebsd/default.nix
··· 717 flex byacc gencat rpcgen 718 ]; 719 buildInputs = with self; [ include csu ]; 720 - NIX_CFLAGS_COMPILE = "-B${self.csu}/lib"; 721 722 makeFlags = [ 723 "STRIP=-s" # flag to install, not command
··· 717 flex byacc gencat rpcgen 718 ]; 719 buildInputs = with self; [ include csu ]; 720 + env.NIX_CFLAGS_COMPILE = "-B${self.csu}/lib"; 721 722 makeFlags = [ 723 "STRIP=-s" # flag to install, not command
+8 -8
pkgs/os-specific/bsd/netbsd/default.nix
··· 485 version = "9.2"; 486 sha256 = "0kk6v9k2bygq0wf9gbinliqzqpzs9bgxn0ndyl2wcv3hh2bmsr9p"; 487 patches = [ ./locale.patch ]; 488 - NIX_CFLAGS_COMPILE = "-DYESSTR=__YESSTR -DNOSTR=__NOSTR"; 489 }; 490 491 rpcgen = mkDerivation { ··· 535 path = "usr.bin/uudecode"; 536 version = "9.2"; 537 sha256 = "00a3zmh15pg4vx6hz0kaa5mi8d2b1sj4h512d7p6wbvxq6mznwcn"; 538 - NIX_CFLAGS_COMPILE = lib.optional stdenv.isLinux "-DNO_BASE64"; 539 NIX_LDFLAGS = lib.optional stdenv.isDarwin "-lresolv"; 540 }; 541 ··· 550 path = "usr.bin/config"; 551 version = "9.2"; 552 sha256 = "1yz3n4hncdkk6kp595fh2q5lg150vpqg8iw2dccydkyw4y3hgsjj"; 553 - NIX_CFLAGS_COMPILE = [ "-DMAKE_BOOTSTRAP" ]; 554 nativeBuildInputs = with buildPackages.netbsd; [ 555 bsdSetupHook netbsdSetupHook 556 makeMinimal install mandoc byacc flex rsync ··· 636 makeFlags = defaultMakeFlags ++ [ "FIRMWAREDIR=$(out)/libdata/firmware" ]; 637 hardeningDisable = [ "pic" ]; 638 MKKMOD = "no"; 639 - NIX_CFLAGS_COMPILE = [ "-Wa,--no-warn" ]; 640 641 postBuild = '' 642 make -C arch/$MACHINE/compile/$CONFIG $makeFlags ··· 715 --replace "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" "" 716 substituteInPlace $COMPONENT_PATH/readline/Makefile --replace /usr/include "$out/include" 717 ''; 718 - NIX_CFLAGS_COMPILE = [ 719 "-D__noinline=" 720 "-D__scanflike(a,b)=" 721 "-D__va_list=va_list" ··· 753 version = "9.2"; 754 sha256 = "0pd0dggl3w4bv5i5h0s1wrc8hr66n4hkv3zlklarwfdhc692fqal"; 755 buildInputs = with self; [ libterminfo ]; 756 - NIX_CFLAGS_COMPILE = [ 757 "-D__scanflike(a,b)=" 758 "-D__va_list=va_list" 759 "-D__warn_references(a,b)=" ··· 821 path = "lib/libpci"; 822 version = "9.2"; 823 sha256 = "+IOEO1Bw3/H3iCp3uk3bwsFZbvCqN5Ciz70irnPl8E8="; 824 - NIX_CFLAGS_COMPILE = [ "-I." ]; 825 meta.platforms = lib.platforms.netbsd; 826 extraPaths = with self; [ sys.src ]; 827 }; ··· 922 byacc genassym gencat lorder tsort statHook rsync rpcgen 923 ]; 924 buildInputs = with self; [ headers csu ]; 925 - NIX_CFLAGS_COMPILE = "-B${self.csu}/lib -fcommon"; 926 meta.platforms = lib.platforms.netbsd; 927 SHLIBINSTALLDIR = "$(out)/lib"; 928 MKPICINSTALL = "yes";
··· 485 version = "9.2"; 486 sha256 = "0kk6v9k2bygq0wf9gbinliqzqpzs9bgxn0ndyl2wcv3hh2bmsr9p"; 487 patches = [ ./locale.patch ]; 488 + env.NIX_CFLAGS_COMPILE = "-DYESSTR=__YESSTR -DNOSTR=__NOSTR"; 489 }; 490 491 rpcgen = mkDerivation { ··· 535 path = "usr.bin/uudecode"; 536 version = "9.2"; 537 sha256 = "00a3zmh15pg4vx6hz0kaa5mi8d2b1sj4h512d7p6wbvxq6mznwcn"; 538 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isLinux "-DNO_BASE64"; 539 NIX_LDFLAGS = lib.optional stdenv.isDarwin "-lresolv"; 540 }; 541 ··· 550 path = "usr.bin/config"; 551 version = "9.2"; 552 sha256 = "1yz3n4hncdkk6kp595fh2q5lg150vpqg8iw2dccydkyw4y3hgsjj"; 553 + env.NIX_CFLAGS_COMPILE = toString [ "-DMAKE_BOOTSTRAP" ]; 554 nativeBuildInputs = with buildPackages.netbsd; [ 555 bsdSetupHook netbsdSetupHook 556 makeMinimal install mandoc byacc flex rsync ··· 636 makeFlags = defaultMakeFlags ++ [ "FIRMWAREDIR=$(out)/libdata/firmware" ]; 637 hardeningDisable = [ "pic" ]; 638 MKKMOD = "no"; 639 + env.NIX_CFLAGS_COMPILE = toString [ "-Wa,--no-warn" ]; 640 641 postBuild = '' 642 make -C arch/$MACHINE/compile/$CONFIG $makeFlags ··· 715 --replace "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" "" 716 substituteInPlace $COMPONENT_PATH/readline/Makefile --replace /usr/include "$out/include" 717 ''; 718 + env.NIX_CFLAGS_COMPILE = toString [ 719 "-D__noinline=" 720 "-D__scanflike(a,b)=" 721 "-D__va_list=va_list" ··· 753 version = "9.2"; 754 sha256 = "0pd0dggl3w4bv5i5h0s1wrc8hr66n4hkv3zlklarwfdhc692fqal"; 755 buildInputs = with self; [ libterminfo ]; 756 + env.NIX_CFLAGS_COMPILE = toString [ 757 "-D__scanflike(a,b)=" 758 "-D__va_list=va_list" 759 "-D__warn_references(a,b)=" ··· 821 path = "lib/libpci"; 822 version = "9.2"; 823 sha256 = "+IOEO1Bw3/H3iCp3uk3bwsFZbvCqN5Ciz70irnPl8E8="; 824 + env.NIX_CFLAGS_COMPILE = toString [ "-I." ]; 825 meta.platforms = lib.platforms.netbsd; 826 extraPaths = with self; [ sys.src ]; 827 }; ··· 922 byacc genassym gencat lorder tsort statHook rsync rpcgen 923 ]; 924 buildInputs = with self; [ headers csu ]; 925 + env.NIX_CFLAGS_COMPILE = "-B${self.csu}/lib -fcommon"; 926 meta.platforms = lib.platforms.netbsd; 927 SHLIBINSTALLDIR = "$(out)/lib"; 928 MKPICINSTALL = "yes";
+1 -1
pkgs/os-specific/darwin/apple-source-releases/Security/default.nix
··· 7 8 xcbuildFlags = [ "-target" "Security_frameworks_osx" ]; 9 10 - # NIX_CFLAGS_COMPILE = "-Wno-error -I${xnu}/include/libkern -DPRIVATE -I${xnu}/Library/Frameworks/System.framework/Headers"; 11 12 preBuild = '' 13 dtrace -h -C -s OSX/libsecurity_utilities/lib/security_utilities.d -o OSX/libsecurity_utilities/lib/utilities_dtrace.h
··· 7 8 xcbuildFlags = [ "-target" "Security_frameworks_osx" ]; 9 10 + # env.NIX_CFLAGS_COMPILE = "-Wno-error -I${xnu}/include/libkern -DPRIVATE -I${xnu}/Library/Frameworks/System.framework/Headers"; 11 12 preBuild = '' 13 dtrace -h -C -s OSX/libsecurity_utilities/lib/security_utilities.d -o OSX/libsecurity_utilities/lib/utilities_dtrace.h
+1 -1
pkgs/os-specific/darwin/apple-source-releases/developer_cmds/default.nix
··· 18 19 # Workaround build failure on -fno-common toolchains: 20 # duplicate symbol '_btype_2' in:args.o pr_comment.o 21 - NIX_CFLAGS_COMPILE = "-fcommon"; 22 23 # temporary install phase until xcodebuild has "install" support 24 installPhase = ''
··· 18 19 # Workaround build failure on -fno-common toolchains: 20 # duplicate symbol '_btype_2' in:args.o pr_comment.o 21 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 22 23 # temporary install phase until xcodebuild has "install" support 24 installPhase = ''
+1 -1
pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/default.nix
··· 8 nativeBuildInputs = [ xcbuildHook ]; 9 buildInputs = [ libutil ]; 10 11 - NIX_CFLAGS_COMPILE = "-I."; 12 NIX_LDFLAGS = "-lutil"; 13 patchPhase = '' 14 # ugly hacks for missing headers
··· 8 nativeBuildInputs = [ xcbuildHook ]; 9 buildInputs = [ libutil ]; 10 11 + env.NIX_CFLAGS_COMPILE = "-I."; 12 NIX_LDFLAGS = "-lutil"; 13 patchPhase = '' 14 # ugly hacks for missing headers
+1 -1
pkgs/os-specific/darwin/apple-source-releases/dtrace/default.nix
··· 6 buildInputs = [ CoreSymbolication apple_sdk.frameworks.CoreSymbolication darling xnu ]; 7 # -fcommon: workaround build failure on -fno-common toolchains: 8 # duplicate symbol '_kCSRegionMachHeaderName' in: libproc.o dt_module_apple.o 9 - NIX_CFLAGS_COMPILE = "-DCTF_OLD_VERSIONS -DPRIVATE -DYYDEBUG=1 -I${xnu}/Library/Frameworks/System.framework/Headers -Wno-error=implicit-function-declaration -fcommon"; 10 NIX_LDFLAGS = "-L./Products/Release"; 11 xcbuildFlags = [ "-target" "dtrace_frameworks" "-target" "dtrace" ]; 12
··· 6 buildInputs = [ CoreSymbolication apple_sdk.frameworks.CoreSymbolication darling xnu ]; 7 # -fcommon: workaround build failure on -fno-common toolchains: 8 # duplicate symbol '_kCSRegionMachHeaderName' in: libproc.o dt_module_apple.o 9 + env.NIX_CFLAGS_COMPILE = "-DCTF_OLD_VERSIONS -DPRIVATE -DYYDEBUG=1 -I${xnu}/Library/Frameworks/System.framework/Headers -Wno-error=implicit-function-declaration -fcommon"; 10 NIX_LDFLAGS = "-L./Products/Release"; 11 xcbuildFlags = [ "-target" "dtrace_frameworks" "-target" "dtrace" ]; 12
+1 -1
pkgs/os-specific/darwin/apple-source-releases/file_cmds/default.nix
··· 19 20 # Workaround build failure on -fno-common toolchains: 21 # duplicate symbol '_chdname' in: ar_io.o tty_subs.o 22 - NIX_CFLAGS_COMPILE = "-fcommon"; 23 24 # temporary install phase until xcodebuild has "install" support 25 installPhase = ''
··· 19 20 # Workaround build failure on -fno-common toolchains: 21 # duplicate symbol '_chdname' in: ar_io.o tty_subs.o 22 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 23 24 # temporary install phase until xcodebuild has "install" support 25 installPhase = ''
+1 -1
pkgs/os-specific/darwin/apple-source-releases/network_cmds/default.nix
··· 7 8 # Work around error from <stdio.h> on aarch64-darwin: 9 # error: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_] 10 - NIX_CFLAGS_COMPILE = "-Wno-error=undef-prefix -I./unbound -I${xnu}/Library/Frameworks/System.framework/Headers/"; 11 12 # "spray" requires some files that aren't compiling correctly in xcbuild. 13 # "rtadvd" seems to fail with some missing constants.
··· 7 8 # Work around error from <stdio.h> on aarch64-darwin: 9 # error: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_] 10 + env.NIX_CFLAGS_COMPILE = "-Wno-error=undef-prefix -I./unbound -I${xnu}/Library/Frameworks/System.framework/Headers/"; 11 12 # "spray" requires some files that aren't compiling correctly in xcbuild. 13 # "rtadvd" seems to fail with some missing constants.
+3 -3
pkgs/os-specific/darwin/apple-source-releases/system_cmds/default.nix
··· 9 10 buildInputs = [ libutil Librpcsvc apple_sdk.frameworks.OpenDirectory pam CF 11 apple_sdk.frameworks.IOKit openbsm ]; 12 - # NIX_CFLAGS_COMPILE = lib.optionalString hostPlatform.isi686 "-D__i386__" 13 # + lib.optionalString hostPlatform.isx86_64 "-D__x86_64__" 14 # + lib.optionalString hostPlatform.isAarch32 "-D__arm__"; 15 - NIX_CFLAGS_COMPILE = [ "-DDAEMON_UID=1" 16 "-DDAEMON_GID=1" 17 "-DDEFAULT_AT_QUEUE='a'" 18 "-DDEFAULT_BATCH_QUEUE='b'" ··· 28 "-DAHZV1=64 " 29 "-DAU_SESSION_FLAG_HAS_TTY=0x4000" 30 "-DAU_SESSION_FLAG_HAS_AUTHENTICATED=0x4000" 31 - ] ++ lib.optional (!stdenv.isLinux) " -D__FreeBSD__ "; 32 33 patchPhase = '' 34 substituteInPlace login.tproj/login.c \
··· 9 10 buildInputs = [ libutil Librpcsvc apple_sdk.frameworks.OpenDirectory pam CF 11 apple_sdk.frameworks.IOKit openbsm ]; 12 + # env.NIX_CFLAGS_COMPILE = lib.optionalString hostPlatform.isi686 "-D__i386__" 13 # + lib.optionalString hostPlatform.isx86_64 "-D__x86_64__" 14 # + lib.optionalString hostPlatform.isAarch32 "-D__arm__"; 15 + env.NIX_CFLAGS_COMPILE = toString ([ "-DDAEMON_UID=1" 16 "-DDAEMON_GID=1" 17 "-DDEFAULT_AT_QUEUE='a'" 18 "-DDEFAULT_BATCH_QUEUE='b'" ··· 28 "-DAHZV1=64 " 29 "-DAU_SESSION_FLAG_HAS_TTY=0x4000" 30 "-DAU_SESSION_FLAG_HAS_AUTHENTICATED=0x4000" 31 + ] ++ lib.optional (!stdenv.isLinux) " -D__FreeBSD__ "); 32 33 patchPhase = '' 34 substituteInPlace login.tproj/login.c \
+1 -1
pkgs/os-specific/darwin/apple-source-releases/text_cmds/default.nix
··· 20 done 21 ''; 22 23 - NIX_CFLAGS_COMPILE=[ "-Wno-error=format-security" ]; # hardeningDisable doesn't cut it 24 25 meta = { 26 platforms = lib.platforms.darwin;
··· 20 done 21 ''; 22 23 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=format-security" ]; # hardeningDisable doesn't cut it 24 25 meta = { 26 platforms = lib.platforms.darwin;
+1 -1
pkgs/os-specific/darwin/apple-source-releases/top/default.nix
··· 5 buildInputs = [ apple_sdk.frameworks.IOKit ncurses libutil ]; 6 # Workaround build failure on -fno-common toolchains: 7 # duplicate symbol '_tsamp' in: main.o top.o 8 - NIX_CFLAGS_COMPILE = "-fcommon"; 9 NIX_LDFLAGS = "-lutil"; 10 installPhase = '' 11 install -D Products/Release/libtop.a $out/lib/libtop.a
··· 5 buildInputs = [ apple_sdk.frameworks.IOKit ncurses libutil ]; 6 # Workaround build failure on -fno-common toolchains: 7 # duplicate symbol '_tsamp' in: main.o top.o 8 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 9 NIX_LDFLAGS = "-lutil"; 10 installPhase = '' 11 install -D Products/Release/libtop.a $out/lib/libtop.a
+1 -1
pkgs/os-specific/darwin/apple-source-releases/xnu/default.nix
··· 75 ARCHS = arch; 76 ARCH_CONFIGS = arch; 77 78 - NIX_CFLAGS_COMPILE = "-Wno-error"; 79 80 preBuild = let macosVersion = 81 "10.0 10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.9 10.10 10.11" +
··· 75 ARCHS = arch; 76 ARCH_CONFIGS = arch; 77 78 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 79 80 preBuild = let macosVersion = 81 "10.0 10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.9 10.10 10.11" +
+1 -1
pkgs/os-specific/darwin/maloader/default.nix
··· 18 ld-mac.cc 19 ''; 20 21 - NIX_CFLAGS_COMPILE = "-I${lib.getDev libcxx}/include/c++/v1"; 22 buildInputs = [ clang libcxx ]; 23 buildFlags = [ "USE_LIBCXX=1" "release" ]; 24
··· 18 ld-mac.cc 19 ''; 20 21 + env.NIX_CFLAGS_COMPILE = "-I${lib.getDev libcxx}/include/c++/v1"; 22 buildInputs = [ clang libcxx ]; 23 buildFlags = [ "USE_LIBCXX=1" "release" ]; 24
+1 -1
pkgs/os-specific/darwin/moltenvk/default.nix
··· 73 74 dontConfigure = true; 75 76 - NIX_CFLAGS_COMPILE = [ 77 "-isystem ${lib.getDev libcxx}/include/c++/v1" 78 "-I${lib.getDev spirv-cross}/include/spirv_cross" 79 "-I${lib.getDev spirv-headers}/include/spirv/unified1/"
··· 73 74 dontConfigure = true; 75 76 + env.NIX_CFLAGS_COMPILE = toString [ 77 "-isystem ${lib.getDev libcxx}/include/c++/v1" 78 "-I${lib.getDev spirv-cross}/include/spirv_cross" 79 "-I${lib.getDev spirv-headers}/include/spirv/unified1/"
+2 -2
pkgs/os-specific/linux/anbox/default.nix
··· 86 ]; 87 88 # Flag needed by GCC 12 but unrecognized by GCC 9 (aarch64-linux default now) 89 - NIX_CFLAGS_COMPILE = lib.optionals (with stdenv; cc.isGNU && lib.versionAtLeast cc.version "12") [ 90 "-Wno-error=mismatched-new-delete" 91 - ]; 92 93 patchPhase = '' 94 patchShebangs scripts
··· 86 ]; 87 88 # Flag needed by GCC 12 but unrecognized by GCC 9 (aarch64-linux default now) 89 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (with stdenv; cc.isGNU && lib.versionAtLeast cc.version "12") [ 90 "-Wno-error=mismatched-new-delete" 91 + ]); 92 93 patchPhase = '' 94 patchShebangs scripts
+1 -1
pkgs/os-specific/linux/autofs/default.nix
··· 38 ''; 39 40 # configure script is not finding the right path 41 - NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ]; 42 43 installPhase = '' 44 make install SUBDIRS="lib daemon modules man" # all but samples
··· 38 ''; 39 40 # configure script is not finding the right path 41 + env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ]; 42 43 installPhase = '' 44 make install SUBDIRS="lib daemon modules man" # all but samples
+1 -1
pkgs/os-specific/linux/digimend/default.nix
··· 17 ''; 18 19 # Fix build on Linux kernel >= 5.18 20 - NIX_CFLAGS_COMPILE = [ "-Wno-error=implicit-fallthrough" ]; 21 22 nativeBuildInputs = kernel.moduleBuildDependencies; 23
··· 17 ''; 18 19 # Fix build on Linux kernel >= 5.18 20 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=implicit-fallthrough" ]; 21 22 nativeBuildInputs = kernel.moduleBuildDependencies; 23
+1 -1
pkgs/os-specific/linux/ebtables/default.nix
··· 15 "LOCALSTATEDIR=/var" 16 ]; 17 18 - NIX_CFLAGS_COMPILE = "-Wno-error"; 19 20 preInstall = "mkdir -p $out/etc/sysconfig"; 21
··· 15 "LOCALSTATEDIR=/var" 16 ]; 17 18 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 19 20 preInstall = "mkdir -p $out/etc/sysconfig"; 21
+1 -1
pkgs/os-specific/linux/ena/default.nix
··· 17 makeFlags = kernel.makeFlags; 18 19 # linux 3.12 20 - NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; 21 22 configurePhase = '' 23 runHook preConfigure
··· 17 makeFlags = kernel.makeFlags; 18 19 # linux 3.12 20 + env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; 21 22 configurePhase = '' 23 runHook preConfigure
+1 -1
pkgs/os-specific/linux/evdi/default.nix
··· 11 hash = "sha256-mt+vEp9FFf7smmE2PzuH/3EYl7h89RBN1zTVvv2qJ/o="; 12 }; 13 14 - NIX_CFLAGS_COMPILE = "-Wno-error -Wno-error=sign-compare"; 15 16 nativeBuildInputs = kernel.moduleBuildDependencies; 17
··· 11 hash = "sha256-mt+vEp9FFf7smmE2PzuH/3EYl7h89RBN1zTVvv2qJ/o="; 12 }; 13 14 + env.NIX_CFLAGS_COMPILE = "-Wno-error -Wno-error=sign-compare"; 15 16 nativeBuildInputs = kernel.moduleBuildDependencies; 17
+1 -1
pkgs/os-specific/linux/firmware/ath9k/default.nix
··· 30 31 nativeBuildInputs = [ m4 cmake perl ]; 32 33 - NIX_CFLAGS_COMPILE = "-w"; # old libiberty emits fatal warnings 34 35 dontUseCmakeConfigure = true; 36 enableParallelBuilding = true;
··· 30 31 nativeBuildInputs = [ m4 cmake perl ]; 32 33 + env.NIX_CFLAGS_COMPILE = "-w"; # old libiberty emits fatal warnings 34 35 dontUseCmakeConfigure = true; 36 enableParallelBuilding = true;
+1 -1
pkgs/os-specific/linux/firmware/raspberrypi/armstubs.nix
··· 14 hash = "sha512-KMHgj73eXHT++IE8DbCsFeJ87ngc9R3XxMUJy4Z3s4/MtMeB9zblADHkyJqz9oyeugeJTrDtuVETPBRo7M4Y8A=="; 15 }; 16 17 - NIX_CFLAGS_COMPILE = [ 18 "-march=armv8-a+crc" 19 ]; 20
··· 14 hash = "sha512-KMHgj73eXHT++IE8DbCsFeJ87ngc9R3XxMUJy4Z3s4/MtMeB9zblADHkyJqz9oyeugeJTrDtuVETPBRo7M4Y8A=="; 15 }; 16 17 + env.NIX_CFLAGS_COMPILE = toString [ 18 "-march=armv8-a+crc" 19 ]; 20
+1 -1
pkgs/os-specific/linux/g15daemon/default.nix
··· 82 # Workaround build failure on -fno-common toolchains like upstream gcc-10: 83 # ld: g15_plugins.o:/build/g15daemon-1.9.5.3/g15daemon/./g15daemon.h:218: 84 # multiple definition of `lcdlist_mutex'; utility_funcs.o:g15daemon.h:218: first defined here 85 - NIX_CFLAGS_COMPILE = "-fcommon"; 86 87 enableParallelBuilding = true; 88
··· 82 # Workaround build failure on -fno-common toolchains like upstream gcc-10: 83 # ld: g15_plugins.o:/build/g15daemon-1.9.5.3/g15daemon/./g15daemon.h:218: 84 # multiple definition of `lcdlist_mutex'; utility_funcs.o:g15daemon.h:218: first defined here 85 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 86 87 enableParallelBuilding = true; 88
+1 -1
pkgs/os-specific/linux/kernel/perf/default.nix
··· 121 ++ lib.optional withLibcap libcap 122 ++ lib.optional (lib.versionAtLeast kernel.version "6.0") python3.pkgs.setuptools; 123 124 - NIX_CFLAGS_COMPILE = toString [ 125 "-Wno-error=cpp" 126 "-Wno-error=bool-compare" 127 "-Wno-error=deprecated-declarations"
··· 121 ++ lib.optional withLibcap libcap 122 ++ lib.optional (lib.versionAtLeast kernel.version "6.0") python3.pkgs.setuptools; 123 124 + env.NIX_CFLAGS_COMPILE = toString [ 125 "-Wno-error=cpp" 126 "-Wno-error=bool-compare" 127 "-Wno-error=deprecated-declarations"
+1 -1
pkgs/os-specific/linux/kmscon/default.nix
··· 58 ]; 59 60 # _FORTIFY_SOURCE requires compiling with optimization (-O) 61 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-O" 62 + " -Wno-error=maybe-uninitialized"; # https://github.com/Aetf/kmscon/issues/49 63 64 configureFlags = [
··· 58 ]; 59 60 # _FORTIFY_SOURCE requires compiling with optimization (-O) 61 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-O" 62 + " -Wno-error=maybe-uninitialized"; # https://github.com/Aetf/kmscon/issues/49 63 64 configureFlags = [
+1 -1
pkgs/os-specific/linux/libselinux/default.nix
··· 47 # command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] 48 hardeningDisable = [ "fortify" ]; 49 50 - NIX_CFLAGS_COMPILE = "-Wno-error"; 51 52 makeFlags = [ 53 "PREFIX=$(out)"
··· 47 # command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] 48 hardeningDisable = [ "fortify" ]; 49 50 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 51 52 makeFlags = [ 53 "PREFIX=$(out)"
+1 -1
pkgs/os-specific/linux/libsemanage/default.nix
··· 41 # 1278 | int i; 42 # | ^ 43 # cc1: all warnings being treated as errors 44 - NIX_CFLAGS_COMPILE = [ "-Wno-error=clobbered" ]; 45 46 installTargets = [ "install" ] ++ optionals enablePython [ "install-pywrap" ]; 47
··· 41 # 1278 | int i; 42 # | ^ 43 # cc1: all warnings being treated as errors 44 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=clobbered" ]; 45 46 installTargets = [ "install" ] ++ optionals enablePython [ "install-pywrap" ]; 47
+1 -1
pkgs/os-specific/linux/libsepol/default.nix
··· 29 "SHLIBDIR=$(out)/lib" 30 ]; 31 32 - NIX_CFLAGS_COMPILE = "-Wno-error"; 33 34 enableParallelBuilding = true; 35
··· 29 "SHLIBDIR=$(out)/lib" 30 ]; 31 32 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 33 34 enableParallelBuilding = true; 35
+1 -1
pkgs/os-specific/linux/lockdep/default.nix
··· 27 # gcc-10. Otherwise build fails as: 28 # ld: lockdep.o:/build/linux-5.0.21/tools/lib/lockdep/../../include/linux/rcu.h:5: multiple definition of 29 # `rcu_scheduler_active'; common.o:/build/linux-5.0.21/tools/lib/lockdep/../../include/linux/rcu.h:5: first defined here 30 - NIX_CFLAGS_COMPILE = "-fcommon"; 31 32 buildPhase = '' 33 make defconfig
··· 27 # gcc-10. Otherwise build fails as: 28 # ld: lockdep.o:/build/linux-5.0.21/tools/lib/lockdep/../../include/linux/rcu.h:5: multiple definition of 29 # `rcu_scheduler_active'; common.o:/build/linux-5.0.21/tools/lib/lockdep/../../include/linux/rcu.h:5: first defined here 30 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 31 32 buildPhase = '' 33 make defconfig
+1 -1
pkgs/os-specific/linux/lttng-modules/default.nix
··· 15 16 hardeningDisable = [ "pic" ]; 17 18 - NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; 19 20 makeFlags = kernel.makeFlags ++ [ 21 "KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
··· 15 16 hardeningDisable = [ "pic" ]; 17 18 + env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; 19 20 makeFlags = kernel.makeFlags ++ [ 21 "KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
+1 -1
pkgs/os-specific/linux/mceinject/default.nix
··· 13 14 nativeBuildInputs = [ flex bison ]; 15 16 - NIX_CFLAGS_COMPILE = "-Os -g -Wall"; 17 18 NIX_LDFLAGS = [ "-lpthread" ]; 19
··· 13 14 nativeBuildInputs = [ flex bison ]; 15 16 + env.NIX_CFLAGS_COMPILE = "-Os -g -Wall"; 17 18 NIX_LDFLAGS = [ "-lpthread" ]; 19
+1 -1
pkgs/os-specific/linux/mwprocapture/default.nix
··· 35 36 patches = [ ./pci.patch ]; 37 38 - NIX_CFLAGS_COMPILE="-Wno-error=implicit-fallthrough"; 39 40 postInstall = '' 41 cd ../
··· 35 36 patches = [ ./pci.patch ]; 37 38 + env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough"; 39 40 postInstall = '' 41 cd ../
+1 -1
pkgs/os-specific/linux/netatop/default.nix
··· 16 buildInputs = [ kmod zlib ]; 17 18 hardeningDisable = [ "pic" ]; 19 - NIX_CFLAGS_COMPILE = [ "-Wno-error=implicit-fallthrough" ]; 20 21 patches = [ 22 # fix paths in netatop.service
··· 16 buildInputs = [ kmod zlib ]; 17 18 hardeningDisable = [ "pic" ]; 19 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=implicit-fallthrough" ]; 20 21 patches = [ 22 # fix paths in netatop.service
+1 -1
pkgs/os-specific/linux/nvidia-x11/persistenced.nix
··· 35 $out/bin/nvidia-persistenced 36 ''; 37 38 - NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ]; 39 NIX_LDFLAGS = [ "-ltirpc" ]; 40 41 meta = with lib; {
··· 35 $out/bin/nvidia-persistenced 36 ''; 37 38 + env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ]; 39 NIX_LDFLAGS = [ "-ltirpc" ]; 40 41 meta = with lib; {
+2 -2
pkgs/os-specific/linux/ocf-resource-agents/default.nix
··· 42 python3 43 ]; 44 45 - NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 46 # Needed with GCC 12 but breaks on darwin (with clang) or older gcc 47 "-Wno-error=maybe-uninitialized" 48 - ]; 49 50 meta = with lib; { 51 homepage = "https://github.com/ClusterLabs/resource-agents";
··· 42 python3 43 ]; 44 45 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 46 # Needed with GCC 12 but breaks on darwin (with clang) or older gcc 47 "-Wno-error=maybe-uninitialized" 48 + ]); 49 50 meta = with lib; { 51 homepage = "https://github.com/ClusterLabs/resource-agents";
+1 -1
pkgs/os-specific/linux/odp-dpdk/default.nix
··· 39 libbpf 40 ]; 41 42 - NIX_CFLAGS_COMPILE = [ 43 # Needed with GCC 12 44 "-Wno-error=maybe-uninitialized" 45 "-Wno-error=uninitialized"
··· 39 libbpf 40 ]; 41 42 + env.NIX_CFLAGS_COMPILE = toString [ 43 # Needed with GCC 12 44 "-Wno-error=maybe-uninitialized" 45 "-Wno-error=uninitialized"
+1 -1
pkgs/os-specific/linux/pktgen/default.nix
··· 46 RTE_SDK = dpdk; 47 GUI = lib.optionalString withGtk "true"; 48 49 - NIX_CFLAGS_COMPILE = [ 50 # Needed with GCC 12 51 "-Wno-error=address" 52 "-Wno-error=use-after-free"
··· 46 RTE_SDK = dpdk; 47 GUI = lib.optionalString withGtk "true"; 48 49 + env.NIX_CFLAGS_COMPILE = toString [ 50 # Needed with GCC 12 51 "-Wno-error=address" 52 "-Wno-error=use-after-free"
+1 -1
pkgs/os-specific/linux/roccat-tools/default.nix
··· 36 "-DLIBDIR=lib" 37 ]; 38 39 - NIX_CFLAGS_COMPILE = [ 40 "-I${harfbuzz.dev}/include/harfbuzz" 41 42 # Workaround build failure on -fno-common toolchains:
··· 36 "-DLIBDIR=lib" 37 ]; 38 39 + env.NIX_CFLAGS_COMPILE = toString [ 40 "-I${harfbuzz.dev}/include/harfbuzz" 41 42 # Workaround build failure on -fno-common toolchains:
+1 -1
pkgs/os-specific/linux/rtl8821au/default.nix
··· 15 16 hardeningDisable = [ "pic" "format" ]; 17 18 - NIX_CFLAGS_COMPILE="-Wno-error=incompatible-pointer-types"; 19 20 makeFlags = [ 21 "ARCH=${stdenv.hostPlatform.linuxArch}"
··· 15 16 hardeningDisable = [ "pic" "format" ]; 17 18 + env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types"; 19 20 makeFlags = [ 21 "ARCH=${stdenv.hostPlatform.linuxArch}"
+1 -1
pkgs/os-specific/linux/sgx/azure-dcap-client/default.nix
··· 72 --replace '$(TEST_SUITE): $(PROVIDER_LIB) $(TEST_SUITE_OBJ)' '$(TEST_SUITE): $(TEST_SUITE_OBJ)' 73 ''; 74 75 - NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations"; 76 77 makeFlags = [ 78 "-C src/Linux"
··· 72 --replace '$(TEST_SUITE): $(PROVIDER_LIB) $(TEST_SUITE_OBJ)' '$(TEST_SUITE): $(TEST_SUITE_OBJ)' 73 ''; 74 75 + env.NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations"; 76 77 makeFlags = [ 78 "-C src/Linux"
+1 -1
pkgs/os-specific/linux/sssd/default.nix
··· 27 ''; 28 29 # Something is looking for <libxml/foo.h> instead of <libxml2/libxml/foo.h> 30 - NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2"; 31 32 preConfigure = '' 33 export SGML_CATALOG_FILES="${docbookFiles}"
··· 27 ''; 28 29 # Something is looking for <libxml/foo.h> instead of <libxml2/libxml/foo.h> 30 + env.NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2"; 31 32 preConfigure = '' 33 export SGML_CATALOG_FILES="${docbookFiles}"
+1 -1
pkgs/os-specific/linux/sysdig/default.nix
··· 84 ] ++ lib.optional (kernel == null) "-DBUILD_DRIVER=OFF"; 85 86 # needed since luajit-2.1.0-beta3 87 - NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg -DluaL_getn(L,i)=((int)lua_objlen(L,i))"; 88 89 preConfigure = '' 90 if ! grep -q "${libsRev}" cmake/modules/falcosecurity-libs.cmake; then
··· 84 ] ++ lib.optional (kernel == null) "-DBUILD_DRIVER=OFF"; 85 86 # needed since luajit-2.1.0-beta3 87 + env.NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg -DluaL_getn(L,i)=((int)lua_objlen(L,i))"; 88 89 preConfigure = '' 90 if ! grep -q "${libsRev}" cmake/modules/falcosecurity-libs.cmake; then
+1 -1
pkgs/os-specific/linux/sysklogd/default.nix
··· 11 12 patches = [ ./systemd.patch ./union-wait.patch ./fix-includes-for-musl.patch ]; 13 14 - NIX_CFLAGS_COMPILE = "-DSYSV"; 15 16 installFlags = [ "BINDIR=$(out)/sbin" "MANDIR=$(out)/share/man" "INSTALL=install" ]; 17
··· 11 12 patches = [ ./systemd.patch ./union-wait.patch ./fix-includes-for-musl.patch ]; 13 14 + env.NIX_CFLAGS_COMPILE = "-DSYSV"; 15 16 installFlags = [ "BINDIR=$(out)/sbin" "MANDIR=$(out)/share/man" "INSTALL=install" ]; 17
+1 -1
pkgs/os-specific/linux/syslinux/default.nix
··· 102 # gcc-10. Otherwise build fails as: 103 # ld: acpi/xsdt.o:/build/syslinux-b404870/com32/gpllib/../gplinclude/memory.h:40: multiple definition of 104 # `e820_types'; memory.o:/build/syslinux-b404870/com32/gpllib/../gplinclude/memory.h:40: first defined here 105 - NIX_CFLAGS_COMPILE="-fcommon"; 106 107 makeFlags = [ 108 "BINDIR=$(out)/bin"
··· 102 # gcc-10. Otherwise build fails as: 103 # ld: acpi/xsdt.o:/build/syslinux-b404870/com32/gpllib/../gplinclude/memory.h:40: multiple definition of 104 # `e820_types'; memory.o:/build/syslinux-b404870/com32/gpllib/../gplinclude/memory.h:40: first defined here 105 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 106 107 makeFlags = [ 108 "BINDIR=$(out)/bin"
+1 -1
pkgs/os-specific/linux/systemd/default.nix
··· 630 --replace "SYSTEMD_CGROUP_AGENTS_PATH" "_SYSTEMD_CGROUP_AGENT_PATH" 631 ''; 632 633 - NIX_CFLAGS_COMPILE = toString ([ 634 # Can't say ${polkit.bin}/bin/pkttyagent here because that would 635 # lead to a cyclic dependency. 636 "-UPOLKIT_AGENT_BINARY_PATH"
··· 630 --replace "SYSTEMD_CGROUP_AGENTS_PATH" "_SYSTEMD_CGROUP_AGENT_PATH" 631 ''; 632 633 + env.NIX_CFLAGS_COMPILE = toString ([ 634 # Can't say ${polkit.bin}/bin/pkttyagent here because that would 635 # lead to a cyclic dependency. 636 "-UPOLKIT_AGENT_BINARY_PATH"
+1 -1
pkgs/os-specific/linux/tinyalsa/default.nix
··· 23 "-DTINYALSA_USES_PLUGINS=ON" 24 ]; 25 26 - NIX_CFLAGS_COMPILE = toString [ 27 "-Wno-error=sign-compare" 28 ]; 29
··· 23 "-DTINYALSA_USES_PLUGINS=ON" 24 ]; 25 26 + env.NIX_CFLAGS_COMPILE = toString [ 27 "-Wno-error=sign-compare" 28 ]; 29
+1 -1
pkgs/os-specific/linux/tiptop/default.nix
··· 31 nativeBuildInputs = [ flex bison ]; 32 buildInputs = [ libxml2 ncurses ]; 33 34 - NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2"; 35 36 meta = with lib; { 37 description = "Performance monitoring tool for Linux";
··· 31 nativeBuildInputs = [ flex bison ]; 32 buildInputs = [ libxml2 ncurses ]; 33 34 + env.NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2"; 35 36 meta = with lib; { 37 description = "Performance monitoring tool for Linux";
+1 -1
pkgs/os-specific/linux/usbip/default.nix
··· 15 nativeBuildInputs = [ autoconf automake libtool ]; 16 buildInputs = [ udev ]; 17 18 - NIX_CFLAGS_COMPILE = [ "-Wno-error=address-of-packed-member" ]; 19 20 preConfigure = '' 21 cd tools/usb/usbip
··· 15 nativeBuildInputs = [ autoconf automake libtool ]; 16 buildInputs = [ udev ]; 17 18 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=address-of-packed-member" ]; 19 20 preConfigure = '' 21 cd tools/usb/usbip
+1 -1
pkgs/os-specific/linux/usermount/default.nix
··· 14 nativeBuildInputs = [ pkg-config ]; 15 buildInputs = [ dbus libnotify udisks2 gdk-pixbuf ]; 16 17 - NIX_CFLAGS_COMPILE = "-DENABLE_NOTIFICATIONS"; 18 19 installPhase = '' 20 mkdir -p $out/bin
··· 14 nativeBuildInputs = [ pkg-config ]; 15 buildInputs = [ dbus libnotify udisks2 gdk-pixbuf ]; 16 17 + env.NIX_CFLAGS_COMPILE = "-DENABLE_NOTIFICATIONS"; 18 19 installPhase = '' 20 mkdir -p $out/bin
+1 -1
pkgs/servers/amqp/qpid-cpp/default.nix
··· 36 sed -i '/management/d' CMakeLists.txt 37 ''; 38 39 - NIX_CFLAGS_COMPILE = toString ([ 40 "-Wno-error=maybe-uninitialized" 41 ] ++ lib.optionals stdenv.cc.isGNU [ 42 "-Wno-error=deprecated-copy"
··· 36 sed -i '/management/d' CMakeLists.txt 37 ''; 38 39 + env.NIX_CFLAGS_COMPILE = toString ([ 40 "-Wno-error=maybe-uninitialized" 41 ] ++ lib.optionals stdenv.cc.isGNU [ 42 "-Wno-error=deprecated-copy"
+1 -1
pkgs/servers/computing/torque/default.nix
··· 25 enableParallelBuilding = true; 26 27 # added to fix build with gcc7 28 - NIX_CFLAGS_COMPILE = "-Wno-error -fpermissive"; 29 30 postPatch = '' 31 substituteInPlace Makefile.am \
··· 25 enableParallelBuilding = true; 26 27 # added to fix build with gcc7 28 + env.NIX_CFLAGS_COMPILE = "-Wno-error -fpermissive"; 29 30 postPatch = '' 31 substituteInPlace Makefile.am \
+1 -1
pkgs/servers/coturn/default.nix
··· 51 # ld: ...-libprom-0.1.1/include/prom_collector_registry.h:37: multiple definition of 52 # `PROM_COLLECTOR_REGISTRY_DEFAULT'; ...-libprom-0.1.1/include/prom_collector_registry.h:37: first defined here 53 # Should be fixed in libprom-1.2.0 and later: https://github.com/digitalocean/prometheus-client-c/pull/25 54 - NIX_CFLAGS_COMPILE = "-fcommon"; 55 56 passthru.tests.coturn = nixosTests.coturn; 57
··· 51 # ld: ...-libprom-0.1.1/include/prom_collector_registry.h:37: multiple definition of 52 # `PROM_COLLECTOR_REGISTRY_DEFAULT'; ...-libprom-0.1.1/include/prom_collector_registry.h:37: first defined here 53 # Should be fixed in libprom-1.2.0 and later: https://github.com/digitalocean/prometheus-client-c/pull/25 54 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 55 56 passthru.tests.coturn = nixosTests.coturn; 57
+1 -1
pkgs/servers/dict/libmaa.nix
··· 12 buildInputs = [ libtool ]; 13 # configureFlags = [ "--datadir=/run/current-system/share/dictd" ]; 14 15 - NIX_CFLAGS_COMPILE = "-Wno-error=format-truncation"; 16 17 meta = with lib; { 18 description = "Dict protocol server and client";
··· 12 buildInputs = [ libtool ]; 13 # configureFlags = [ "--datadir=/run/current-system/share/dictd" ]; 14 15 + env.NIX_CFLAGS_COMPILE = "-Wno-error=format-truncation"; 16 17 meta = with lib; { 18 description = "Dict protocol server and client";
+2 -2
pkgs/servers/dns/pdns/default.nix
··· 21 ]; 22 23 # Configure phase requires 64-bit time_t even on 32-bit platforms. 24 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.hostPlatform.is32bit [ 25 "-D_TIME_BITS=64" "-D_FILE_OFFSET_BITS=64" 26 - ]; 27 28 configureFlags = [ 29 "--disable-silent-rules"
··· 21 ]; 22 23 # Configure phase requires 64-bit time_t even on 32-bit platforms. 24 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.hostPlatform.is32bit [ 25 "-D_TIME_BITS=64" "-D_FILE_OFFSET_BITS=64" 26 + ]); 27 28 configureFlags = [ 29 "--disable-silent-rules"
+1 -1
pkgs/servers/fcgiwrap/default.nix
··· 11 hash = "sha256-znAsZk+aB2XO2NK8Mjc+DLwykYKHolnVQPErlaAx3Oc="; 12 }; 13 14 - NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough"; 15 configureFlags = [ "--with-systemd" "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ]; 16 17 nativeBuildInputs = [ autoreconfHook pkg-config ];
··· 11 hash = "sha256-znAsZk+aB2XO2NK8Mjc+DLwykYKHolnVQPErlaAx3Oc="; 12 }; 13 14 + env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-fallthrough"; 15 configureFlags = [ "--with-systemd" "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ]; 16 17 nativeBuildInputs = [ autoreconfHook pkg-config ];
+1 -1
pkgs/servers/foundationdb/cmake.nix
··· 60 (lib.optionalString (!useClang) "-DUSE_LD=GOLD") 61 ]; 62 63 - NIX_CFLAGS_COMPILE = [ 64 # Needed with GCC 12 65 "-Wno-error=missing-template-keyword" 66 ];
··· 60 (lib.optionalString (!useClang) "-DUSE_LD=GOLD") 61 ]; 62 63 + env.NIX_CFLAGS_COMPILE = toString [ 64 # Needed with GCC 12 65 "-Wno-error=missing-template-keyword" 66 ];
+1 -1
pkgs/servers/gemini/gmnisrv/default.nix
··· 11 sha256 = "sha256-V9HXXYQIo3zeqZjJEn+dhemNg6AU+ee3FRmBmXgLuYQ="; 12 }; 13 14 - NIX_CFLAGS_COMPILE = [ 15 "-Wno-error=deprecated-declarations" 16 ]; 17
··· 11 sha256 = "sha256-V9HXXYQIo3zeqZjJEn+dhemNg6AU+ee3FRmBmXgLuYQ="; 12 }; 13 14 + env.NIX_CFLAGS_COMPILE = toString [ 15 "-Wno-error=deprecated-declarations" 16 ]; 17
+1 -1
pkgs/servers/geospatial/mapcache/default.nix
··· 48 "-DAPACHE_MODULE_DIR=${placeholder "out"}/modules" 49 ]; 50 51 - NIX_CFLAGS_COMPILE = "-std=c99"; 52 53 meta = with lib; { 54 description = "A server that implements tile caching to speed up access to WMS layers";
··· 48 "-DAPACHE_MODULE_DIR=${placeholder "out"}/modules" 49 ]; 50 51 + env.NIX_CFLAGS_COMPILE = "-std=c99"; 52 53 meta = with lib; { 54 description = "A server that implements tile caching to speed up access to WMS layers";
+1 -1
pkgs/servers/http/mini-httpd/default.nix
··· 13 14 enableParallelBuilding = true; 15 16 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 17 18 meta = { 19 homepage = "http://mini-httpd.nongnu.org/";
··· 13 14 enableParallelBuilding = true; 15 16 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 17 18 meta = { 19 homepage = "http://mini-httpd.nongnu.org/";
+1 -1
pkgs/servers/http/nginx/generic.nix
··· 116 ++ configureFlags 117 ++ map (mod: "--add-module=${mod.src}") modules; 118 119 - NIX_CFLAGS_COMPILE = toString ([ 120 "-I${libxml2.dev}/include/libxml2" 121 "-Wno-error=implicit-fallthrough" 122 ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [
··· 116 ++ configureFlags 117 ++ map (mod: "--add-module=${mod.src}") modules; 118 119 + env.NIX_CFLAGS_COMPILE = toString ([ 120 "-I${libxml2.dev}/include/libxml2" 121 "-Wno-error=implicit-fallthrough" 122 ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [
+1 -1
pkgs/servers/http/tengine/default.nix
··· 98 ++ optional (with stdenv.hostPlatform; isLinux || isFreeBSD) "--with-file-aio" 99 ++ map (mod: "--add-module=${mod.src}") modules; 100 101 - NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2 -Wno-error=implicit-fallthrough" 102 + optionalString stdenv.isDarwin " -Wno-error=deprecated-declarations"; 103 104 preConfigure = (concatMapStringsSep "\n" (mod: mod.preConfigure or "") modules);
··· 98 ++ optional (with stdenv.hostPlatform; isLinux || isFreeBSD) "--with-file-aio" 99 ++ map (mod: "--add-module=${mod.src}") modules; 100 101 + env.NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2 -Wno-error=implicit-fallthrough" 102 + optionalString stdenv.isDarwin " -Wno-error=deprecated-declarations"; 103 104 preConfigure = (concatMapStringsSep "\n" (mod: mod.preConfigure or "") modules);
+2 -2
pkgs/servers/mail/archiveopteryx/default.nix
··· 21 ''; 22 23 # fix build on gcc7+ and gcc11+ 24 - NIX_CFLAGS_COMPILE = [ 25 "-std=c++11" # c++17+ has errors 26 "-Wno-error=builtin-declaration-mismatch" 27 "-Wno-error=deprecated-copy" ··· 29 "-Wno-error=nonnull" 30 ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [ 31 "-Wno-error=mismatched-new-delete" 32 - ]; 33 34 buildPhase = ''jam "-j$NIX_BUILD_CORES" ''; 35 installPhase = ''
··· 21 ''; 22 23 # fix build on gcc7+ and gcc11+ 24 + env.NIX_CFLAGS_COMPILE = toString ([ 25 "-std=c++11" # c++17+ has errors 26 "-Wno-error=builtin-declaration-mismatch" 27 "-Wno-error=deprecated-copy" ··· 29 "-Wno-error=nonnull" 30 ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [ 31 "-Wno-error=mismatched-new-delete" 32 + ]); 33 34 buildPhase = ''jam "-j$NIX_BUILD_CORES" ''; 35 installPhase = ''
+1 -1
pkgs/servers/mail/dspam/default.nix
··· 68 # gcc-10. Otherwise build fails as: 69 # ld: .libs/hash_drv.o:/build/dspam-3.10.2/src/util.h:96: multiple definition of `verified_user'; 70 # .libs/libdspam.o:/build/dspam-3.10.2/src/util.h:96: first defined here 71 - NIX_CFLAGS_COMPILE = "-fcommon"; 72 73 # Lots of things are hardwired to paths like sysconfdir. That's why we install with both "prefix" and "DESTDIR" 74 # and fix directory structure manually after that.
··· 68 # gcc-10. Otherwise build fails as: 69 # ld: .libs/hash_drv.o:/build/dspam-3.10.2/src/util.h:96: multiple definition of `verified_user'; 70 # .libs/libdspam.o:/build/dspam-3.10.2/src/util.h:96: first defined here 71 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 72 73 # Lots of things are hardwired to paths like sysconfdir. That's why we install with both "prefix" and "DESTDIR" 74 # and fix directory structure manually after that.
+1 -1
pkgs/servers/mail/mlmmj/default.nix
··· 20 # gcc-10. Otherwise build fails as: 21 # ld: getlistdelim.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: multiple definition of 22 # `subtype_strs'; mlmmj-send.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: first defined here 23 - NIX_CFLAGS_COMPILE = "-fcommon"; 24 25 postInstall = '' 26 # grab all documentation files
··· 20 # gcc-10. Otherwise build fails as: 21 # ld: getlistdelim.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: multiple definition of 22 # `subtype_strs'; mlmmj-send.o:/build/mlmmj-1.3.0/src/../include/mlmmj.h:84: first defined here 23 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 24 25 postInstall = '' 26 # grab all documentation files
+1 -1
pkgs/servers/mail/opensmtpd/extras.nix
··· 68 "--with-table-redis" 69 ]; 70 71 - NIX_CFLAGS_COMPILE = lib.optionalString enableRedis 72 "-I${hiredis}/include/hiredis -lhiredis" 73 + lib.optionalString enableMysql 74 " -L${libmysqlclient}/lib/mysql";
··· 68 "--with-table-redis" 69 ]; 70 71 + env.NIX_CFLAGS_COMPILE = lib.optionalString enableRedis 72 "-I${hiredis}/include/hiredis -lhiredis" 73 + lib.optionalString enableMysql 74 " -L${libmysqlclient}/lib/mysql";
+1 -1
pkgs/servers/mail/postfix/pfixtools.nix
··· 42 --replace /bin/bash ${bash}/bin/bash; 43 ''; 44 45 - NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=nonnull-compare -Wno-error=format-truncation"; 46 47 makeFlags = [ "DESTDIR=$(out)" "prefix=" ]; 48
··· 42 --replace /bin/bash ${bash}/bin/bash; 43 ''; 44 45 + env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=nonnull-compare -Wno-error=format-truncation"; 46 47 makeFlags = [ "DESTDIR=$(out)" "prefix=" ]; 48
+2 -2
pkgs/servers/memcached/default.nix
··· 17 18 hardeningEnable = [ "pie" ]; 19 20 - NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ] 21 - ++ lib.optional stdenv.isDarwin "-Wno-error"; 22 23 meta = with lib; { 24 description = "A distributed memory object caching system";
··· 17 18 hardeningEnable = [ "pie" ]; 19 20 + env.NIX_CFLAGS_COMPILE = toString ([ "-Wno-error=deprecated-declarations" ] 21 + ++ lib.optional stdenv.isDarwin "-Wno-error"); 22 23 meta = with lib; { 24 description = "A distributed memory object caching system";
+1 -1
pkgs/servers/monitoring/grafana-agent/default.nix
··· 38 39 # uses go-systemd, which uses libsystemd headers 40 # https://github.com/coreos/go-systemd/issues/351 41 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.isLinux [ "-I${lib.getDev systemd}/include" ]; 42 43 # tries to access /sys: https://github.com/grafana/agent/issues/333 44 preBuild = ''
··· 38 39 # uses go-systemd, which uses libsystemd headers 40 # https://github.com/coreos/go-systemd/issues/351 41 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isLinux [ "-I${lib.getDev systemd}/include" ]); 42 43 # tries to access /sys: https://github.com/grafana/agent/issues/333 44 preBuild = ''
+1 -1
pkgs/servers/mpd/default.nix
··· 166 ++ lib.optional (builtins.elem "documentation" features_) "man"; 167 168 # FIXME: workaround for Pipewire 0.3.64 deprecated API change, remove when fixed upstream 169 - NIX_CFLAGS_COMPILE = [ "-DPW_ENABLE_DEPRECATED" ]; 170 171 CXXFLAGS = lib.optionals stdenv.isDarwin [ 172 "-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0"
··· 166 ++ lib.optional (builtins.elem "documentation" features_) "man"; 167 168 # FIXME: workaround for Pipewire 0.3.64 deprecated API change, remove when fixed upstream 169 + env.NIX_CFLAGS_COMPILE = toString [ "-DPW_ENABLE_DEPRECATED" ]; 170 171 CXXFLAGS = lib.optionals stdenv.isDarwin [ 172 "-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0"
+1 -1
pkgs/servers/nosql/arangodb/default.nix
··· 48 49 # prevent failing with "cmake-3.13.4/nix-support/setup-hook: line 10: ./3rdParty/rocksdb/RocksDBConfig.cmake.in: No such file or directory" 50 dontFixCmake = true; 51 - NIX_CFLAGS_COMPILE = "-Wno-error"; 52 53 postPatch = '' 54 sed -ie 's!/bin/echo!echo!' 3rdParty/V8/gypfiles/*.gypi
··· 48 49 # prevent failing with "cmake-3.13.4/nix-support/setup-hook: line 10: ./3rdParty/rocksdb/RocksDBConfig.cmake.in: No such file or directory" 50 dontFixCmake = true; 51 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 52 53 postPatch = '' 54 sed -ie 's!/bin/echo!echo!' 3rdParty/V8/gypfiles/*.gypi
+1 -1
pkgs/servers/nosql/mongodb/mongodb.nix
··· 131 --replace 'engine("wiredTiger")' 'engine("mmapv1")' 132 ''; 133 134 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang 135 "-Wno-unused-command-line-argument"; 136 137 sconsFlags = [
··· 131 --replace 'engine("wiredTiger")' 'engine("mmapv1")' 132 ''; 133 134 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang 135 "-Wno-unused-command-line-argument"; 136 137 sconsFlags = [
+1 -1
pkgs/servers/nosql/redis/default.nix
··· 32 33 hardeningEnable = [ "pie" ]; 34 35 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang [ "-std=c11" ]; 36 37 # darwin currently lacks a pure `pgrep` which is extensively used here 38 doCheck = !stdenv.isDarwin;
··· 32 33 hardeningEnable = [ "pie" ]; 34 35 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ "-std=c11" ]); 36 37 # darwin currently lacks a pure `pgrep` which is extensively used here 38 doCheck = !stdenv.isDarwin;
+1 -1
pkgs/servers/openbgpd/default.nix
··· 39 # gcc-10. Otherwise build fails as: 40 # ld: bgpd-rde_peer.o:/build/source/src/bgpd/bgpd.h:133: multiple definition of `bgpd_process'; 41 # bgpd-bgpd.o:/build/source/src/bgpd/bgpd.h:133: first defined here 42 - NIX_CFLAGS_COMPILE = "-fcommon"; 43 44 meta = with lib; { 45 description =
··· 39 # gcc-10. Otherwise build fails as: 40 # ld: bgpd-rde_peer.o:/build/source/src/bgpd/bgpd.h:133: multiple definition of `bgpd_process'; 41 # bgpd-bgpd.o:/build/source/src/bgpd/bgpd.h:133: first defined here 42 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 43 44 meta = with lib; { 45 description =
+1 -1
pkgs/servers/osrm-backend/default.nix
··· 15 16 buildInputs = [ bzip2 libxml2 libzip boost lua luabind tbb expat ]; 17 18 - NIX_CFLAGS_COMPILE = [ 19 # Needed with GCC 12 20 "-Wno-error=stringop-overflow" 21 "-Wno-error=uninitialized"
··· 15 16 buildInputs = [ bzip2 libxml2 libzip boost lua luabind tbb expat ]; 17 18 + env.NIX_CFLAGS_COMPILE = toString [ 19 # Needed with GCC 12 20 "-Wno-error=stringop-overflow" 21 "-Wno-error=uninitialized"
+1 -1
pkgs/servers/search/qdrant/default.nix
··· 34 35 nativeBuildInputs = [ protobuf rustPlatform.bindgenHook pkg-config ]; 36 37 - NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-faligned-allocation"; 38 39 meta = with lib; { 40 description = "Vector Search Engine for the next generation of AI applications";
··· 34 35 nativeBuildInputs = [ protobuf rustPlatform.bindgenHook pkg-config ]; 36 37 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-faligned-allocation"; 38 39 meta = with lib; { 40 description = "Vector Search Engine for the next generation of AI applications";
+1 -1
pkgs/servers/sip/freeswitch/default.nix
··· 123 124 enableParallelBuilding = true; 125 126 - NIX_CFLAGS_COMPILE = "-Wno-error"; 127 128 # Using c++14 because of build error 129 # gsm_at.h:94:32: error: ISO C++17 does not allow dynamic exception specifications
··· 123 124 enableParallelBuilding = true; 125 126 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 127 128 # Using c++14 because of build error 129 # gsm_at.h:94:32: error: ISO C++17 does not allow dynamic exception specifications
+1 -1
pkgs/servers/sql/cockroachdb/default.nix
··· 24 sha256 = "0mm3hfr778c7djza8gr1clwa8wca4d3ldh9hlg80avw4x664y5zi"; 25 }; 26 27 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ "-Wno-error=deprecated-copy" "-Wno-error=redundant-move" "-Wno-error=pessimizing-move" ]; 28 29 inherit nativeBuildInputs buildInputs; 30
··· 24 sha256 = "0mm3hfr778c7djza8gr1clwa8wca4d3ldh9hlg80avw4x664y5zi"; 25 }; 26 27 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ "-Wno-error=deprecated-copy" "-Wno-error=redundant-move" "-Wno-error=pessimizing-move" ]); 28 29 inherit nativeBuildInputs buildInputs; 30
+1 -1
pkgs/servers/sql/postgresql/default.nix
··· 62 63 buildFlags = [ "world" ]; 64 65 - NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2"; 66 67 # Otherwise it retains a reference to compiler and fails; see #44767. TODO: better. 68 preConfigure = "CC=${stdenv.cc.targetPrefix}cc";
··· 62 63 buildFlags = [ "world" ]; 64 65 + env.NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2"; 66 67 # Otherwise it retains a reference to compiler and fails; see #44767. TODO: better. 68 preConfigure = "CC=${stdenv.cc.targetPrefix}cc";
+2 -2
pkgs/servers/tvheadend/default.nix
··· 75 76 enableParallelBuilding = true; 77 78 - NIX_CFLAGS_COMPILE = [ 79 "-Wno-error=format-truncation" 80 "-Wno-error=stringop-truncation" 81 ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 82 # Needed with GCC 12 but unrecognized with GCC 9 83 "-Wno-error=use-after-free" 84 - ]; 85 86 configureFlags = [ 87 # disable dvbscan, as having it enabled causes a network download which
··· 75 76 enableParallelBuilding = true; 77 78 + env.NIX_CFLAGS_COMPILE = toString ([ 79 "-Wno-error=format-truncation" 80 "-Wno-error=stringop-truncation" 81 ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 82 # Needed with GCC 12 but unrecognized with GCC 9 83 "-Wno-error=use-after-free" 84 + ]); 85 86 configureFlags = [ 87 # disable dvbscan, as having it enabled causes a network download which
+1 -1
pkgs/servers/ucarp/default.nix
··· 15 # gcc-10. Otherwise build fails as: 16 # ld: daemonize.o:/build/ucarp-1.5.2/src/ip_carp.h:73: multiple definition of 17 # `__packed'; ucarp.o:/build/ucarp-1.5.2/src/ip_carp.h:73: first defined here 18 - NIX_CFLAGS_COMPILE = "-fcommon"; 19 20 meta = with lib; { 21 description = "Userspace implementation of CARP";
··· 15 # gcc-10. Otherwise build fails as: 16 # ld: daemonize.o:/build/ucarp-1.5.2/src/ip_carp.h:73: multiple definition of 17 # `__packed'; ucarp.o:/build/ucarp-1.5.2/src/ip_carp.h:73: first defined here 18 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 19 20 meta = with lib; { 21 description = "Userspace implementation of CARP";
+1 -1
pkgs/servers/varnish/default.nix
··· 32 ''; 33 34 # https://github.com/varnishcache/varnish-cache/issues/1875 35 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-fexcess-precision=standard"; 36 37 outputs = [ "out" "dev" "man" ]; 38
··· 32 ''; 33 34 # https://github.com/varnishcache/varnish-cache/issues/1875 35 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-fexcess-precision=standard"; 36 37 outputs = [ "out" "dev" "man" ]; 38
+1 -1
pkgs/servers/varnish/digest.nix
··· 21 22 configureFlags = [ "VMOD_DIR=$(out)/lib/varnish/vmods" ]; 23 24 - NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ]; 25 26 doCheck = true; 27
··· 21 22 configureFlags = [ "VMOD_DIR=$(out)/lib/varnish/vmods" ]; 23 24 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ]; 25 26 doCheck = true; 27
+3 -3
pkgs/servers/x11/xorg/overrides.nix
··· 458 xf86videowsfb = super.xf86videowsfb.overrideAttrs (attrs: { meta = attrs.meta // { broken = true; }; }); 459 460 xf86videoomap = super.xf86videoomap.overrideAttrs (attrs: { 461 - NIX_CFLAGS_COMPILE = [ "-Wno-error=format-overflow" ]; 462 }); 463 464 xf86videoamdgpu = super.xf86videoamdgpu.overrideAttrs (attrs: { ··· 592 593 xf86videovmware = super.xf86videovmware.overrideAttrs (attrs: { 594 buildInputs = attrs.buildInputs ++ [ mesa mesa.driversdev llvm ]; # for libxatracker 595 - NIX_CFLAGS_COMPILE = [ "-Wno-error=address" ]; # gcc12 596 meta = attrs.meta // { 597 platforms = ["i686-linux" "x86_64-linux"]; 598 }; ··· 893 "--disable-tls" 894 ]; 895 896 - NIX_CFLAGS_COMPILE = [ 897 # Needed with GCC 12 898 "-Wno-error=array-bounds" 899 ];
··· 458 xf86videowsfb = super.xf86videowsfb.overrideAttrs (attrs: { meta = attrs.meta // { broken = true; }; }); 459 460 xf86videoomap = super.xf86videoomap.overrideAttrs (attrs: { 461 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=format-overflow" ]; 462 }); 463 464 xf86videoamdgpu = super.xf86videoamdgpu.overrideAttrs (attrs: { ··· 592 593 xf86videovmware = super.xf86videovmware.overrideAttrs (attrs: { 594 buildInputs = attrs.buildInputs ++ [ mesa mesa.driversdev llvm ]; # for libxatracker 595 + env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=address" ]; # gcc12 596 meta = attrs.meta // { 597 platforms = ["i686-linux" "x86_64-linux"]; 598 }; ··· 893 "--disable-tls" 894 ]; 895 896 + env.NIX_CFLAGS_COMPILE = toString [ 897 # Needed with GCC 12 898 "-Wno-error=array-bounds" 899 ];
+1 -1
pkgs/shells/bash/5.nix
··· 41 42 separateDebugInfo = true; 43 44 - NIX_CFLAGS_COMPILE = '' 45 -DSYS_BASHRC="/etc/bashrc" 46 -DSYS_BASH_LOGOUT="/etc/bash_logout" 47 '' + lib.optionalString (!forFHSEnv) ''
··· 41 42 separateDebugInfo = true; 43 44 + env.NIX_CFLAGS_COMPILE = '' 45 -DSYS_BASHRC="/etc/bashrc" 46 -DSYS_BASH_LOGOUT="/etc/bash_logout" 47 '' + lib.optionalString (!forFHSEnv) ''
+4 -4
pkgs/stdenv/adapters.nix
··· 142 Example: 143 stdenvNoOptimise = 144 addAttrsToDerivation 145 - { NIX_CFLAGS_COMPILE = "-O0"; } 146 stdenv; 147 */ 148 addAttrsToDerivation = extraAttrs: stdenv: stdenv.override (old: { ··· 176 stdenv.override (old: { 177 mkDerivationFromStdenv = extendMkDerivationArgs old (args: { 178 dontStrip = true; 179 - NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " -ggdb -Og"; 180 }); 181 }); 182 ··· 197 impureUseNativeOptimizations = stdenv: 198 stdenv.override (old: { 199 mkDerivationFromStdenv = extendMkDerivationArgs old (args: { 200 - NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " -march=native"; 201 NIX_ENFORCE_NO_NATIVE = false; 202 203 preferLocalBuild = true; ··· 222 withCFlags = compilerFlags: stdenv: 223 stdenv.override (old: { 224 mkDerivationFromStdenv = extendMkDerivationArgs old (args: { 225 - NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " ${toString compilerFlags}"; 226 }); 227 }); 228 }
··· 142 Example: 143 stdenvNoOptimise = 144 addAttrsToDerivation 145 + { env.NIX_CFLAGS_COMPILE = "-O0"; } 146 stdenv; 147 */ 148 addAttrsToDerivation = extraAttrs: stdenv: stdenv.override (old: { ··· 176 stdenv.override (old: { 177 mkDerivationFromStdenv = extendMkDerivationArgs old (args: { 178 dontStrip = true; 179 + env.NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " -ggdb -Og"; 180 }); 181 }); 182 ··· 197 impureUseNativeOptimizations = stdenv: 198 stdenv.override (old: { 199 mkDerivationFromStdenv = extendMkDerivationArgs old (args: { 200 + env.NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " -march=native"; 201 NIX_ENFORCE_NO_NATIVE = false; 202 203 preferLocalBuild = true; ··· 222 withCFlags = compilerFlags: stdenv: 223 stdenv.override (old: { 224 mkDerivationFromStdenv = extendMkDerivationArgs old (args: { 225 + env.NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " ${toString compilerFlags}"; 226 }); 227 }); 228 }
+1 -1
pkgs/test/stdenv/default.nix
··· 113 114 # Assumption: the first output* variable to be configured is 115 # _overrideFirst outputDev "dev" "out" 116 - expectedMsg = "_assignFirst: could not find a non-empty variable to assign to outputDev. The following variables were all unset or empty: dev out."; 117 } '' 118 grep -F "$expectedMsg" $result/testBuildFailure.log >/dev/null 119 touch $out
··· 113 114 # Assumption: the first output* variable to be configured is 115 # _overrideFirst outputDev "dev" "out" 116 + expectedMsg = "error: _assignFirst: could not find a non-empty variable to assign to outputDev.\n The following variables were all unset or empty:\n dev out"; 117 } '' 118 grep -F "$expectedMsg" $result/testBuildFailure.log >/dev/null 119 touch $out
+1 -1
pkgs/test/stdenv/hooks.nix
··· 115 name = "test-reproducible-builds"; 116 buildCommand = '' 117 # can't be tested more precisely because the value of random-seed changes depending on the output 118 - [[ $NIX_CFLAGS_COMPILE =~ "-frandom-seed=" ]] 119 touch $out 120 ''; 121 };
··· 115 name = "test-reproducible-builds"; 116 buildCommand = '' 117 # can't be tested more precisely because the value of random-seed changes depending on the output 118 + [[ $env.NIX_CFLAGS_COMPILE =~ "-frandom-seed=" ]] 119 touch $out 120 ''; 121 };
+1 -1
pkgs/tools/X11/nx-libs/default.nix
··· 29 xorg.xkbcomp xorg.xkeyboardconfig libtirpc 30 ]; 31 32 - NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ]; 33 NIX_LDFLAGS = [ "-ltirpc" ]; 34 35 postPatch = ''
··· 29 xorg.xkbcomp xorg.xkeyboardconfig libtirpc 30 ]; 31 32 + env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ]; 33 NIX_LDFLAGS = [ "-ltirpc" ]; 34 35 postPatch = ''
+1 -1
pkgs/tools/X11/xbindkeys-config/default.nix
··· 6 7 # Workaround build failure on -fno-common toolchains like upstream 8 # gcc-10. 9 - NIX_CFLAGS_COMPILE = "-fcommon"; 10 11 nativeBuildInputs = [ pkg-config makeWrapper ]; 12 buildInputs = [ gtk ];
··· 6 7 # Workaround build failure on -fno-common toolchains like upstream 8 # gcc-10. 9 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 10 11 nativeBuildInputs = [ pkg-config makeWrapper ]; 12 buildInputs = [ gtk ];
+1 -1
pkgs/tools/X11/xpra/default.nix
··· 156 ]); 157 158 # error: 'import_cairo' defined but not used 159 - NIX_CFLAGS_COMPILE = "-Wno-error=unused-function"; 160 161 setupPyBuildFlags = [ 162 "--with-Xdummy"
··· 156 ]); 157 158 # error: 'import_cairo' defined but not used 159 + env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-function"; 160 161 setupPyBuildFlags = [ 162 "--with-Xdummy"
+1 -1
pkgs/tools/admin/adtool/default.nix
··· 23 # gcc-10. Otherwise build fails as: 24 # ld: ../../src/lib/libactive_directory.a(active_directory.o):/build/adtool-1.3.3/src/lib/active_directory.h:31: 25 # multiple definition of `system_config_file'; adtool.o:/build/adtool-1.3.3/src/tools/../../src/lib/active_directory.h:31: first defined here 26 - NIX_CFLAGS_COMPILE = "-fcommon"; 27 28 enableParallelBuilding = true; 29
··· 23 # gcc-10. Otherwise build fails as: 24 # ld: ../../src/lib/libactive_directory.a(active_directory.o):/build/adtool-1.3.3/src/lib/active_directory.h:31: 25 # multiple definition of `system_config_file'; adtool.o:/build/adtool-1.3.3/src/tools/../../src/lib/active_directory.h:31: first defined here 26 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 27 28 enableParallelBuilding = true; 29
+1 -1
pkgs/tools/admin/tigervnc/default.nix
··· 64 "-DCMAKE_INSTALL_LIBEXECDIR=${placeholder "out"}/bin" 65 ]; 66 67 - NIX_CFLAGS_COMPILE = [ 68 "-Wno-error=array-bounds" 69 ]; 70
··· 64 "-DCMAKE_INSTALL_LIBEXECDIR=${placeholder "out"}/bin" 65 ]; 66 67 + env.NIX_CFLAGS_COMPILE = toString [ 68 "-Wno-error=array-bounds" 69 ]; 70
+2 -2
pkgs/tools/archivers/7zz/default.nix
··· 64 --replace windres.exe ${stdenv.cc.targetPrefix}windres 65 ''; 66 67 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ 68 "-Wno-deprecated-copy-dtor" 69 ] ++ lib.optionals stdenv.hostPlatform.isMinGW [ 70 "-Wno-conversion" 71 "-Wno-unused-macros" 72 - ]; 73 74 inherit makefile; 75
··· 64 --replace windres.exe ${stdenv.cc.targetPrefix}windres 65 ''; 66 67 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ 68 "-Wno-deprecated-copy-dtor" 69 ] ++ lib.optionals stdenv.hostPlatform.isMinGW [ 70 "-Wno-conversion" 71 "-Wno-unused-macros" 72 + ]); 73 74 inherit makefile; 75
+1 -1
pkgs/tools/archivers/bomutils/default.nix
··· 21 # fix 22 # src/lsbom.cpp:70:10: error: reference to 'data' is ambiguous 23 # which refers to std::data from C++17 24 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 25 26 meta = with lib; { 27 homepage = "https://github.com/hogliux/bomutils";
··· 21 # fix 22 # src/lsbom.cpp:70:10: error: reference to 'data' is ambiguous 23 # which refers to std::data from C++17 24 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 25 26 meta = with lib; { 27 homepage = "https://github.com/hogliux/bomutils";
+1 -1
pkgs/tools/archivers/p7zip/default.nix
··· 50 51 setupHook = ./setup-hook.sh; 52 53 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing"; 54 55 passthru.updateScript = ./update.sh; 56
··· 50 51 setupHook = ./setup-hook.sh; 52 53 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing"; 54 55 passthru.updateScript = ./update.sh; 56
+1 -1
pkgs/tools/audio/darkice/default.nix
··· 17 libopus libvorbis libogg libpulseaudio alsa-lib libsamplerate libjack2 lame 18 ]; 19 20 - NIX_CFLAGS_COMPILE = "-fpermissive"; 21 22 configureFlags = [ 23 "--with-faac-prefix=${faac}"
··· 17 libopus libvorbis libogg libpulseaudio alsa-lib libsamplerate libjack2 lame 18 ]; 19 20 + env.NIX_CFLAGS_COMPILE = "-fpermissive"; 21 22 configureFlags = [ 23 "--with-faac-prefix=${faac}"
+1 -1
pkgs/tools/audio/gvolicon/default.nix
··· 19 20 makeFlags = [ "PREFIX=$(out)" ]; 21 22 - NIX_CFLAGS_COMPILE = "-D_POSIX_C_SOURCE"; 23 24 meta = { 25 description = "A simple and lightweight volume icon that sits in your system tray";
··· 19 20 makeFlags = [ "PREFIX=$(out)" ]; 21 22 + env.NIX_CFLAGS_COMPILE = "-D_POSIX_C_SOURCE"; 23 24 meta = { 25 description = "A simple and lightweight volume icon that sits in your system tray";
+2 -2
pkgs/tools/audio/mpris-scrobbler/default.nix
··· 53 "-Dversion=${version}" 54 ]; 55 56 - NIX_CFLAGS_COMPILE = [ 57 # Needed with GCC 12 58 "-Wno-error=address" 59 ] ++ lib.optionals stdenv.isDarwin [ ··· 63 "-Wno-array-bounds" 64 "-Wno-free-nonheap-object" 65 "-Wno-stringop-truncation" 66 - ]; 67 68 passthru = { 69 updateScript = nix-update-script { };
··· 53 "-Dversion=${version}" 54 ]; 55 56 + env.NIX_CFLAGS_COMPILE = toString ([ 57 # Needed with GCC 12 58 "-Wno-error=address" 59 ] ++ lib.optionals stdenv.isDarwin [ ··· 63 "-Wno-array-bounds" 64 "-Wno-free-nonheap-object" 65 "-Wno-stringop-truncation" 66 + ]); 67 68 passthru = { 69 updateScript = nix-update-script { };
+1 -1
pkgs/tools/audio/pa-applet/default.nix
··· 21 ''; 22 23 # work around a problem related to gtk3 updates 24 - NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 25 26 postInstall = ""; 27
··· 21 ''; 22 23 # work around a problem related to gtk3 updates 24 + env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 25 26 postInstall = ""; 27
+1 -1
pkgs/tools/backup/btar/default.nix
··· 20 # gcc-10. Otherwise build fails as: 21 # ld: listindex.o:/build/btar-1.1.1/loadindex.h:12: multiple definition of 22 # `ptr'; main.o:/build/btar-1.1.1/loadindex.h:12: first defined here 23 - NIX_CFLAGS_COMPILE = "-fcommon"; 24 25 buildInputs = [ librsync ]; 26
··· 20 # gcc-10. Otherwise build fails as: 21 # ld: listindex.o:/build/btar-1.1.1/loadindex.h:12: multiple definition of 22 # `ptr'; main.o:/build/btar-1.1.1/loadindex.h:12: first defined here 23 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 24 25 buildInputs = [ librsync ]; 26
+1 -1
pkgs/tools/backup/zbackup/default.nix
··· 22 23 # zbackup uses dynamic exception specifications which are not 24 # allowed in C++17 25 - NIX_CFLAGS_COMPILE = [ "--std=c++14" ]; 26 27 buildInputs = [ zlib openssl protobuf lzo libunwind ]; 28 nativeBuildInputs = [ cmake protobufc ];
··· 22 23 # zbackup uses dynamic exception specifications which are not 24 # allowed in C++17 25 + env.NIX_CFLAGS_COMPILE = toString [ "--std=c++14" ]; 26 27 buildInputs = [ zlib openssl protobuf lzo libunwind ]; 28 nativeBuildInputs = [ cmake protobufc ];
+1 -1
pkgs/tools/cd-dvd/cdrdao/default.nix
··· 27 ''; 28 29 # Needed on gcc >= 6. 30 - NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 31 32 meta = with lib; { 33 description = "A tool for recording audio or data CD-Rs in disk-at-once (DAO) mode";
··· 27 ''; 28 29 # Needed on gcc >= 6. 30 + env.NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 31 32 meta = with lib; { 33 description = "A tool for recording audio or data CD-Rs in disk-at-once (DAO) mode";
+1 -1
pkgs/tools/cd-dvd/cdrkit/default.nix
··· 13 buildInputs = [ libcap zlib bzip2 perl ]; 14 15 hardeningDisable = [ "format" ]; 16 - NIX_CFLAGS_COMPILE = lib.optional stdenv.hostPlatform.isMusl "-D__THROW="; 17 18 # efi-boot-patch extracted from http://arm.koji.fedoraproject.org/koji/rpminfo?rpmID=174244 19 patches = [ ./include-path.patch ./cdrkit-1.1.9-efi-boot.patch ./cdrkit-1.1.11-fno-common.patch ];
··· 13 buildInputs = [ libcap zlib bzip2 perl ]; 14 15 hardeningDisable = [ "format" ]; 16 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isMusl "-D__THROW="; 17 18 # efi-boot-patch extracted from http://arm.koji.fedoraproject.org/koji/rpminfo?rpmID=174244 19 patches = [ ./include-path.patch ./cdrkit-1.1.9-efi-boot.patch ./cdrkit-1.1.11-fno-common.patch ];
+1 -1
pkgs/tools/cd-dvd/vobsub2srt/default.nix
··· 11 sha256 = "sha256-i6V2Owb8GcTcWowgb/BmdupOSFsYiCF2SbC9hXa26uY="; 12 }; 13 14 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ "-std=c++11" ]; 15 16 nativeBuildInputs = [ cmake pkg-config ]; 17 buildInputs = [ libtiff ];
··· 11 sha256 = "sha256-i6V2Owb8GcTcWowgb/BmdupOSFsYiCF2SbC9hXa26uY="; 12 }; 13 14 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ "-std=c++11" ]); 15 16 nativeBuildInputs = [ cmake pkg-config ]; 17 buildInputs = [ libtiff ];
+1 -1
pkgs/tools/compression/pbzip2/default.nix
··· 18 19 installFlags = [ "PREFIX=$(out)" ]; 20 21 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal"; 22 23 meta = with lib; { 24 homepage = "http://compression.ca/pbzip2/";
··· 18 19 installFlags = [ "PREFIX=$(out)" ]; 20 21 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal"; 22 23 meta = with lib; { 24 homepage = "http://compression.ca/pbzip2/";
+1 -1
pkgs/tools/filesystems/9pfs/default.nix
··· 28 # gcc-10. Otherwise build fails as: 29 # ld: lib/auth_rpc.o:/build/source/lib/../9pfs.h:35: multiple definition of 30 # `logfile'; 9pfs.o:/build/source/9pfs.h:35: first defined here 31 - NIX_CFLAGS_COMPILE = "-fcommon"; 32 33 enableParallelBuilding = true; 34
··· 28 # gcc-10. Otherwise build fails as: 29 # ld: lib/auth_rpc.o:/build/source/lib/../9pfs.h:35: multiple definition of 30 # `logfile'; 9pfs.o:/build/source/9pfs.h:35: first defined here 31 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 32 33 enableParallelBuilding = true; 34
+1 -1
pkgs/tools/filesystems/afpfs-ng/default.nix
··· 15 # avoid build failures like: 16 # ld: afpcmd-cmdline_main.o:/build/source/cmdline/cmdline_afp.h:4: multiple definition of 17 # `full_url'; afpcmd-cmdline_afp.o:/build/source/cmdline/cmdline_afp.c:27: first defined here 18 - NIX_CFLAGS_COMPILE = "-fcommon"; 19 20 buildInputs = [ fuse readline libgcrypt gmp ]; 21
··· 15 # avoid build failures like: 16 # ld: afpcmd-cmdline_main.o:/build/source/cmdline/cmdline_afp.h:4: multiple definition of 17 # `full_url'; afpcmd-cmdline_afp.o:/build/source/cmdline/cmdline_afp.c:27: first defined here 18 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 19 20 buildInputs = [ fuse readline libgcrypt gmp ]; 21
+1 -1
pkgs/tools/filesystems/blobfuse/default.nix
··· 24 pname = "blobfuse"; 25 inherit version src; 26 27 - NIX_CFLAGS_COMPILE = [ 28 # Needed with GCC 12 29 "-Wno-error=deprecated-declarations" 30 "-Wno-error=catch-value"
··· 24 pname = "blobfuse"; 25 inherit version src; 26 27 + env.NIX_CFLAGS_COMPILE = toString [ 28 # Needed with GCC 12 29 "-Wno-error=deprecated-declarations" 30 "-Wno-error=catch-value"
+1 -1
pkgs/tools/filesystems/djmount/default.nix
··· 23 # gcc-10. Otherwise build fails as: 24 # ld: libupnp/upnp/.libs/libupnp.a(libupnp_la-gena_ctrlpt.o):libupnp/upnp/src/inc/upnpapi.h:163: 25 # multiple definition of `pVirtualDirList'; libupnp/upnp/.libs/libupnp.a(libupnp_la-upnpapi.o):libupnp/upnp/src/inc/upnpapi.h:163: first defined here 26 - NIX_CFLAGS_COMPILE = "-fcommon"; 27 28 meta = { 29 homepage = "https://djmount.sourceforge.net/";
··· 23 # gcc-10. Otherwise build fails as: 24 # ld: libupnp/upnp/.libs/libupnp.a(libupnp_la-gena_ctrlpt.o):libupnp/upnp/src/inc/upnpapi.h:163: 25 # multiple definition of `pVirtualDirList'; libupnp/upnp/.libs/libupnp.a(libupnp_la-upnpapi.o):libupnp/upnp/src/inc/upnpapi.h:163: first defined here 26 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 27 28 meta = { 29 homepage = "https://djmount.sourceforge.net/";
+2 -2
pkgs/tools/filesystems/idsk/default.nix
··· 14 15 nativeBuildInputs = [ cmake ]; 16 17 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ 18 # Needed with GCC 12 but breaks on darwin (with clang) 19 "-std=c++14" 20 - ]; 21 22 installPhase = '' 23 mkdir -p $out/bin
··· 14 15 nativeBuildInputs = [ cmake ]; 16 17 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ 18 # Needed with GCC 12 but breaks on darwin (with clang) 19 "-std=c++14" 20 + ]); 21 22 installPhase = '' 23 mkdir -p $out/bin
+1 -1
pkgs/tools/filesystems/irods/default.nix
··· 36 patches = [ ./irods_root_path.patch ]; 37 38 # fix build with recent llvm versions 39 - NIX_CFLAGS_COMPILE = "-Wno-deprecated-register -Wno-deprecated-declarations"; 40 41 postPatch = common.postPatch + '' 42 patchShebangs ./test
··· 36 patches = [ ./irods_root_path.patch ]; 37 38 # fix build with recent llvm versions 39 + env.NIX_CFLAGS_COMPILE = "-Wno-deprecated-register -Wno-deprecated-declarations"; 40 41 postPatch = common.postPatch + '' 42 patchShebangs ./test
+1 -1
pkgs/tools/filesystems/jfsutils/default.nix
··· 35 # gcc-10. Otherwise build fails as: 36 # ld: extract.o:/build/jfsutils-1.1.15/fscklog/extract.c:67: multiple definition of 37 # `xchklog_buffer'; display.o:/build/jfsutils-1.1.15/fscklog/display.c:57: first defined here 38 - NIX_CFLAGS_COMPILE = "-fcommon"; 39 40 # this required for wipefreespace 41 postInstall = ''
··· 35 # gcc-10. Otherwise build fails as: 36 # ld: extract.o:/build/jfsutils-1.1.15/fscklog/extract.c:67: multiple definition of 37 # `xchklog_buffer'; display.o:/build/jfsutils-1.1.15/fscklog/display.c:57: first defined here 38 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 39 40 # this required for wipefreespace 41 postInstall = ''
+1 -1
pkgs/tools/filesystems/reiserfsprogs/default.nix
··· 13 nativeBuildInputs = [ autoreconfHook ]; 14 buildInputs = [ libuuid ]; 15 16 - NIX_CFLAGS_COMPILE = [ "-std=gnu90" "-D_GNU_SOURCE" ]; 17 18 meta = { 19 inherit version;
··· 13 nativeBuildInputs = [ autoreconfHook ]; 14 buildInputs = [ libuuid ]; 15 16 + env.NIX_CFLAGS_COMPILE = toString [ "-std=gnu90" "-D_GNU_SOURCE" ]; 17 18 meta = { 19 inherit version;
+1 -1
pkgs/tools/filesystems/sasquatch/default.nix
··· 53 # gcc-10. Otherwise build fails as: 54 # ld: unsquashfs_xattr.o:/build/squashfs4.4/squashfs-tools/error.h:34: multiple definition of 55 # `verbose'; unsquashfs.o:/build/squashfs4.4/squashfs-tools/error.h:34: first defined here 56 - NIX_CFLAGS_COMPILE = "-fcommon"; 57 58 installFlags = [ "INSTALL_DIR=\${out}/bin" ]; 59
··· 53 # gcc-10. Otherwise build fails as: 54 # ld: unsquashfs_xattr.o:/build/squashfs4.4/squashfs-tools/error.h:34: multiple definition of 55 # `verbose'; unsquashfs.o:/build/squashfs4.4/squashfs-tools/error.h:34: first defined here 56 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 57 58 installFlags = [ "INSTALL_DIR=\${out}/bin" ]; 59
+1 -1
pkgs/tools/filesystems/sshfs-fuse/common.nix
··· 26 buildInputs = [ fuse glib ]; 27 nativeCheckInputs = [ which python3Packages.pytest ]; 28 29 - NIX_CFLAGS_COMPILE = lib.optionalString 30 (stdenv.hostPlatform.system == "i686-linux") 31 "-D_FILE_OFFSET_BITS=64"; 32
··· 26 buildInputs = [ fuse glib ]; 27 nativeCheckInputs = [ which python3Packages.pytest ]; 28 29 + env.NIX_CFLAGS_COMPILE = lib.optionalString 30 (stdenv.hostPlatform.system == "i686-linux") 31 "-D_FILE_OFFSET_BITS=64"; 32
+1 -1
pkgs/tools/filesystems/svnfs/default.nix
··· 31 # gcc-10. Otherwise build fails as: 32 # ld: svnclient.o:/build/svnfs-0.4/src/svnfs.h:40: multiple definition of 33 # `dirbuf'; svnfs.o:/build/svnfs-0.4/src/svnfs.h:40: first defined here 34 - NIX_CFLAGS_COMPILE="-I ${subversion.dev}/include/subversion-1 -fcommon"; 35 NIX_LDFLAGS="-lsvn_client-1 -lsvn_subr-1"; 36 37 meta = {
··· 31 # gcc-10. Otherwise build fails as: 32 # ld: svnclient.o:/build/svnfs-0.4/src/svnfs.h:40: multiple definition of 33 # `dirbuf'; svnfs.o:/build/svnfs-0.4/src/svnfs.h:40: first defined here 34 + env.NIX_CFLAGS_COMPILE = "-I ${subversion.dev}/include/subversion-1 -fcommon"; 35 NIX_LDFLAGS="-lsvn_client-1 -lsvn_subr-1"; 36 37 meta = {
+1 -1
pkgs/tools/filesystems/udftools/default.nix
··· 15 16 hardeningDisable = [ "fortify" ]; 17 18 - NIX_CFLAGS_COMPILE = "-std=gnu90"; 19 20 preConfigure = '' 21 sed -e '1i#include <limits.h>' -i cdrwtool/cdrwtool.c -i pktsetup/pktsetup.c
··· 15 16 hardeningDisable = [ "fortify" ]; 17 18 + env.NIX_CFLAGS_COMPILE = "-std=gnu90"; 19 20 preConfigure = '' 21 sed -e '1i#include <limits.h>' -i cdrwtool/cdrwtool.c -i pktsetup/pktsetup.c
+1 -1
pkgs/tools/filesystems/zkfuse/default.nix
··· 26 27 # c++17 (gcc-11's default) breaks the build as: 28 # zkadapter.h:616:33: error: ISO C++17 does not allow dynamic exception specifications 29 - NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; 30 31 installPhase = '' 32 mkdir -p $out/bin
··· 26 27 # c++17 (gcc-11's default) breaks the build as: 28 # zkadapter.h:616:33: error: ISO C++17 does not allow dynamic exception specifications 29 + env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 30 31 installPhase = '' 32 mkdir -p $out/bin
+1 -1
pkgs/tools/graphics/asymptote/default.nix
··· 54 "--with-context=$out/share/texmf/tex/context/third" 55 ]; 56 57 - NIX_CFLAGS_COMPILE = "-I${boehmgc.dev}/include/gc"; 58 59 postInstall = '' 60 mv $out/share/info/asymptote/*.info $out/share/info/
··· 54 "--with-context=$out/share/texmf/tex/context/third" 55 ]; 56 57 + env.NIX_CFLAGS_COMPILE = "-I${boehmgc.dev}/include/gc"; 58 59 postInstall = '' 60 mv $out/share/info/asymptote/*.info $out/share/info/
+1 -1
pkgs/tools/graphics/cuneiform/default.nix
··· 24 # gcc-10. Otherwise build fails as: 25 # ld: CMakeFiles/rbal.dir/src/statsearchbl.cpp.o:(.bss+0x0): 26 # multiple definition of `minrow'; CMakeFiles/rbal.dir/src/linban.c.o:(.bss+0xa3a): first defined here 27 - NIX_CFLAGS_COMPILE = "-fcommon"; 28 29 postPatch = '' 30 rm cuneiform_src/Kern/hhh/tigerh/h/strings.h
··· 24 # gcc-10. Otherwise build fails as: 25 # ld: CMakeFiles/rbal.dir/src/statsearchbl.cpp.o:(.bss+0x0): 26 # multiple definition of `minrow'; CMakeFiles/rbal.dir/src/linban.c.o:(.bss+0xa3a): first defined here 27 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 28 29 postPatch = '' 30 rm cuneiform_src/Kern/hhh/tigerh/h/strings.h
+1 -1
pkgs/tools/graphics/fim/default.nix
··· 35 ++ optional jpegSupport libjpeg 36 ++ optional pngSupport libpng; 37 38 - NIX_CFLAGS_COMPILE = lib.optionalString x11Support "-lSDL"; 39 40 meta = with lib; { 41 description = "A lightweight, highly customizable and scriptable image viewer";
··· 35 ++ optional jpegSupport libjpeg 36 ++ optional pngSupport libpng; 37 38 + env.NIX_CFLAGS_COMPILE = lib.optionalString x11Support "-lSDL"; 39 40 meta = with lib; { 41 description = "A lightweight, highly customizable and scriptable image viewer";
+1 -1
pkgs/tools/graphics/hobbits/default.nix
··· 26 27 cmakeFlags = [ "-DUSE_SYSTEM_PFFFT=ON" ]; 28 29 - NIX_CFLAGS_COMPILE = lib.optional stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing"; 30 31 meta = with lib; { 32 description = "A multi-platform GUI for bit-based analysis, processing, and visualization";
··· 26 27 cmakeFlags = [ "-DUSE_SYSTEM_PFFFT=ON" ]; 28 29 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing"; 30 31 meta = with lib; { 32 description = "A multi-platform GUI for bit-based analysis, processing, and visualization";
+1 -1
pkgs/tools/graphics/icoutils/default.nix
··· 15 16 # Fixes a build failure on aarch64-darwin. Define for all Darwin targets for when x86_64-darwin 17 # upgrades to a newer SDK. 18 - NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-DTARGET_OS_IPHONE=0"; 19 20 patchPhase = '' 21 patchShebangs extresso/extresso
··· 15 16 # Fixes a build failure on aarch64-darwin. Define for all Darwin targets for when x86_64-darwin 17 # upgrades to a newer SDK. 18 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DTARGET_OS_IPHONE=0"; 19 20 patchPhase = '' 21 patchShebangs extresso/extresso
+1 -1
pkgs/tools/graphics/ifm/default.nix
··· 16 # Workaround build failure on -fno-common toolchains: 17 # ld: libvars.a(vars-freeze-lex.o):src/libvars/vars-freeze-lex.l:23: 18 # multiple definition of `line_number'; ifm-main.o:src/ifm-main.c:46: first defined here 19 - NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 enableParallelBuilding = false; # ifm-scan.l:16:10: fatal error: ifm-parse.h: No such file or directory 22
··· 16 # Workaround build failure on -fno-common toolchains: 17 # ld: libvars.a(vars-freeze-lex.o):src/libvars/vars-freeze-lex.l:23: 18 # multiple definition of `line_number'; ifm-main.o:src/ifm-main.c:46: first defined here 19 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 enableParallelBuilding = false; # ifm-scan.l:16:10: fatal error: ifm-parse.h: No such file or directory 22
+1 -1
pkgs/tools/graphics/qrcode/default.nix
··· 11 sha256 = "0v81745nx5gny2g05946k8j553j18a29ikmlyh6c3syq6c15k8cf"; 12 }; 13 14 - NIX_CFLAGS_COMPILE = "-Wno-error=unused-result"; 15 16 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; 17
··· 11 sha256 = "0v81745nx5gny2g05946k8j553j18a29ikmlyh6c3syq6c15k8cf"; 12 }; 13 14 + env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-result"; 15 16 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; 17
+1 -1
pkgs/tools/graphics/quirc/default.nix
··· 16 buildInputs = [ SDL SDL_gfx libjpeg libpng opencv ]; 17 18 makeFlags = [ "PREFIX=$(out)" ]; 19 - NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL}/include/SDL -I${SDL_gfx}/include/SDL"; 20 21 # Disable building of linux-only demos on darwin systems 22 patches = lib.optionals stdenv.isDarwin [ ./0001-dont-build-demos.patch ];
··· 16 buildInputs = [ SDL SDL_gfx libjpeg libpng opencv ]; 17 18 makeFlags = [ "PREFIX=$(out)" ]; 19 + env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL}/include/SDL -I${SDL_gfx}/include/SDL"; 20 21 # Disable building of linux-only demos on darwin systems 22 patches = lib.optionals stdenv.isDarwin [ ./0001-dont-build-demos.patch ];
+1 -1
pkgs/tools/graphics/zbar/default.nix
··· 67 ]; 68 69 # Disable assertions which include -dev QtBase file paths. 70 - NIX_CFLAGS_COMPILE = "-DQT_NO_DEBUG"; 71 72 configureFlags = [ 73 "--without-python"
··· 67 ]; 68 69 # Disable assertions which include -dev QtBase file paths. 70 + env.NIX_CFLAGS_COMPILE = "-DQT_NO_DEBUG"; 71 72 configureFlags = [ 73 "--without-python"
+1 -1
pkgs/tools/inputmethods/fcitx-engines/fcitx-unikey/default.nix
··· 12 nativeBuildInputs = [ cmake pkg-config ]; 13 buildInputs = [ fcitx gettext ]; 14 15 - NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 16 17 preInstall = '' 18 substituteInPlace src/cmake_install.cmake \
··· 12 nativeBuildInputs = [ cmake pkg-config ]; 13 buildInputs = [ fcitx gettext ]; 14 15 + env.NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 16 17 preInstall = '' 18 substituteInPlace src/cmake_install.cmake \
+2 -2
pkgs/tools/misc/coreutils/default.nix
··· 149 150 NIX_LDFLAGS = optionalString selinuxSupport "-lsepol"; 151 FORCE_UNSAFE_CONFIGURE = optionalString stdenv.hostPlatform.isSunOS "1"; 152 - NIX_CFLAGS_COMPILE = [] 153 # Work around a bogus warning in conjunction with musl. 154 ++ optional stdenv.hostPlatform.isMusl "-Wno-error" 155 - ++ optional stdenv.hostPlatform.isAndroid "-D__USE_FORTIFY_LEVEL=0"; 156 157 # Works around a bug with 8.26: 158 # Makefile:3440: *** Recursive variable 'INSTALL' references itself (eventually). Stop.
··· 149 150 NIX_LDFLAGS = optionalString selinuxSupport "-lsepol"; 151 FORCE_UNSAFE_CONFIGURE = optionalString stdenv.hostPlatform.isSunOS "1"; 152 + env.NIX_CFLAGS_COMPILE = toString ([] 153 # Work around a bogus warning in conjunction with musl. 154 ++ optional stdenv.hostPlatform.isMusl "-Wno-error" 155 + ++ optional stdenv.hostPlatform.isAndroid "-D__USE_FORTIFY_LEVEL=0"); 156 157 # Works around a bug with 8.26: 158 # Makefile:3440: *** Recursive variable 'INSTALL' references itself (eventually). Stop.
+1 -1
pkgs/tools/misc/edk2-uefi-shell/default.nix
··· 14 ++ lib.optionals stdenv.cc.isClang [ llvmPackages.bintools llvmPackages.llvm ]; 15 strictDeps = true; 16 17 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang [ "-fno-pic" "-Qunused-arguments" ]; 18 19 # Set explicitly to use Python 3 from nixpkgs. Otherwise, the build system will detect and try to 20 # use `/usr/bin/python3` on Darwin when sandboxing is disabled.
··· 14 ++ lib.optionals stdenv.cc.isClang [ llvmPackages.bintools llvmPackages.llvm ]; 15 strictDeps = true; 16 17 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ "-fno-pic" "-Qunused-arguments" ]); 18 19 # Set explicitly to use Python 3 from nixpkgs. Otherwise, the build system will detect and try to 20 # use `/usr/bin/python3` on Darwin when sandboxing is disabled.
+2 -2
pkgs/tools/misc/fluent-bit/default.nix
··· 19 cmakeFlags = [ "-DFLB_METRICS=ON" "-DFLB_HTTP_SERVER=ON" "-DFLB_OUT_PGSQL=ON" ]; 20 21 # _FORTIFY_SOURCE requires compiling with optimization (-O) 22 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ "-O" ] 23 # Workaround build failure on -fno-common toolchains: 24 # ld: /monkey/mk_tls.h:81: multiple definition of `mk_tls_server_timeout'; 25 # flb_config.c.o:include/monkey/mk_tls.h:81: first defined here 26 # TODO: drop when upstream gets a fix for it: 27 # https://github.com/fluent/fluent-bit/issues/5537 28 - ++ lib.optionals stdenv.isDarwin [ "-fcommon" ]; 29 30 outputs = [ "out" "dev" ]; 31
··· 19 cmakeFlags = [ "-DFLB_METRICS=ON" "-DFLB_HTTP_SERVER=ON" "-DFLB_OUT_PGSQL=ON" ]; 20 21 # _FORTIFY_SOURCE requires compiling with optimization (-O) 22 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ "-O" ] 23 # Workaround build failure on -fno-common toolchains: 24 # ld: /monkey/mk_tls.h:81: multiple definition of `mk_tls_server_timeout'; 25 # flb_config.c.o:include/monkey/mk_tls.h:81: first defined here 26 # TODO: drop when upstream gets a fix for it: 27 # https://github.com/fluent/fluent-bit/issues/5537 28 + ++ lib.optionals stdenv.isDarwin [ "-fcommon" ]); 29 30 outputs = [ "out" "dev" ]; 31
+1 -1
pkgs/tools/misc/fontforge/default.nix
··· 46 ''; 47 48 # do not use x87's 80-bit arithmetic, rouding errors result in very different font binaries 49 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-msse2 -mfpmath=sse"; 50 51 nativeBuildInputs = [ pkg-config cmake ]; 52 buildInputs = [
··· 46 ''; 47 48 # do not use x87's 80-bit arithmetic, rouding errors result in very different font binaries 49 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-msse2 -mfpmath=sse"; 50 51 nativeBuildInputs = [ pkg-config cmake ]; 52 buildInputs = [
+1 -1
pkgs/tools/misc/grub/2.0x.nix
··· 339 separateDebugInfo = !xenSupport; 340 341 # Work around a bug in the generated flex lexer (upstream flex bug?) 342 - NIX_CFLAGS_COMPILE = "-Wno-error"; 343 344 preConfigure = 345 '' for i in "tests/util/"*.in
··· 339 separateDebugInfo = !xenSupport; 340 341 # Work around a bug in the generated flex lexer (upstream flex bug?) 342 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 343 344 preConfigure = 345 '' for i in "tests/util/"*.in
+1 -1
pkgs/tools/misc/grub/trusted.nix
··· 62 63 hardeningDisable = [ "stackprotector" "pic" ]; 64 65 - NIX_CFLAGS_COMPILE = "-Wno-error"; # generated code redefines yyfree 66 67 preConfigure = 68 '' for i in "tests/util/"*.in
··· 62 63 hardeningDisable = [ "stackprotector" "pic" ]; 64 65 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; # generated code redefines yyfree 66 67 preConfigure = 68 '' for i in "tests/util/"*.in
+1 -1
pkgs/tools/misc/gtklp/default.nix
··· 34 # Workaround build failure on -fno-common toolchains: 35 # ld: libgtklp.a(libgtklp.o):libgtklp/libgtklp.h:83: multiple definition of `progressBar'; 36 # file.o:libgtklp/libgtklp.h:83: first defined here 37 - NIX_CFLAGS_COMPILE = "-fcommon"; 38 39 preConfigure = '' 40 substituteInPlace include/defaults.h --replace "netscape" "firefox"
··· 34 # Workaround build failure on -fno-common toolchains: 35 # ld: libgtklp.a(libgtklp.o):libgtklp/libgtklp.h:83: multiple definition of `progressBar'; 36 # file.o:libgtklp/libgtklp.h:83: first defined here 37 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 38 39 preConfigure = '' 40 substituteInPlace include/defaults.h --replace "netscape" "firefox"
+1 -1
pkgs/tools/misc/ipxe/default.nix
··· 51 # not possible due to assembler code 52 hardeningDisable = [ "pic" "stackprotector" ]; 53 54 - NIX_CFLAGS_COMPILE = "-Wno-error"; 55 56 makeFlags = 57 [ "ECHO_E_BIN_ECHO=echo" "ECHO_E_BIN_ECHO_E=echo" # No /bin/echo here.
··· 51 # not possible due to assembler code 52 hardeningDisable = [ "pic" "stackprotector" ]; 53 54 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 55 56 makeFlags = 57 [ "ECHO_E_BIN_ECHO=echo" "ECHO_E_BIN_ECHO_E=echo" # No /bin/echo here.
+1 -1
pkgs/tools/misc/ldmtool/default.nix
··· 27 ''; 28 29 # glib-2.62 deprecations 30 - NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 31 32 configureScript = "sh autogen.sh"; 33
··· 27 ''; 28 29 # glib-2.62 deprecations 30 + env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 31 32 configureScript = "sh autogen.sh"; 33
+1 -1
pkgs/tools/misc/lilo/default.nix
··· 12 # Workaround build failure on -fno-common toolchains: 13 # ld: identify.o:(.bss+0x0): multiple definition of `identify'; 14 # common.o:(.bss+0x160): first defined here 15 - NIX_CFLAGS_COMPILE = "-fcommon"; 16 17 makeFlags = [ 18 "DESTDIR=${placeholder "out"}"
··· 12 # Workaround build failure on -fno-common toolchains: 13 # ld: identify.o:(.bss+0x0): multiple definition of `identify'; 14 # common.o:(.bss+0x160): first defined here 15 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 16 17 makeFlags = [ 18 "DESTDIR=${placeholder "out"}"
+1 -1
pkgs/tools/misc/lockfile-progs/default.nix
··· 11 12 buildInputs = [ liblockfile ]; 13 14 - NIX_CFLAGS_COMPILE = [ 15 # Needed with GCC 12 16 "-Wno-error=format-overflow" 17 ];
··· 11 12 buildInputs = [ liblockfile ]; 13 14 + env.NIX_CFLAGS_COMPILE = toString [ 15 # Needed with GCC 12 16 "-Wno-error=format-overflow" 17 ];
+1 -1
pkgs/tools/misc/pipelight/default.nix
··· 19 20 buildInputs = [ wine_custom libX11 libGLU libGL curl ]; 21 22 - NIX_CFLAGS_COMPILE = [ "-fpermissive" ]; 23 24 patches = [ 25 ./pipelight.patch
··· 19 20 buildInputs = [ wine_custom libX11 libGLU libGL curl ]; 21 22 + env.NIX_CFLAGS_COMPILE = toString [ "-fpermissive" ]; 23 24 patches = [ 25 ./pipelight.patch
+1 -1
pkgs/tools/misc/rockbox-utility/default.nix
··· 48 # ld: libmkimxboot.a(elf.c.o):utils/imxtools/sbtools/misc.h:43: multiple definition of `g_nr_keys'; 49 # libmkimxboot.a(mkimxboot.c.o):utils/imxtools/sbtools/misc.h:43: first defined here 50 # TODO: try to remove with 1.5.1 update. 51 - NIX_CFLAGS_COMPILE = "-fcommon"; 52 53 installPhase = '' 54 runHook preInstall
··· 48 # ld: libmkimxboot.a(elf.c.o):utils/imxtools/sbtools/misc.h:43: multiple definition of `g_nr_keys'; 49 # libmkimxboot.a(mkimxboot.c.o):utils/imxtools/sbtools/misc.h:43: first defined here 50 # TODO: try to remove with 1.5.1 update. 51 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 52 53 installPhase = '' 54 runHook preInstall
+1 -1
pkgs/tools/misc/sfeed/default.nix
··· 19 installFlags = [ "PREFIX=$(out)" ]; 20 21 # otherwise does not find SIGWINCH 22 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE"; 23 24 meta = with lib; { 25 homepage = "https://codemadness.org/sfeed-simple-feed-parser.html";
··· 19 installFlags = [ "PREFIX=$(out)" ]; 20 21 # otherwise does not find SIGWINCH 22 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE"; 23 24 meta = with lib; { 25 homepage = "https://codemadness.org/sfeed-simple-feed-parser.html";
+1 -1
pkgs/tools/misc/shallot/default.nix
··· 33 # Workaround build failure on -fno-common toolchains like upstream 34 # gcc-10. Otherwise build fails as: 35 # ld: src/shallot.o:(.bss+0x8): multiple definition of `lucky_thread'; src/error.o:(.bss+0x8): first defined here 36 - NIX_CFLAGS_COMPILE = "-fcommon"; 37 38 installPhase = '' 39 mkdir -p $out/bin
··· 33 # Workaround build failure on -fno-common toolchains like upstream 34 # gcc-10. Otherwise build fails as: 35 # ld: src/shallot.o:(.bss+0x8): multiple definition of `lucky_thread'; src/error.o:(.bss+0x8): first defined here 36 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 37 38 installPhase = '' 39 mkdir -p $out/bin
+1 -1
pkgs/tools/misc/shim/default.nix
··· 24 25 buildInputs = [ elfutils ]; 26 27 - NIX_CFLAGS_COMPILE = [ "-I${toString elfutils.dev}/include" ]; 28 29 makeFlags = 30 lib.optional (vendorCertFile != null) "VENDOR_CERT_FILE=${vendorCertFile}"
··· 24 25 buildInputs = [ elfutils ]; 26 27 + env.NIX_CFLAGS_COMPILE = toString [ "-I${toString elfutils.dev}/include" ]; 28 29 makeFlags = 30 lib.optional (vendorCertFile != null) "VENDOR_CERT_FILE=${vendorCertFile}"
+1 -1
pkgs/tools/misc/snapper/default.nix
··· 44 45 enableParallelBuilding = true; 46 47 - NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2"; 48 49 postInstall = '' 50 rm -r $out/etc/cron.*
··· 44 45 enableParallelBuilding = true; 46 47 + env.NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2"; 48 49 postInstall = '' 50 rm -r $out/etc/cron.*
+2 -2
pkgs/tools/misc/topgrade/default.nix
··· 31 Foundation 32 ]; 33 34 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ 35 "-framework" 36 "AppKit" 37 - ]; 38 39 postInstall = '' 40 installShellCompletion --cmd topgrade \
··· 31 Foundation 32 ]; 33 34 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ 35 "-framework" 36 "AppKit" 37 + ]); 38 39 postInstall = '' 40 installShellCompletion --cmd topgrade \
+1 -1
pkgs/tools/misc/toybox/default.nix
··· 66 nativeCheckInputs = [ which ]; # used for tests with checkFlags = [ "DEBUG=true" ]; 67 checkTarget = "tests"; 68 69 - NIX_CFLAGS_COMPILE = "-Wno-error"; 70 71 meta = with lib; { 72 description = "Lightweight implementation of some Unix command line utilities";
··· 66 nativeCheckInputs = [ which ]; # used for tests with checkFlags = [ "DEBUG=true" ]; 67 checkTarget = "tests"; 68 69 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 70 71 meta = with lib; { 72 description = "Lightweight implementation of some Unix command line utilities";
+1 -1
pkgs/tools/misc/wimboot/default.nix
··· 16 buildInputs = [ libbfd zlib libiberty ]; 17 makeFlags = [ "wimboot.x86_64.efi" ]; 18 19 - NIX_CFLAGS_COMPILE = [ 20 # Needed with GCC 12 21 "-Wno-error=array-bounds" 22 ];
··· 16 buildInputs = [ libbfd zlib libiberty ]; 17 makeFlags = [ "wimboot.x86_64.efi" ]; 18 19 + env.NIX_CFLAGS_COMPILE = toString [ 20 # Needed with GCC 12 21 "-Wno-error=array-bounds" 22 ];
+1 -1
pkgs/tools/misc/wv2/default.nix
··· 13 nativeBuildInputs = [ cmake pkg-config ]; 14 buildInputs = [ libgsf glib libxml2 ]; 15 16 - NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2"; 17 18 meta = { 19 description = "Excellent MS Word filter lib, used in most Office suites";
··· 13 nativeBuildInputs = [ cmake pkg-config ]; 14 buildInputs = [ libgsf glib libxml2 ]; 15 16 + env.NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2"; 17 18 meta = { 19 description = "Excellent MS Word filter lib, used in most Office suites";
+1 -1
pkgs/tools/networking/altermime/default.nix
··· 9 sha256 = "15zxg6spcmd35r6xbidq2fgcg2nzyv1sbbqds08lzll70mqx4pj7"; 10 }; 11 12 - NIX_CFLAGS_COMPILE = toString [ 13 "-Wno-error=format" 14 "-Wno-error=format-truncation" 15 "-Wno-error=pointer-compare"
··· 9 sha256 = "15zxg6spcmd35r6xbidq2fgcg2nzyv1sbbqds08lzll70mqx4pj7"; 10 }; 11 12 + env.NIX_CFLAGS_COMPILE = toString [ 13 "-Wno-error=format" 14 "-Wno-error=format-truncation" 15 "-Wno-error=pointer-compare"
+1 -1
pkgs/tools/networking/argus-clients/default.nix
··· 9 sha256 = "sha256-uNTvi6zbrYHAivQMPkhlNCoqRW9GOkgKvCf3mInds80="; 10 }; 11 12 - NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ]; 13 14 postPatch = '' 15 for file in ./examples/*/*.pl; do
··· 9 sha256 = "sha256-uNTvi6zbrYHAivQMPkhlNCoqRW9GOkgKvCf3mInds80="; 10 }; 11 12 + env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ]; 13 14 postPatch = '' 15 for file in ./examples/*/*.pl; do
+1 -1
pkgs/tools/networking/atftp/default.nix
··· 43 ]; 44 45 # Expects pre-GCC5 inline semantics 46 - NIX_CFLAGS_COMPILE = "-std=gnu89"; 47 48 doCheck = true; 49
··· 43 ]; 44 45 # Expects pre-GCC5 inline semantics 46 + env.NIX_CFLAGS_COMPILE = "-std=gnu89"; 47 48 doCheck = true; 49
+1 -1
pkgs/tools/networking/atinout/default.nix
··· 4 pname = "atinout"; 5 version = "0.9.2-alpha"; 6 7 - NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.cc.isClang) "-Werror=implicit-fallthrough=0"; 8 LANG = if stdenv.isDarwin then "en_US.UTF-8" else "C.UTF-8"; 9 nativeBuildInputs = [ ronn mount ]; 10
··· 4 pname = "atinout"; 5 version = "0.9.2-alpha"; 6 7 + env.NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.cc.isClang) "-Werror=implicit-fallthrough=0"; 8 LANG = if stdenv.isDarwin then "en_US.UTF-8" else "C.UTF-8"; 9 nativeBuildInputs = [ ronn mount ]; 10
+1 -1
pkgs/tools/networking/bsd-finger/default.nix
··· 16 17 # outputs = [ "out" "man" ]; 18 19 - NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE"; 20 21 patches = [ 22 ./ubuntu-0.17-9.patch
··· 16 17 # outputs = [ "out" "man" ]; 18 19 + env.NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE"; 20 21 patches = [ 22 ./ubuntu-0.17-9.patch
+2 -2
pkgs/tools/networking/cjdns/default.nix
··· 35 libuv 36 ]; 37 38 - NIX_CFLAGS_COMPILE = [ 39 "-O2" 40 "-Wno-error=array-bounds" 41 "-Wno-error=stringop-overflow" 42 "-Wno-error=stringop-truncation" 43 ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [ 44 "-Wno-error=stringop-overread" 45 - ]; 46 47 passthru.tests.basic = nixosTests.cjdns; 48
··· 35 libuv 36 ]; 37 38 + env.NIX_CFLAGS_COMPILE = toString ([ 39 "-O2" 40 "-Wno-error=array-bounds" 41 "-Wno-error=stringop-overflow" 42 "-Wno-error=stringop-truncation" 43 ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [ 44 "-Wno-error=stringop-overread" 45 + ]); 46 47 passthru.tests.basic = nixosTests.cjdns; 48
+1 -1
pkgs/tools/networking/connman/connman-ncurses/default.nix
··· 24 25 buildInputs = [ dbus ncurses json_c connman ]; 26 27 - NIX_CFLAGS_COMPILE = "-Wno-error"; 28 29 installPhase = '' 30 mkdir -p "$out/bin"
··· 24 25 buildInputs = [ dbus ncurses json_c connman ]; 26 27 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 28 29 installPhase = '' 30 mkdir -p "$out/bin"
+1 -1
pkgs/tools/networking/dhcp/default.nix
··· 44 ++ lib.optionals (openldap != null) [ "--with-ldap" "--with-ldapcrypto" ] 45 ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "BUILD_CC=$(CC_FOR_BUILD)"; 46 47 - NIX_CFLAGS_COMPILE = builtins.toString [ 48 "-Wno-error=pointer-compare" 49 "-Wno-error=format-truncation" 50 "-Wno-error=stringop-truncation"
··· 44 ++ lib.optionals (openldap != null) [ "--with-ldap" "--with-ldapcrypto" ] 45 ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "BUILD_CC=$(CC_FOR_BUILD)"; 46 47 + env.NIX_CFLAGS_COMPILE = builtins.toString [ 48 "-Wno-error=pointer-compare" 49 "-Wno-error=format-truncation" 50 "-Wno-error=stringop-truncation"
+1 -1
pkgs/tools/networking/dibbler/default.nix
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: ./Port-linux/libLowLevel.a(libLowLevel_a-interface.o):(.bss+0x4): multiple definition of `interface_auto_up'; 19 # ./Port-linux/libLowLevel.a(libLowLevel_a-lowlevel-linux-link-state.o):(.bss+0x74): first defined here 20 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D__APPLE_USE_RFC_2292=1" + " -fcommon"; 21 22 meta = with lib; { 23 description = "Portable DHCPv6 implementation";
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: ./Port-linux/libLowLevel.a(libLowLevel_a-interface.o):(.bss+0x4): multiple definition of `interface_auto_up'; 19 # ./Port-linux/libLowLevel.a(libLowLevel_a-lowlevel-linux-link-state.o):(.bss+0x74): first defined here 20 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D__APPLE_USE_RFC_2292=1" + " -fcommon"; 21 22 meta = with lib; { 23 description = "Portable DHCPv6 implementation";
+1 -1
pkgs/tools/networking/dirb/default.nix
··· 29 # gcc-10. Otherwise build fails as: 30 # ld: resume.o:/build/dirb222/src/variables.h:15: multiple definition of `curl'; 31 # crea_wordlist.o:/build/dirb222/src/variables.h:15: first defined here 32 - NIX_CFLAGS_COMPILE = "-fcommon"; 33 34 postInstall = '' 35 mkdir -p $out/share/dirb/
··· 29 # gcc-10. Otherwise build fails as: 30 # ld: resume.o:/build/dirb222/src/variables.h:15: multiple definition of `curl'; 31 # crea_wordlist.o:/build/dirb222/src/variables.h:15: first defined here 32 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 33 34 postInstall = '' 35 mkdir -p $out/share/dirb/
+1 -1
pkgs/tools/networking/dsniff/default.nix
··· 61 nativeBuildInputs = [ autoreconfHook rpcsvc-proto ]; 62 buildInputs = [ glib pcap libtirpc libnsl ]; 63 NIX_CFLAGS_LINK = "-lglib-2.0 -lpthread -ltirpc"; 64 - NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ]; 65 postPatch = '' 66 for patch in debian/patches/*.patch; do 67 patch < $patch
··· 61 nativeBuildInputs = [ autoreconfHook rpcsvc-proto ]; 62 buildInputs = [ glib pcap libtirpc libnsl ]; 63 NIX_CFLAGS_LINK = "-lglib-2.0 -lpthread -ltirpc"; 64 + env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ]; 65 postPatch = '' 66 for patch in debian/patches/*.patch; do 67 patch < $patch
+1 -1
pkgs/tools/networking/iftop/default.nix
··· 23 # gcc-10. Otherwise build fails as: 24 # ld: tui.o:/build/iftop-1.0pre4/ui_common.h:41: multiple definition of `service_hash'; 25 # iftop.o:/build/iftop-1.0pre4/ui_common.h:41: first defined here 26 - NIX_CFLAGS_COMPILE = "-fcommon"; 27 28 passthru.tests = { inherit (nixosTests) iftop; }; 29
··· 23 # gcc-10. Otherwise build fails as: 24 # ld: tui.o:/build/iftop-1.0pre4/ui_common.h:41: multiple definition of `service_hash'; 25 # iftop.o:/build/iftop-1.0pre4/ui_common.h:41: first defined here 26 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 27 28 passthru.tests = { inherit (nixosTests) iftop; }; 29
+1 -1
pkgs/tools/networking/iodine/default.nix
··· 15 16 patchPhase = ''sed -i "s,/sbin/route,${nettools}/bin/route," src/tun.c''; 17 18 - NIX_CFLAGS_COMPILE = "-DIFCONFIGPATH=\"${nettools}/bin/\""; 19 20 installFlags = [ "prefix=\${out}" ]; 21
··· 15 16 patchPhase = ''sed -i "s,/sbin/route,${nettools}/bin/route," src/tun.c''; 17 18 + env.NIX_CFLAGS_COMPILE = "-DIFCONFIGPATH=\"${nettools}/bin/\""; 19 20 installFlags = [ "prefix=\${out}" ]; 21
+1 -1
pkgs/tools/networking/iouyap/default.nix
··· 16 # Workaround build failure on -fno-common toolchains like upstream 17 # gcc-10. Otherwise build fails as: 18 # ld: netmap.o:(.bss+0x20): multiple definition of `sizecheck'; iouyap.o:(.bss+0x20): first defined here 19 - NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 installPhase = '' 22 install -D -m555 iouyap $out/bin/iouyap;
··· 16 # Workaround build failure on -fno-common toolchains like upstream 17 # gcc-10. Otherwise build fails as: 18 # ld: netmap.o:(.bss+0x20): multiple definition of `sizecheck'; iouyap.o:(.bss+0x20): first defined here 19 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 installPhase = '' 22 install -D -m555 iouyap $out/bin/iouyap;
+1 -1
pkgs/tools/networking/jwhois/default.nix
··· 21 # Work around error from <stdio.h> on aarch64-darwin: 22 # error: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_] 23 # TODO: this should probably be fixed at a lower level than this? 24 - NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-Wno-undef-prefix"; 25 26 meta = { 27 description = "A client for the WHOIS protocol allowing you to query the owner of a domain name";
··· 21 # Work around error from <stdio.h> on aarch64-darwin: 22 # error: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_] 23 # TODO: this should probably be fixed at a lower level than this? 24 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-undef-prefix"; 25 26 meta = { 27 description = "A client for the WHOIS protocol allowing you to query the owner of a domain name";
+1 -1
pkgs/tools/networking/libnids/default.nix
··· 18 this is necessary for dsniff to compile; otherwise g_thread_init is a missing 19 symbol when linking (?!?) 20 */ 21 - NIX_CFLAGS_COMPILE="-Dg_thread_init= "; 22 23 meta = with lib; { 24 description = "An E-component of Network Intrusion Detection System which emulates the IP stack of Linux 2.0.x";
··· 18 this is necessary for dsniff to compile; otherwise g_thread_init is a missing 19 symbol when linking (?!?) 20 */ 21 + env.NIX_CFLAGS_COMPILE = "-Dg_thread_init= "; 22 23 meta = with lib; { 24 description = "An E-component of Network Intrusion Detection System which emulates the IP stack of Linux 2.0.x";
+1 -1
pkgs/tools/networking/lsh/default.nix
··· 36 # ld: liblsh.a(unix_user.o):/build/lsh-2.0.4/src/server_userauth.h:108: multiple definition of 37 # `server_userauth_none_preauth'; lshd.o:/build/lsh-2.0.4/src/server_userauth.h:108: first defined here 38 # Should be present in upcoming 2.1 release. 39 - NIX_CFLAGS_COMPILE = "-std=gnu90 -fcommon"; 40 41 buildInputs = [ gperf guile gmp zlib liboop readline gnum4 pam libxcrypt ]; 42
··· 36 # ld: liblsh.a(unix_user.o):/build/lsh-2.0.4/src/server_userauth.h:108: multiple definition of 37 # `server_userauth_none_preauth'; lshd.o:/build/lsh-2.0.4/src/server_userauth.h:108: first defined here 38 # Should be present in upcoming 2.1 release. 39 + env.NIX_CFLAGS_COMPILE = "-std=gnu90 -fcommon"; 40 41 buildInputs = [ gperf guile gmp zlib liboop readline gnum4 pam libxcrypt ]; 42
+1 -1
pkgs/tools/networking/ncftp/default.nix
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: bookmark.o: (.bss+0x20): multiple definition of `gBm'; 19 # gpshare.o:(.bss+0x0): first defined here 20 - NIX_CFLAGS_COMPILE = "-fcommon"; 21 22 preConfigure = '' 23 find -name Makefile.in | xargs sed -i '/^TMPDIR=/d'
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: bookmark.o: (.bss+0x20): multiple definition of `gBm'; 19 # gpshare.o:(.bss+0x0): first defined here 20 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 21 22 preConfigure = '' 23 find -name Makefile.in | xargs sed -i '/^TMPDIR=/d'
+1 -1
pkgs/tools/networking/networkmanager/iodine/default.nix
··· 33 nativeBuildInputs = [ intltool autoreconfHook pkg-config ]; 34 35 # glib-2.62 deprecations 36 - NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 37 38 preConfigure = "intltoolize"; 39 configureFlags = [
··· 33 nativeBuildInputs = [ intltool autoreconfHook pkg-config ]; 34 35 # glib-2.62 deprecations 36 + env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS"; 37 38 preConfigure = "intltoolize"; 39 configureFlags = [
+1 -1
pkgs/tools/networking/nfstrace/default.nix
··· 45 # To build with GCC 8+ it needs: 46 CXXFLAGS = "-Wno-class-memaccess -Wno-ignored-qualifiers"; 47 # CMake can't find json_c without: 48 - NIX_CFLAGS_COMPILE = [ "-I${json_c.dev}/include/json-c" "-Wno-error=address-of-packed-member" "-I${libtirpc.dev}/include/tirpc" ]; 49 NIX_LDFLAGS = [ "-ltirpc" ]; 50 51 doCheck = false; # requires network access
··· 45 # To build with GCC 8+ it needs: 46 CXXFLAGS = "-Wno-class-memaccess -Wno-ignored-qualifiers"; 47 # CMake can't find json_c without: 48 + env.NIX_CFLAGS_COMPILE = toString [ "-I${json_c.dev}/include/json-c" "-Wno-error=address-of-packed-member" "-I${libtirpc.dev}/include/tirpc" ]; 49 NIX_LDFLAGS = [ "-ltirpc" ]; 50 51 doCheck = false; # requires network access
+1 -1
pkgs/tools/networking/oonf-olsrd2/default.nix
··· 20 # ld: CMakeFiles/oonf_dlep_proxy.dir/router/dlep_router_session.c.o:(.bss+0x0): 21 # multiple definition of `LOG_DLEP_ROUTER'; CMakeFiles/oonf_dlep_proxy.dir/router/dlep_router.c.o:(.bss+0x0): first defined here 22 # Can be removed once release with https://github.com/OLSR/OONF/pull/40 is out. 23 - NIX_CFLAGS_COMPILE = "-fcommon"; 24 25 cmakeFlags = [ 26 "-DOONF_NO_WERROR=yes"
··· 20 # ld: CMakeFiles/oonf_dlep_proxy.dir/router/dlep_router_session.c.o:(.bss+0x0): 21 # multiple definition of `LOG_DLEP_ROUTER'; CMakeFiles/oonf_dlep_proxy.dir/router/dlep_router.c.o:(.bss+0x0): first defined here 22 # Can be removed once release with https://github.com/OLSR/OONF/pull/40 is out. 23 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 24 25 cmakeFlags = [ 26 "-DOONF_NO_WERROR=yes"
+1 -1
pkgs/tools/networking/packetdrill/default.nix
··· 23 export sourceRoot=$(realpath */gtests/net/packetdrill) 24 ''; 25 26 - NIX_CFLAGS_COMPILE = [ 27 "-Wno-error=unused-result" 28 "-Wno-error=stringop-truncation" 29 "-Wno-error=address-of-packed-member"
··· 23 export sourceRoot=$(realpath */gtests/net/packetdrill) 24 ''; 25 26 + env.NIX_CFLAGS_COMPILE = toString [ 27 "-Wno-error=unused-result" 28 "-Wno-error=stringop-truncation" 29 "-Wno-error=address-of-packed-member"
+1 -1
pkgs/tools/networking/ppp/default.nix
··· 70 # still builds. 71 # 72 # [1]: https://github.com/ppp-project/ppp/commit/c2881a6b71a36d28a89166e82820dc5e711fd775 73 - NIX_CFLAGS_COMPILE = 74 lib.optionalString stdenv.hostPlatform.isMusl "-UIPX_CHANGE"; 75 76 installPhase = ''
··· 70 # still builds. 71 # 72 # [1]: https://github.com/ppp-project/ppp/commit/c2881a6b71a36d28a89166e82820dc5e711fd775 73 + env.NIX_CFLAGS_COMPILE = 74 lib.optionalString stdenv.hostPlatform.isMusl "-UIPX_CHANGE"; 75 76 installPhase = ''
+1 -1
pkgs/tools/networking/reaver-wps/default.nix
··· 16 # Workaround build failure on -fno-common toolchains: 17 # ld: crypto/dh_groups.o:src/crypto/../globule.h:141: multiple definition of 18 # `globule'; /build/ccrzO6vA.o:src/globule.h:141: first defined here 19 - NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 setSourceRoot = '' 22 sourceRoot=$(echo */src)
··· 16 # Workaround build failure on -fno-common toolchains: 17 # ld: crypto/dh_groups.o:src/crypto/../globule.h:141: multiple definition of 18 # `globule'; /build/ccrzO6vA.o:src/globule.h:141: first defined here 19 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 setSourceRoot = '' 22 sourceRoot=$(echo */src)
+1 -1
pkgs/tools/networking/redfang/default.nix
··· 22 23 installFlags = [ "DESTDIR=$(out)" ]; 24 25 - NIX_CFLAGS_COMPILE = "-Wno-format-security"; 26 27 buildInputs = [ bluez ]; 28
··· 22 23 installFlags = [ "DESTDIR=$(out)" ]; 24 25 + env.NIX_CFLAGS_COMPILE = "-Wno-format-security"; 26 27 buildInputs = [ bluez ]; 28
+1 -1
pkgs/tools/networking/ripmime/default.nix
··· 14 mkdir -p "$out/bin" "$out/share/man/man1" 15 ''; 16 17 - NIX_CFLAGS_COMPILE=" -Wno-error "; 18 19 meta = with lib; { 20 description = "Attachment extractor for MIME messages";
··· 14 mkdir -p "$out/bin" "$out/share/man/man1" 15 ''; 16 17 + env.NIX_CFLAGS_COMPILE = " -Wno-error "; 18 19 meta = with lib; { 20 description = "Attachment extractor for MIME messages";
+1 -1
pkgs/tools/networking/sipsak/default.nix
··· 14 # gcc-10. Otherwise build fails as: 15 # ld: transport.o:/build/source/sipsak.h:323: multiple definition of 16 # `address'; auth.o:/build/source/sipsak.h:323: first defined here 17 - NIX_CFLAGS_COMPILE = "-std=gnu89 -fcommon"; 18 19 src = fetchFromGitHub { 20 owner = "sipwise";
··· 14 # gcc-10. Otherwise build fails as: 15 # ld: transport.o:/build/source/sipsak.h:323: multiple definition of 16 # `address'; auth.o:/build/source/sipsak.h:323: first defined here 17 + env.NIX_CFLAGS_COMPILE = "-std=gnu89 -fcommon"; 18 19 src = fetchFromGitHub { 20 owner = "sipwise";
+2 -2
pkgs/tools/networking/termscp/default.nix
··· 41 # Needed to get openssl-sys to use pkg-config. 42 OPENSSL_NO_VENDOR = 1; 43 44 - NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ 45 "-framework" "AppKit" 46 - ]; 47 48 # Requires network access 49 doCheck = false;
··· 41 # Needed to get openssl-sys to use pkg-config. 42 OPENSSL_NO_VENDOR = 1; 43 44 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ 45 "-framework" "AppKit" 46 + ]); 47 48 # Requires network access 49 doCheck = false;
+1 -1
pkgs/tools/networking/tftp-hpa/default.nix
··· 12 # gcc-10. Otherwise build fails as: 13 # ld: main.o:/build/tftp-hpa-5.2/tftp/main.c:98: multiple definition of 14 # `toplevel'; tftp.o:/build/tftp-hpa-5.2/tftp/tftp.c:51: first defined here 15 - NIX_CFLAGS_COMPILE="-fcommon"; 16 17 meta = with lib; { 18 description = "TFTP tools - a lot of fixes on top of BSD TFTP";
··· 12 # gcc-10. Otherwise build fails as: 13 # ld: main.o:/build/tftp-hpa-5.2/tftp/main.c:98: multiple definition of 14 # `toplevel'; tftp.o:/build/tftp-hpa-5.2/tftp/tftp.c:51: first defined here 15 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 16 17 meta = with lib; { 18 description = "TFTP tools - a lot of fixes on top of BSD TFTP";
+1 -1
pkgs/tools/networking/tgt/default.nix
··· 22 "SD_NOTIFY=1" 23 ]; 24 25 - NIX_CFLAGS_COMPILE = [ 26 # Needed with GCC 12 27 "-Wno-error=maybe-uninitialized" 28 ];
··· 22 "SD_NOTIFY=1" 23 ]; 24 25 + env.NIX_CFLAGS_COMPILE = toString [ 26 # Needed with GCC 12 27 "-Wno-error=maybe-uninitialized" 28 ];
+1 -1
pkgs/tools/networking/trickle/default.nix
··· 20 ''; 21 22 NIX_LDFLAGS = [ "-levent" "-ltirpc" ]; 23 - NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ]; 24 25 configureFlags = [ "--with-libevent" ]; 26
··· 20 ''; 21 22 NIX_LDFLAGS = [ "-levent" "-ltirpc" ]; 23 + env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ]; 24 25 configureFlags = [ "--with-libevent" ]; 26
+2 -2
pkgs/tools/networking/uqmi/default.nix
··· 18 nativeBuildInputs = [ cmake perl ]; 19 buildInputs = [ libubox json_c ]; 20 21 - NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 22 # Needed with GCC 12 but breaks on darwin (with clang) or older gcc 23 "-Wno-error=dangling-pointer" 24 - ]; 25 26 meta = with lib; { 27 description = "Tiny QMI command line utility";
··· 18 nativeBuildInputs = [ cmake perl ]; 19 buildInputs = [ libubox json_c ]; 20 21 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 22 # Needed with GCC 12 but breaks on darwin (with clang) or older gcc 23 "-Wno-error=dangling-pointer" 24 + ]); 25 26 meta = with lib; { 27 description = "Tiny QMI command line utility";
+1 -1
pkgs/tools/networking/uwimap/default.nix
··· 34 sed -i src/osdep/unix/Makefile -e 's,^SSLLIB=.*,SSLLIB=${lib.getLib openssl}/lib,' 35 ''; 36 37 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin 38 "-I${openssl.dev}/include/openssl"; 39 40 installPhase = ''
··· 34 sed -i src/osdep/unix/Makefile -e 's,^SSLLIB=.*,SSLLIB=${lib.getLib openssl}/lib,' 35 ''; 36 37 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin 38 "-I${openssl.dev}/include/openssl"; 39 40 installPhase = ''
+1 -1
pkgs/tools/networking/webalizer/default.nix
··· 11 12 # Workaround build failure on -fno-common toolchains: 13 # ld: dns_resolv.o:(.bss+0x20): multiple definition of `system_info'; webalizer.o:(.bss+0x76e0): first defined here 14 - NIX_CFLAGS_COMPILE = "-fcommon"; 15 16 preConfigure = 17 ''
··· 11 12 # Workaround build failure on -fno-common toolchains: 13 # ld: dns_resolv.o:(.bss+0x20): multiple definition of `system_info'; webalizer.o:(.bss+0x76e0): first defined here 14 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 15 16 preConfigure = 17 ''
+1 -1
pkgs/tools/networking/wrk/default.nix
··· 22 done 23 ''; 24 25 - NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3 26 27 installPhase = '' 28 mkdir -p $out/bin
··· 22 done 23 ''; 24 25 + env.NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3 26 27 installPhase = '' 28 mkdir -p $out/bin
+1 -1
pkgs/tools/package-management/apk-tools/default.nix
··· 31 "PKGCONFIGDIR=$(out)/lib/pkgconfig" 32 ]; 33 34 - NIX_CFLAGS_COMPILE = [ 35 "-Wno-error=unused-result" 36 "-Wno-error=deprecated-declarations" 37 ];
··· 31 "PKGCONFIGDIR=$(out)/lib/pkgconfig" 32 ]; 33 34 + env.NIX_CFLAGS_COMPILE = toString [ 35 "-Wno-error=unused-result" 36 "-Wno-error=deprecated-declarations" 37 ];
+1 -1
pkgs/tools/package-management/appimagekit/default.nix
··· 40 # Workaround build failure on -fno-common toolchains: 41 # ld: libsquashfuse_ll.a(libfuseprivate_la-fuseprivate.o):(.bss+0x8): 42 # multiple definition of `have_libloaded'; runtime.4.o:(.bss.have_libloaded+0x0): first defined here 43 - NIX_CFLAGS_COMPILE = "-fcommon"; 44 45 preConfigure = '' 46 sed -i "/PKG_CHECK_MODULES.*/,/,:./d" configure
··· 40 # Workaround build failure on -fno-common toolchains: 41 # ld: libsquashfuse_ll.a(libfuseprivate_la-fuseprivate.o):(.bss+0x8): 42 # multiple definition of `have_libloaded'; runtime.4.o:(.bss.have_libloaded+0x0): first defined here 43 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 44 45 preConfigure = '' 46 sed -i "/PKG_CHECK_MODULES.*/,/,:./d" configure
+1 -1
pkgs/tools/package-management/cde/default.nix
··· 31 # gcc-10. Otherwise build fails as: 32 # ld: ../readelf-mini/libreadelf-mini.a(dwarf.o):/build/source/readelf-mini/dwarf.c:64: 33 # multiple definition of `do_wide'; ../readelf-mini/libreadelf-mini.a(readelf-mini.o):/build/source/readelf-mini/readelf-mini.c:170: first defined here 34 - NIX_CFLAGS_COMPILE = "-fcommon"; 35 36 installPhase = '' 37 install -d $out/bin
··· 31 # gcc-10. Otherwise build fails as: 32 # ld: ../readelf-mini/libreadelf-mini.a(dwarf.o):/build/source/readelf-mini/dwarf.c:64: 33 # multiple definition of `do_wide'; ../readelf-mini/libreadelf-mini.a(readelf-mini.o):/build/source/readelf-mini/readelf-mini.c:170: first defined here 34 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 35 36 installPhase = '' 37 install -d $out/bin
+1 -1
pkgs/tools/package-management/rpm/default.nix
··· 25 propagatedBuildInputs = [ popt nss db bzip2 libarchive libbfd ] 26 ++ lib.optional stdenv.isLinux elfutils; 27 28 - NIX_CFLAGS_COMPILE = "-I${nspr.dev}/include/nspr -I${nss.dev}/include/nss"; 29 30 configureFlags = [ 31 "--with-external-db"
··· 25 propagatedBuildInputs = [ popt nss db bzip2 libarchive libbfd ] 26 ++ lib.optional stdenv.isLinux elfutils; 27 28 + env.NIX_CFLAGS_COMPILE = "-I${nspr.dev}/include/nspr -I${nss.dev}/include/nss"; 29 30 configureFlags = [ 31 "--with-external-db"
+1 -1
pkgs/tools/package-management/xbps/default.nix
··· 24 }) 25 ]; 26 27 - NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=deprecated-declarations"; 28 29 postPatch = '' 30 # fix unprefixed ranlib (needed on cross)
··· 24 }) 25 ]; 26 27 + env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=deprecated-declarations"; 28 29 postPatch = '' 30 # fix unprefixed ranlib (needed on cross)
+1 -1
pkgs/tools/security/aflplusplus/default.nix
··· 51 --replace '"clang++"' '"clang++-UNSUPPORTED"' 52 ''; 53 54 - NIX_CFLAGS_COMPILE = [ 55 # Needed with GCC 12 56 "-Wno-error=use-after-free" 57 ];
··· 51 --replace '"clang++"' '"clang++-UNSUPPORTED"' 52 ''; 53 54 + env.NIX_CFLAGS_COMPILE = toString [ 55 # Needed with GCC 12 56 "-Wno-error=use-after-free" 57 ];
+1 -1
pkgs/tools/security/chipsec/default.nix
··· 40 mkdir -p $CHIPSEC_BUILD_LIB/chipsec/helper/linux 41 ''; 42 43 - NIX_CFLAGS_COMPILE = [ 44 # Needed with GCC 12 45 "-Wno-error=dangling-pointer" 46 ];
··· 40 mkdir -p $CHIPSEC_BUILD_LIB/chipsec/helper/linux 41 ''; 42 43 + env.NIX_CFLAGS_COMPILE = toString [ 44 # Needed with GCC 12 45 "-Wno-error=dangling-pointer" 46 ];
+1 -1
pkgs/tools/security/dieharder/default.nix
··· 18 # Workaround build failure on -fno-common toolchains: 19 # ld: include/dieharder/parse.h:21: multiple definition of `splitbuf'; 20 # include/dieharder/parse.h:21: first defined here 21 - NIX_CFLAGS_COMPILE = "-fcommon"; 22 23 buildInputs = [ gsl ]; 24
··· 18 # Workaround build failure on -fno-common toolchains: 19 # ld: include/dieharder/parse.h:21: multiple definition of `splitbuf'; 20 # include/dieharder/parse.h:21: first defined here 21 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 22 23 buildInputs = [ gsl ]; 24
+1 -1
pkgs/tools/security/gnupg/1.nix
··· 15 # gcc-10. Otherwise build fails as: 16 # ld: ../util/libutil.a(estream-printf.o):/build/gnupg-1.4.23/util/../include/memory.h:100: multiple definition of 17 # `memory_debug_mode'; gpgsplit.o:/build/gnupg-1.4.23/tools/../include/memory.h:100: first defined here 18 - NIX_CFLAGS_COMPILE = "-fcommon"; 19 20 doCheck = true; 21
··· 15 # gcc-10. Otherwise build fails as: 16 # ld: ../util/libutil.a(estream-printf.o):/build/gnupg-1.4.23/util/../include/memory.h:100: multiple definition of 17 # `memory_debug_mode'; gpgsplit.o:/build/gnupg-1.4.23/tools/../include/memory.h:100: first defined here 18 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 19 20 doCheck = true; 21
+1 -1
pkgs/tools/security/haka/default.nix
··· 12 sha256 = "0dm39g3k77sa70zrjsqadidg27a6iqq61jzfdxazpllnrw4mjy4w"; 13 }; 14 15 - NIX_CFLAGS_COMPILE = "-Wno-error"; 16 17 preConfigure = '' 18 sed -i 's,/etc,'$out'/etc,' src/haka/haka.c
··· 12 sha256 = "0dm39g3k77sa70zrjsqadidg27a6iqq61jzfdxazpllnrw4mjy4w"; 13 }; 14 15 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 16 17 preConfigure = '' 18 sed -i 's,/etc,'$out'/etc,' src/haka/haka.c
+1 -1
pkgs/tools/security/iaito/default.nix
··· 57 ]; 58 59 # the radare2 binary package seems to not install all necessary headers. 60 - NIX_CFLAGS_COMPILE = [ "-I" "${radare2.src}/shlr/sdb/include/sdb" ]; 61 62 postBuild = '' 63 pushd ../../../iaito-translations
··· 57 ]; 58 59 # the radare2 binary package seems to not install all necessary headers. 60 + env.NIX_CFLAGS_COMPILE = toString [ "-I" "${radare2.src}/shlr/sdb/include/sdb" ]; 61 62 postBuild = '' 63 pushd ../../../iaito-translations
+1 -1
pkgs/tools/security/opensc/default.nix
··· 24 ++ lib.optional stdenv.isDarwin Carbon 25 ++ (if withApplePCSC then [ PCSC ] else [ pcsclite ]); 26 27 - NIX_CFLAGS_COMPILE = "-Wno-error"; 28 29 configureFlags = [ 30 "--enable-zlib"
··· 24 ++ lib.optional stdenv.isDarwin Carbon 25 ++ (if withApplePCSC then [ PCSC ] else [ pcsclite ]); 26 27 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 28 29 configureFlags = [ 30 "--enable-zlib"
+1 -1
pkgs/tools/security/ossec/default.nix
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: src/common/mgmt/pint-worker-external.po:(.data.rel.local+0x0): multiple definition of 19 # `PINT_worker_external_impl'; src/common/mgmt/pint-mgmt.po:(.bss+0x20): first defined here 20 - NIX_CFLAGS_COMPILE = "-fcommon"; 21 22 buildPhase = '' 23 echo "en
··· 17 # gcc-10. Otherwise build fails as: 18 # ld: src/common/mgmt/pint-worker-external.po:(.data.rel.local+0x0): multiple definition of 19 # `PINT_worker_external_impl'; src/common/mgmt/pint-mgmt.po:(.bss+0x20): first defined here 20 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 21 22 buildPhase = '' 23 echo "en
+1 -1
pkgs/tools/security/pcsc-cyberjack/default.nix
··· 23 24 enableParallelBuilding = true; 25 26 - NIX_CFLAGS_COMPILE = "-Wno-error=narrowing"; 27 28 configureFlags = [ 29 "--with-usbdropdir=${placeholder "out"}/pcsc/drivers"
··· 23 24 enableParallelBuilding = true; 25 26 + env.NIX_CFLAGS_COMPILE = "-Wno-error=narrowing"; 27 28 configureFlags = [ 29 "--with-usbdropdir=${placeholder "out"}/pcsc/drivers"
+1 -1
pkgs/tools/security/super/default.nix
··· 30 # gcc-10. Otherwise build fails as: 31 # ld: pam.o:/build/super-3.30.0/super.h:293: multiple definition of 32 # `Method'; super.o:/build/super-3.30.0/super.h:293: first defined here 33 - NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE -fcommon"; 34 35 configureFlags = [ 36 "--sysconfdir=/etc"
··· 30 # gcc-10. Otherwise build fails as: 31 # ld: pam.o:/build/super-3.30.0/super.h:293: multiple definition of 32 # `Method'; super.o:/build/super-3.30.0/super.h:293: first defined here 33 + env.NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE -fcommon"; 34 35 configureFlags = [ 36 "--sysconfdir=/etc"
+1 -1
pkgs/tools/security/trousers/default.nix
··· 16 17 configureFlags = [ "--disable-usercheck" ]; 18 19 - NIX_CFLAGS_COMPILE = [ "-DALLOW_NON_TSS_CONFIG_FILE" ]; 20 enableParallelBuilding = true; 21 22 meta = with lib; {
··· 16 17 configureFlags = [ "--disable-usercheck" ]; 18 19 + env.NIX_CFLAGS_COMPILE = toString [ "-DALLOW_NON_TSS_CONFIG_FILE" ]; 20 enableParallelBuilding = true; 21 22 meta = with lib; {
+1 -1
pkgs/tools/security/truecrack/default.nix
··· 33 # `t_rc'; CpuCore.o:/build/source/src/Crypto/CpuAes.h:1237: first defined here 34 # TODO: remove on upstream fixes it: 35 # https://gitlab.com/kalilinux/packages/truecrack/-/issues/1 36 - NIX_CFLAGS_COMPILE = "-fcommon"; 37 38 installFlags = [ "prefix=$(out)" ]; 39 enableParallelBuilding = true;
··· 33 # `t_rc'; CpuCore.o:/build/source/src/Crypto/CpuAes.h:1237: first defined here 34 # TODO: remove on upstream fixes it: 35 # https://gitlab.com/kalilinux/packages/truecrack/-/issues/1 36 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 37 38 installFlags = [ "prefix=$(out)" ]; 39 enableParallelBuilding = true;
+1 -1
pkgs/tools/system/acpica-tools/default.nix
··· 29 "iasl" 30 ]; 31 32 - NIX_CFLAGS_COMPILE = [ 33 "-O3" 34 # Needed with GCC 12 35 "-Wno-dangling-pointer"
··· 29 "iasl" 30 ]; 31 32 + env.NIX_CFLAGS_COMPILE = toString [ 33 "-O3" 34 # Needed with GCC 12 35 "-Wno-dangling-pointer"
+1 -1
pkgs/tools/system/ddrutility/default.nix
··· 16 # Workaround build failure on -fno-common toolchains like upstream 17 # gcc-10. Otherwise build fails as: 18 # ld: /build/ccltHly5.o:(.bss+0x119f8): multiple definition of `start_time'; /build/cc9evx3L.o:(.bss+0x10978): first defined here 19 - NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 makeFlags = [ "DESTDIR=$(out)" ]; 22
··· 16 # Workaround build failure on -fno-common toolchains like upstream 17 # gcc-10. Otherwise build fails as: 18 # ld: /build/ccltHly5.o:(.bss+0x119f8): multiple definition of `start_time'; /build/cc9evx3L.o:(.bss+0x10978): first defined here 19 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 makeFlags = [ "DESTDIR=$(out)" ]; 22
+1 -1
pkgs/tools/system/facter/default.nix
··· 23 "-DRUBY_LIB_INSTALL=${placeholder "out"}/lib/ruby" 24 ]; 25 26 - NIX_CFLAGS_COMPILE = "-Wno-error"; 27 28 nativeBuildInputs = [ cmake ]; 29 buildInputs = [ boost cpp-hocon curl leatherman libwhereami yaml-cpp openssl ruby util-linux ];
··· 23 "-DRUBY_LIB_INSTALL=${placeholder "out"}/lib/ruby" 24 ]; 25 26 + env.NIX_CFLAGS_COMPILE = "-Wno-error"; 27 28 nativeBuildInputs = [ cmake ]; 29 buildInputs = [ boost cpp-hocon curl leatherman libwhereami yaml-cpp openssl ruby util-linux ];
+1 -1
pkgs/tools/system/foremost/default.nix
··· 14 # -fcommon: Workaround build failure on -fno-common toolchains like upstream 15 # gcc-10. Otherwise build fails as: 16 # ld: api.o:(.bss+0xbdba0): multiple definition of `wildcard'; main.o:(.bss+0xbd760): first defined here 17 - NIX_CFLAGS_COMPILE = "-fcommon"; 18 19 makeFlags = [ "PREFIX=$(out)" ] ++ lib.optionals stdenv.isDarwin [ "mac" ]; 20
··· 14 # -fcommon: Workaround build failure on -fno-common toolchains like upstream 15 # gcc-10. Otherwise build fails as: 16 # ld: api.o:(.bss+0xbdba0): multiple definition of `wildcard'; main.o:(.bss+0xbd760): first defined here 17 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 18 19 makeFlags = [ "PREFIX=$(out)" ] ++ lib.optionals stdenv.isDarwin [ "mac" ]; 20
+1 -1
pkgs/tools/system/ipmiutil/default.nix
··· 17 sed -e "s@/var@$out/var@g" -i Makefile */Makefile */*/Makefile 18 ''; 19 20 - NIX_CFLAGS_COMPILE = "-fno-stack-protector"; 21 22 meta = with lib; { 23 description = "An easy-to-use IPMI server management utility";
··· 17 sed -e "s@/var@$out/var@g" -i Makefile */Makefile */*/Makefile 18 ''; 19 20 + env.NIX_CFLAGS_COMPILE = "-fno-stack-protector"; 21 22 meta = with lib; { 23 description = "An easy-to-use IPMI server management utility";
+1 -1
pkgs/tools/system/mac-fdisk/default.nix
··· 78 79 enableParallelBuilding = true; 80 81 - NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE"; 82 83 hardeningDisable = [ "format" ]; 84
··· 78 79 enableParallelBuilding = true; 80 81 + env.NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE"; 82 83 hardeningDisable = [ "format" ]; 84
+1 -1
pkgs/tools/system/netdata/default.nix
··· 67 # We pick zlib.dev as a simple canary package with pkg-config input. 68 disallowedReferences = [ zlib.dev ]; 69 70 - NIX_CFLAGS_COMPILE = lib.optionalString withDebug "-O1 -ggdb -DNETDATA_INTERNAL_CHECKS=1"; 71 72 postInstall = '' 73 ln -s ${go-d-plugin}/lib/netdata/conf.d/* $out/lib/netdata/conf.d
··· 67 # We pick zlib.dev as a simple canary package with pkg-config input. 68 disallowedReferences = [ zlib.dev ]; 69 70 + env.NIX_CFLAGS_COMPILE = lib.optionalString withDebug "-O1 -ggdb -DNETDATA_INTERNAL_CHECKS=1"; 71 72 postInstall = '' 73 ln -s ${go-d-plugin}/lib/netdata/conf.d/* $out/lib/netdata/conf.d
+1 -1
pkgs/tools/system/pdisk/default.nix
··· 61 IOKit 62 ]; 63 64 - NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE"; 65 66 enableParallelBuilding = true; 67
··· 61 IOKit 62 ]; 63 64 + env.NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE"; 65 66 enableParallelBuilding = true; 67
+1 -1
pkgs/tools/system/rowhammer-test/default.nix
··· 11 sha256 = "1fbfcnm5gjish47wdvikcsgzlb5vnlfqlzzm6mwiw2j5qkq0914i"; 12 }; 13 14 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-Wno-error=format"; 15 16 buildPhase = "sh -e make.sh"; 17
··· 11 sha256 = "1fbfcnm5gjish47wdvikcsgzlb5vnlfqlzzm6mwiw2j5qkq0914i"; 12 }; 13 14 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-Wno-error=format"; 15 16 buildPhase = "sh -e make.sh"; 17
+1 -1
pkgs/tools/system/stress-ng/default.nix
··· 30 "BASHDIR=${placeholder "out"}/share/bash-completion/completions" 31 ]; 32 33 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isMusl "-D_LINUX_SYSINFO_H=1"; 34 35 # Won't build on i686 because the binary will be linked again in the 36 # install phase without checking the dependencies. This will prevent
··· 30 "BASHDIR=${placeholder "out"}/share/bash-completion/completions" 31 ]; 32 33 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isMusl "-D_LINUX_SYSINFO_H=1"; 34 35 # Won't build on i686 because the binary will be linked again in the 36 # install phase without checking the dependencies. This will prevent
+1 -1
pkgs/tools/system/testdisk/default.nix
··· 41 42 nativeBuildInputs = [ pkg-config ]; 43 44 - NIX_CFLAGS_COMPILE="-Wno-unused"; 45 46 meta = with lib; { 47 homepage = "https://www.cgsecurity.org/wiki/Main_Page";
··· 41 42 nativeBuildInputs = [ pkg-config ]; 43 44 + env.NIX_CFLAGS_COMPILE = "-Wno-unused"; 45 46 meta = with lib; { 47 homepage = "https://www.cgsecurity.org/wiki/Main_Page";
+1 -1
pkgs/tools/system/vboot_reference/default.nix
··· 19 20 patches = [ ./dont_static_link.patch ]; 21 22 - NIX_CFLAGS_COMPILE = [ 23 # fix build with gcc9 24 "-Wno-error" 25 # workaround build failure on -fno-common toolchains:
··· 19 20 patches = [ ./dont_static_link.patch ]; 21 22 + env.NIX_CFLAGS_COMPILE = toString [ 23 # fix build with gcc9 24 "-Wno-error" 25 # workaround build failure on -fno-common toolchains:
+1 -1
pkgs/tools/text/kytea/default.nix
··· 12 13 patches = [ ./gcc-O3.patch ]; 14 15 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing"; 16 17 meta = with lib; { 18 homepage = "http://www.phontron.com/kytea/";
··· 12 13 patches = [ ./gcc-O3.patch ]; 14 15 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing"; 16 17 meta = with lib; { 18 homepage = "http://www.phontron.com/kytea/";
+2 -2
pkgs/tools/text/qgrep/default.nix
··· 21 22 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices CoreFoundation ]; 23 24 - NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 25 # Needed with GCC 12 but breaks on darwin (with clang) or older gcc 26 "-Wno-error=mismatched-new-delete" 27 - ]; 28 29 postPatch = lib.optionalString stdenv.isAarch64 '' 30 substituteInPlace Makefile \
··· 21 22 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices CoreFoundation ]; 23 24 + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ 25 # Needed with GCC 12 but breaks on darwin (with clang) or older gcc 26 "-Wno-error=mismatched-new-delete" 27 + ]); 28 29 postPatch = lib.optionalString stdenv.isAarch64 '' 30 substituteInPlace Makefile \
+1 -1
pkgs/tools/text/sgml/jade/default.nix
··· 19 20 buildInputs = [ gnum4 ]; 21 22 - NIX_CFLAGS_COMPILE = "-Wno-deprecated"; 23 24 # Makefile is missing intra-library depends, fails build as: 25 # ld: cannot find -lsp
··· 19 20 buildInputs = [ gnum4 ]; 21 22 + env.NIX_CFLAGS_COMPILE = "-Wno-deprecated"; 23 24 # Makefile is missing intra-library depends, fails build as: 25 # ld: cannot find -lsp
+1 -1
pkgs/tools/text/silver-searcher/default.nix
··· 18 # ld: src/zfile.o:/build/source/src/log.h:12: multiple definition of 19 # `print_mtx'; src/ignore.o:/build/source/src/log.h:12: first defined here 20 # TODO: remove once next release has https://github.com/ggreer/the_silver_searcher/pull/1377 21 - NIX_CFLAGS_COMPILE = "-fcommon"; 22 NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lgcc_s"; 23 24 nativeBuildInputs = [ autoreconfHook pkg-config ];
··· 18 # ld: src/zfile.o:/build/source/src/log.h:12: multiple definition of 19 # `print_mtx'; src/ignore.o:/build/source/src/log.h:12: first defined here 20 # TODO: remove once next release has https://github.com/ggreer/the_silver_searcher/pull/1377 21 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 22 NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lgcc_s"; 23 24 nativeBuildInputs = [ autoreconfHook pkg-config ];
+1 -1
pkgs/tools/text/smu/default.nix
··· 12 }; 13 14 # _FORTIFY_SOURCE requires compiling with optimization (-O) 15 - NIX_CFLAGS_COMPILE = "-O"; 16 17 makeFlags = [ 18 "PREFIX=${placeholder "out"}"
··· 12 }; 13 14 # _FORTIFY_SOURCE requires compiling with optimization (-O) 15 + env.NIX_CFLAGS_COMPILE = "-O"; 16 17 makeFlags = [ 18 "PREFIX=${placeholder "out"}"
+1 -1
pkgs/tools/video/mjpegtools/default.nix
··· 22 buildInputs = [ libdv libjpeg libpng ] 23 ++ lib.optionals (!withMinimal) [ gtk2 libX11 SDL SDL_gfx ]; 24 25 - NIX_CFLAGS_COMPILE = lib.optionalString (!withMinimal) "-I${lib.getDev SDL}/include/SDL"; 26 27 postPatch = '' 28 sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
··· 22 buildInputs = [ libdv libjpeg libpng ] 23 ++ lib.optionals (!withMinimal) [ gtk2 libX11 SDL SDL_gfx ]; 24 25 + env.NIX_CFLAGS_COMPILE = lib.optionalString (!withMinimal) "-I${lib.getDev SDL}/include/SDL"; 26 27 postPatch = '' 28 sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
+1 -1
pkgs/tools/video/swfmill/default.nix
··· 12 }; 13 14 # Fixes build with GCC 6 15 - NIX_CFLAGS_COMPILE = "-std=c++03"; 16 17 nativeBuildInputs = [ pkg-config ]; 18 buildInputs = [ libxslt freetype libpng libxml2 ];
··· 12 }; 13 14 # Fixes build with GCC 6 15 + env.NIX_CFLAGS_COMPILE = "-std=c++03"; 16 17 nativeBuildInputs = [ pkg-config ]; 18 buildInputs = [ libxslt freetype libpng libxml2 ];
+1 -1
pkgs/tools/virtualization/google-guest-oslogin/default.nix
··· 28 29 buildInputs = [ curl.dev pam json_c ]; 30 31 - NIX_CFLAGS_COMPILE = [ "-I${json_c.dev}/include/json-c" ]; 32 33 makeFlags = [ 34 "VERSION=${version}"
··· 28 29 buildInputs = [ curl.dev pam json_c ]; 30 31 + env.NIX_CFLAGS_COMPILE = toString [ "-I${json_c.dev}/include/json-c" ]; 32 33 makeFlags = [ 34 "VERSION=${version}"
+1 -1
pkgs/tools/wayland/wlrctl/default.nix
··· 18 nativeBuildInputs = [ meson pkg-config scdoc ninja wayland-scanner ]; 19 buildInputs = [ libxkbcommon wayland ]; 20 21 - NIX_CFLAGS_COMPILE = "-Wno-error=type-limits"; 22 23 meta = with lib; { 24 description = "Command line utility for miscellaneous wlroots Wayland extensions";
··· 18 nativeBuildInputs = [ meson pkg-config scdoc ninja wayland-scanner ]; 19 buildInputs = [ libxkbcommon wayland ]; 20 21 + env.NIX_CFLAGS_COMPILE = "-Wno-error=type-limits"; 22 23 meta = with lib; { 24 description = "Command line utility for miscellaneous wlroots Wayland extensions";
+1 -1
pkgs/top-level/emscripten-packages.nix
··· 142 (old: { 143 nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ pkg-config ]; 144 # we need to reset this setting! 145 - NIX_CFLAGS_COMPILE=""; 146 dontStrip = true; 147 outputs = [ "out" ]; 148 buildPhase = ''
··· 142 (old: { 143 nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ pkg-config ]; 144 # we need to reset this setting! 145 + env = (old.env or { }) // { NIX_CFLAGS_COMPILE = ""; }; 146 dontStrip = true; 147 outputs = [ "out" ]; 148 buildPhase = ''
+19 -19
pkgs/top-level/perl-packages.nix
··· 1147 hash = "sha256-gxJyAnHHrdxLvuwzEs3divS5kKxjYgSllsB5M61sY0o="; 1148 }; 1149 buildInputs = [ pkgs.zlib TestWarn ]; 1150 - NIX_CFLAGS_COMPILE = "-I${pkgs.zlib.dev}/include"; 1151 NIX_CFLAGS_LINK = "-L${pkgs.zlib.out}/lib -lz"; 1152 meta = { 1153 description = "Fast C metadata and tag reader for all common audio file formats"; ··· 1544 url = "mirror://cpan/authors/id/M/ML/MLEHMANN/${pname}-${version}.tar.gz"; 1545 hash = "sha256-o/LKnSuu/BqqQJCLL5y5KS/aPn15fji7146rudna62s="; 1546 }; 1547 - NIX_CFLAGS_COMPILE = "-I${pkgs.db4.dev}/include"; 1548 NIX_CFLAGS_LINK = "-L${pkgs.db4.out}/lib -ldb"; 1549 buildInputs = [ pkgs.db4 ]; 1550 propagatedBuildInputs = [ commonsense ]; ··· 4726 hash = "sha256-UeekeuWUz1X2bAdi9mkhVIbn2LNGC9rf55NQzPJtrzg="; 4727 }; 4728 buildInputs = [ pkgs.gmp DevelChecklib TestRequires ]; 4729 - NIX_CFLAGS_COMPILE = "-I${pkgs.gmp.dev}/include"; 4730 NIX_CFLAGS_LINK = "-L${pkgs.gmp.out}/lib -lgmp"; 4731 meta = { 4732 description = "Crypt::DH Using GMP Directly"; ··· 5084 url = "mirror://cpan/authors/id/M/MG/MGREGORO/Crypt-Sodium-0.11.tar.gz"; 5085 hash = "sha256-kHxzoQVs6gV9qYGa6kipKreG5qqq858c3ZZHsj8RbHg="; 5086 }; 5087 - NIX_CFLAGS_COMPILE = "-I${pkgs.libsodium.dev}/include"; 5088 NIX_CFLAGS_LINK = "-L${pkgs.libsodium.out}/lib -lsodium"; 5089 meta = { 5090 description = "Perl bindings for libsodium (NaCL)"; ··· 5144 url = "mirror://cpan/authors/id/T/TT/TTAR/Crypt-OpenSSL-AES-0.02.tar.gz"; 5145 hash = "sha256-tm+rUU7fl/wy9Y2iV1gnBKIQwrNeKX1cMbf6L/0I6Qg="; 5146 }; 5147 - NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include"; 5148 NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -lcrypto"; 5149 meta = { 5150 description = "Perl wrapper around OpenSSL's AES library"; ··· 5159 url = "mirror://cpan/authors/id/K/KM/KMX/Crypt-OpenSSL-Bignum-0.09.tar.gz"; 5160 hash = "sha256-I05y+4OW1FUn5v1F5DdZxcPzogjPjynmoiFhqZb9Qtw="; 5161 }; 5162 - NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include"; 5163 NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -lcrypto"; 5164 meta = { 5165 description = "OpenSSL's multiprecision integer arithmetic"; ··· 5188 url = "mirror://cpan/authors/id/R/RU/RURBAN/Crypt-OpenSSL-Random-0.15.tar.gz"; 5189 hash = "sha256-8IdvqhujER45uGqnMMYDIR7/KQXkYMcqV7YejPR1zvQ="; 5190 }; 5191 - NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include"; 5192 NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -lcrypto"; 5193 buildInputs = [ CryptOpenSSLGuess ]; 5194 meta = { ··· 5206 hash = "sha256-vb5jD21vVAMldGrZmXcnKshmT/gb0Z8K2rptb0Xv2GQ="; 5207 }; 5208 propagatedBuildInputs = [ CryptOpenSSLRandom ]; 5209 - NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include"; 5210 NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -lcrypto"; 5211 buildInputs = [ CryptOpenSSLGuess ]; 5212 meta = { ··· 5222 url = "mirror://cpan/authors/id/J/JO/JONASBN/Crypt-OpenSSL-X509-1.914.tar.gz"; 5223 hash = "sha256-ScV1JX5kCK1aiQEeW1gA1Zj5zK/fQucQBO2Byy9E7no="; 5224 }; 5225 - NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include"; 5226 NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -lcrypto"; 5227 buildInputs = [ CryptOpenSSLGuess ]; 5228 propagatedBuildInputs = [ ConvertASN1 ]; ··· 14452 }; 14453 buildInputs = [ pkgs.gmp ]; 14454 doCheck = false; 14455 - NIX_CFLAGS_COMPILE = "-I${pkgs.gmp.dev}/include"; 14456 NIX_CFLAGS_LINK = "-L${pkgs.gmp.out}/lib -lgmp"; 14457 propagatedBuildInputs = [ MathBigInt ]; 14458 meta = { ··· 14524 hash = "sha256-Ftpfge9SdChiuzyHhASq/bJM2rT4rL/KEoAzJIe8VV8="; 14525 }; 14526 buildInputs = [ pkgs.gmp AlienGMP ]; 14527 - NIX_CFLAGS_COMPILE = "-I${pkgs.gmp.dev}/include"; 14528 NIX_CFLAGS_LINK = "-L${pkgs.gmp.out}/lib -lgmp"; 14529 meta = { 14530 description = "High speed arbitrary size integer math"; ··· 14605 # Workaround build failure on -fno-common toolchains: 14606 # ld: libPARI/libPARI.a(compat.o):(.bss+0x8): multiple definition of 14607 # `overflow'; Pari.o:(.bss+0x80): first defined here 14608 - NIX_CFLAGS_COMPILE = "-fcommon"; 14609 preConfigure = "cp ${pari_tgz} pari-${pariversion}.tgz"; 14610 makeMakerFlags = [ "pari_tgz=pari-${pariversion}.tgz" ]; 14611 src = fetchurl { ··· 14658 hash = "sha256-JpfH/Vx+Nf3sf1DtVqZ76Aei8iZXWJ5jfa01knRAA74="; 14659 }; 14660 buildInputs = [ pkgs.gmp ]; 14661 - NIX_CFLAGS_COMPILE = "-I${pkgs.gmp.dev}/include"; 14662 NIX_CFLAGS_LINK = "-L${pkgs.gmp.out}/lib -lgmp"; 14663 meta = { 14664 description = "Utilities related to prime numbers, using GMP"; ··· 17187 }; 17188 buildInputs = [ ModuleBuildXSUtil TestException TestFatal TestLeakTrace TestOutput TestRequires TryTiny ]; 17189 perlPreHook = "export LD=$CC"; 17190 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-fno-stack-protector"; 17191 hardeningDisable = lib.optional stdenv.isi686 "stackprotector"; 17192 meta = { 17193 description = "Moose minus the antlers"; ··· 18628 # fix "error: format not a string literal and no format arguments [-Werror=format-security]" 18629 hardeningDisable = [ "format" ]; 18630 # Make the async API accessible 18631 - NIX_CFLAGS_COMPILE = "-DTHREADED"; 18632 NIX_CFLAGS_LINK = "-L${pkgs.zookeeper_mt.out}/lib -lzookeeper_mt"; 18633 # Most tests are skipped as no server is available in the sandbox. 18634 # `t/35_log.t` seems to suffer from a race condition; remove it. See ··· 25022 }; 25023 propagatedBuildInputs = [ pkgs.aspell ]; 25024 ASPELL_CONF = "dict-dir ${pkgs.aspellDicts.en}/lib/aspell"; 25025 - NIX_CFLAGS_COMPILE = "-I${pkgs.aspell}/include"; 25026 NIX_CFLAGS_LINK = "-L${pkgs.aspell}/lib -laspell"; 25027 meta = { 25028 description = "Perl interface to the GNU Aspell library"; ··· 25721 hash = "sha256-J45u/Jsk82mclh77NuvmAqNAi1QVcgF97hMdFScocys="; 25722 }; 25723 # https://rt.cpan.org/Public/Bug/Display.html?id=124815 25724 - NIX_CFLAGS_COMPILE = "-DHAS_VPRINTF"; 25725 meta = { 25726 description = "Remove accents from a string"; 25727 license = with lib.licenses; [ gpl2Only ]; ··· 26849 name = "WWWCurl-curl-7.71.0.patch"; 26850 }) 26851 ]; 26852 - NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-return-type"; 26853 buildInputs = [ pkgs.curl ]; 26854 doCheck = false; # performs network access 26855 meta = { ··· 27870 url = "mirror://cpan/authors/id/Z/ZN/ZNMSTR/Zonemaster-LDNS-3.1.0.tar.gz"; 27871 hash = "sha256-Rr4uoQg5g9/ZLVnFQiLAz5MB+Uj39U24YWEa+o2+9HE="; 27872 }; 27873 - NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include -I${pkgs.libidn2}.dev}/include"; 27874 NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -L${lib.getLib pkgs.libidn2}/lib -lcrypto -lidn2"; 27875 27876 makeMakerFlags = [ "--prefix-openssl=${pkgs.openssl.dev}" ];
··· 1147 hash = "sha256-gxJyAnHHrdxLvuwzEs3divS5kKxjYgSllsB5M61sY0o="; 1148 }; 1149 buildInputs = [ pkgs.zlib TestWarn ]; 1150 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.zlib.dev}/include"; 1151 NIX_CFLAGS_LINK = "-L${pkgs.zlib.out}/lib -lz"; 1152 meta = { 1153 description = "Fast C metadata and tag reader for all common audio file formats"; ··· 1544 url = "mirror://cpan/authors/id/M/ML/MLEHMANN/${pname}-${version}.tar.gz"; 1545 hash = "sha256-o/LKnSuu/BqqQJCLL5y5KS/aPn15fji7146rudna62s="; 1546 }; 1547 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.db4.dev}/include"; 1548 NIX_CFLAGS_LINK = "-L${pkgs.db4.out}/lib -ldb"; 1549 buildInputs = [ pkgs.db4 ]; 1550 propagatedBuildInputs = [ commonsense ]; ··· 4726 hash = "sha256-UeekeuWUz1X2bAdi9mkhVIbn2LNGC9rf55NQzPJtrzg="; 4727 }; 4728 buildInputs = [ pkgs.gmp DevelChecklib TestRequires ]; 4729 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.gmp.dev}/include"; 4730 NIX_CFLAGS_LINK = "-L${pkgs.gmp.out}/lib -lgmp"; 4731 meta = { 4732 description = "Crypt::DH Using GMP Directly"; ··· 5084 url = "mirror://cpan/authors/id/M/MG/MGREGORO/Crypt-Sodium-0.11.tar.gz"; 5085 hash = "sha256-kHxzoQVs6gV9qYGa6kipKreG5qqq858c3ZZHsj8RbHg="; 5086 }; 5087 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.libsodium.dev}/include"; 5088 NIX_CFLAGS_LINK = "-L${pkgs.libsodium.out}/lib -lsodium"; 5089 meta = { 5090 description = "Perl bindings for libsodium (NaCL)"; ··· 5144 url = "mirror://cpan/authors/id/T/TT/TTAR/Crypt-OpenSSL-AES-0.02.tar.gz"; 5145 hash = "sha256-tm+rUU7fl/wy9Y2iV1gnBKIQwrNeKX1cMbf6L/0I6Qg="; 5146 }; 5147 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include"; 5148 NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -lcrypto"; 5149 meta = { 5150 description = "Perl wrapper around OpenSSL's AES library"; ··· 5159 url = "mirror://cpan/authors/id/K/KM/KMX/Crypt-OpenSSL-Bignum-0.09.tar.gz"; 5160 hash = "sha256-I05y+4OW1FUn5v1F5DdZxcPzogjPjynmoiFhqZb9Qtw="; 5161 }; 5162 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include"; 5163 NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -lcrypto"; 5164 meta = { 5165 description = "OpenSSL's multiprecision integer arithmetic"; ··· 5188 url = "mirror://cpan/authors/id/R/RU/RURBAN/Crypt-OpenSSL-Random-0.15.tar.gz"; 5189 hash = "sha256-8IdvqhujER45uGqnMMYDIR7/KQXkYMcqV7YejPR1zvQ="; 5190 }; 5191 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include"; 5192 NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -lcrypto"; 5193 buildInputs = [ CryptOpenSSLGuess ]; 5194 meta = { ··· 5206 hash = "sha256-vb5jD21vVAMldGrZmXcnKshmT/gb0Z8K2rptb0Xv2GQ="; 5207 }; 5208 propagatedBuildInputs = [ CryptOpenSSLRandom ]; 5209 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include"; 5210 NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -lcrypto"; 5211 buildInputs = [ CryptOpenSSLGuess ]; 5212 meta = { ··· 5222 url = "mirror://cpan/authors/id/J/JO/JONASBN/Crypt-OpenSSL-X509-1.914.tar.gz"; 5223 hash = "sha256-ScV1JX5kCK1aiQEeW1gA1Zj5zK/fQucQBO2Byy9E7no="; 5224 }; 5225 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include"; 5226 NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -lcrypto"; 5227 buildInputs = [ CryptOpenSSLGuess ]; 5228 propagatedBuildInputs = [ ConvertASN1 ]; ··· 14452 }; 14453 buildInputs = [ pkgs.gmp ]; 14454 doCheck = false; 14455 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.gmp.dev}/include"; 14456 NIX_CFLAGS_LINK = "-L${pkgs.gmp.out}/lib -lgmp"; 14457 propagatedBuildInputs = [ MathBigInt ]; 14458 meta = { ··· 14524 hash = "sha256-Ftpfge9SdChiuzyHhASq/bJM2rT4rL/KEoAzJIe8VV8="; 14525 }; 14526 buildInputs = [ pkgs.gmp AlienGMP ]; 14527 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.gmp.dev}/include"; 14528 NIX_CFLAGS_LINK = "-L${pkgs.gmp.out}/lib -lgmp"; 14529 meta = { 14530 description = "High speed arbitrary size integer math"; ··· 14605 # Workaround build failure on -fno-common toolchains: 14606 # ld: libPARI/libPARI.a(compat.o):(.bss+0x8): multiple definition of 14607 # `overflow'; Pari.o:(.bss+0x80): first defined here 14608 + env.NIX_CFLAGS_COMPILE = "-fcommon"; 14609 preConfigure = "cp ${pari_tgz} pari-${pariversion}.tgz"; 14610 makeMakerFlags = [ "pari_tgz=pari-${pariversion}.tgz" ]; 14611 src = fetchurl { ··· 14658 hash = "sha256-JpfH/Vx+Nf3sf1DtVqZ76Aei8iZXWJ5jfa01knRAA74="; 14659 }; 14660 buildInputs = [ pkgs.gmp ]; 14661 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.gmp.dev}/include"; 14662 NIX_CFLAGS_LINK = "-L${pkgs.gmp.out}/lib -lgmp"; 14663 meta = { 14664 description = "Utilities related to prime numbers, using GMP"; ··· 17187 }; 17188 buildInputs = [ ModuleBuildXSUtil TestException TestFatal TestLeakTrace TestOutput TestRequires TryTiny ]; 17189 perlPreHook = "export LD=$CC"; 17190 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-fno-stack-protector"; 17191 hardeningDisable = lib.optional stdenv.isi686 "stackprotector"; 17192 meta = { 17193 description = "Moose minus the antlers"; ··· 18628 # fix "error: format not a string literal and no format arguments [-Werror=format-security]" 18629 hardeningDisable = [ "format" ]; 18630 # Make the async API accessible 18631 + env.NIX_CFLAGS_COMPILE = "-DTHREADED"; 18632 NIX_CFLAGS_LINK = "-L${pkgs.zookeeper_mt.out}/lib -lzookeeper_mt"; 18633 # Most tests are skipped as no server is available in the sandbox. 18634 # `t/35_log.t` seems to suffer from a race condition; remove it. See ··· 25022 }; 25023 propagatedBuildInputs = [ pkgs.aspell ]; 25024 ASPELL_CONF = "dict-dir ${pkgs.aspellDicts.en}/lib/aspell"; 25025 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.aspell}/include"; 25026 NIX_CFLAGS_LINK = "-L${pkgs.aspell}/lib -laspell"; 25027 meta = { 25028 description = "Perl interface to the GNU Aspell library"; ··· 25721 hash = "sha256-J45u/Jsk82mclh77NuvmAqNAi1QVcgF97hMdFScocys="; 25722 }; 25723 # https://rt.cpan.org/Public/Bug/Display.html?id=124815 25724 + env.NIX_CFLAGS_COMPILE = "-DHAS_VPRINTF"; 25725 meta = { 25726 description = "Remove accents from a string"; 25727 license = with lib.licenses; [ gpl2Only ]; ··· 26849 name = "WWWCurl-curl-7.71.0.patch"; 26850 }) 26851 ]; 26852 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-return-type"; 26853 buildInputs = [ pkgs.curl ]; 26854 doCheck = false; # performs network access 26855 meta = { ··· 27870 url = "mirror://cpan/authors/id/Z/ZN/ZNMSTR/Zonemaster-LDNS-3.1.0.tar.gz"; 27871 hash = "sha256-Rr4uoQg5g9/ZLVnFQiLAz5MB+Uj39U24YWEa+o2+9HE="; 27872 }; 27873 + env.NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include -I${pkgs.libidn2}.dev}/include"; 27874 NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -L${lib.getLib pkgs.libidn2}/lib -lcrypto -lidn2"; 27875 27876 makeMakerFlags = [ "--prefix-openssl=${pkgs.openssl.dev}" ];
+1 -1
pkgs/top-level/php-packages.nix
··· 563 name = "xmlreader"; 564 buildInputs = [ libxml2 ]; 565 internalDeps = [ php.extensions.dom ]; 566 - NIX_CFLAGS_COMPILE = [ "-I../.." "-DHAVE_DOM" ]; 567 doCheck = false; 568 configureFlags = [ 569 "--enable-xmlreader"
··· 563 name = "xmlreader"; 564 buildInputs = [ libxml2 ]; 565 internalDeps = [ php.extensions.dom ]; 566 + env.NIX_CFLAGS_COMPILE = toString [ "-I../.." "-DHAVE_DOM" ]; 567 doCheck = false; 568 configureFlags = [ 569 "--enable-xmlreader"