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
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:
@@ -103,6 +103,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
++ lib.optionals (!pulseSupport) ["-DENABLE_PULSEAUDIO=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 = ''
|
||||
echo ${finalAttrs.src.rev} > source/VERSION
|
||||
export sourceRoot="source/client"
|
||||
|
||||
Reference in New Issue
Block a user