anbox: fix build

Fixes: https://github.com/NixOS/nixpkgs/issues/282601

  > error: redundant move in initialization
This commit is contained in:
superherointj 2024-01-21 11:30:00 -03:00
parent 5e2aa82c00
commit d96e848233

View File

@ -80,10 +80,13 @@ stdenv.mkDerivation rec {
systemd
];
# Flag needed by GCC 12 but unrecognized by GCC 9 (aarch64-linux default now)
env.NIX_CFLAGS_COMPILE = toString (lib.optionals (with stdenv; cc.isGNU && lib.versionAtLeast cc.version "12") [
"-Wno-error=mismatched-new-delete"
]);
env.CXXFLAGS = toString [ "-include cstdint" ];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU (toString [
"-Wno-error=redundant-move"
# Flag needed by GCC 12 but unrecognized by GCC 9 (aarch64-linux default now)
(lib.optionalString (lib.versionAtLeast stdenv.cc.version "12") "-Wno-error=mismatched-new-delete")
]);
prePatch = ''
patchShebangs scripts