tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
canokey-qemu: fix build with clang
Alyssa Ross
2 years ago
befe8bbe
740152c8
+11
1 changed file
expand all
collapse all
unified
split
pkgs
applications
virtualization
qemu
canokey-qemu.nix
+11
pkgs/applications/virtualization/qemu/canokey-qemu.nix
···
23
--replace "COMMAND git describe --always --tags --long --abbrev=8 --dirty >>" "COMMAND echo '$rev' >>"
24
'';
25
0
0
0
0
0
0
0
0
0
0
0
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 ];