canokey-qemu: fix build with clang

+11
+11
pkgs/applications/virtualization/qemu/canokey-qemu.nix
··· 23 23 --replace "COMMAND git describe --always --tags --long --abbrev=8 --dirty >>" "COMMAND echo '$rev' >>" 24 24 ''; 25 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 + 26 37 outputs = [ "out" "dev" ]; 27 38 28 39 nativeBuildInputs = [ cmake ];