castxml: fix build

This commit is contained in:
Jonathan Ringer 2021-05-07 15:09:34 -07:00 committed by Jonathan Ringer
parent 2804d0814f
commit c507165567

View file

@ -25,13 +25,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
llvm llvm.dev
] ++ lib.optionals (withManual || withHTML) [ ] ++ lib.optionals (withManual || withHTML) [
sphinx sphinx
]; ];
cmakeFlags = [ cmakeFlags = [
"-DCLANG_RESOURCE_DIR=${libclang.dev}/lib/clang/${lib.getVersion libclang}/" "-DCLANG_RESOURCE_DIR=${libclang.dev}/"
"-DSPHINX_HTML=${if withHTML then "ON" else "OFF"}" "-DSPHINX_HTML=${if withHTML then "ON" else "OFF"}"
"-DSPHINX_MAN=${if withManual then "ON" else "OFF"}" "-DSPHINX_MAN=${if withManual then "ON" else "OFF"}"
]; ];
@ -40,6 +40,7 @@ stdenv.mkDerivation rec {
libffi libffi
libxml2 libxml2
zlib zlib
libclang
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [