Fix build issues in looking-glass-client by suppressing GCC warning for maybe-uninitialized in vendored nanosvg.
Build and populate cache / tests (chiasson, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-25.05.tar.gz, chiasson) (push) Successful in 3m14s
Build and populate cache / tests (chiasson, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz, chiasson) (push) Successful in 3m8s
Build and populate cache / tests (chiasson, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz, chiasson) (push) Successful in 2m3s

This commit is contained in:
2026-01-23 18:02:21 -04:00
parent 987029e6c8
commit a1149682cb
+6
View File
@@ -103,6 +103,12 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals (!pulseSupport) ["-DENABLE_PULSEAUDIO=no"] ++ lib.optionals (!pulseSupport) ["-DENABLE_PULSEAUDIO=no"]
++ lib.optionals (!pipewireSupport) ["-DENABLE_PIPEWIRE=no"]; ++ lib.optionals (!pipewireSupport) ["-DENABLE_PIPEWIRE=no"];
# GCC can warn about maybe-uninitialized inside vendored nanosvg and Looking
# Glass treats warnings as errors, which breaks the build.
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
"-Wno-error=maybe-uninitialized"
];
postUnpack = '' postUnpack = ''
echo ${finalAttrs.src.rev} > source/VERSION echo ${finalAttrs.src.rev} > source/VERSION
export sourceRoot="source/client" export sourceRoot="source/client"