cvise: explicitly point to clang-format (#343565)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, clang-tools
|
||||
, cmake
|
||||
, colordiff
|
||||
, flex
|
||||
@@ -34,11 +35,11 @@ buildPythonApplication rec {
|
||||
# Avoid blanket -Werror to evade build failures on less
|
||||
# tested compilers.
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace " -Werror " " "
|
||||
--replace-fail " -Werror " " "
|
||||
|
||||
substituteInPlace cvise/utils/testing.py \
|
||||
--replace "'colordiff --version'" "'${colordiff}/bin/colordiff --version'" \
|
||||
--replace "'colordiff'" "'${colordiff}/bin/colordiff'"
|
||||
--replace-fail "'colordiff --version'" "'${colordiff}/bin/colordiff --version'" \
|
||||
--replace-fail "'colordiff'" "'${colordiff}/bin/colordiff'"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -65,6 +66,12 @@ buildPythonApplication rec {
|
||||
unifdef
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
# By default `cvise` looks it up in `llvm` bin directory. But
|
||||
# `nixpkgs` moves it into a separate derivation.
|
||||
"-DCLANG_FORMAT_PATH=${clang-tools}/bin/clang-format"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Needs gcc, fails when run noninteractively (without tty).
|
||||
"test_simple_reduction"
|
||||
|
||||
Reference in New Issue
Block a user