canokey-qemu: fix build with clang

+11
+11
pkgs/applications/virtualization/qemu/canokey-qemu.nix
··· 23 --replace "COMMAND git describe --always --tags --long --abbrev=8 --dirty >>" "COMMAND echo '$rev' >>" 24 ''; 25 26 outputs = [ "out" "dev" ]; 27 28 nativeBuildInputs = [ cmake ];
··· 23 --replace "COMMAND git describe --always --tags --long --abbrev=8 --dirty >>" "COMMAND echo '$rev' >>" 24 ''; 25 26 + preConfigure = '' 27 + cmakeFlagsArray+=( 28 + -DCMAKE_C_FLAGS=${lib.escapeShellArg ([ 29 + "-Wno-error=unused-but-set-parameter" 30 + "-Wno-error=unused-but-set-variable" 31 + ] ++ lib.optionals stdenv.cc.isClang [ 32 + "-Wno-error=documentation" 33 + ])} 34 + ) 35 + ''; 36 + 37 outputs = [ "out" "dev" ]; 38 39 nativeBuildInputs = [ cmake ];