castxml: set correct -DCLANG_RESOURCE_DIR

Fixes #66456
This commit is contained in:
Alexander Krotov 2019-08-11 22:48:38 +03:00 committed by Matthieu Coudron
parent a8d19200af
commit 6a5213c740

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub
{ lib, stdenv, fetchFromGitHub
, pythonPackages
, cmake
, llvmPackages
@ -19,8 +19,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ] ++ stdenv.lib.optionals withMan [ pythonPackages.sphinx ];
clangVersion = lib.getVersion llvmPackages.clang;
cmakeFlags = [
"-DCLANG_RESOURCE_DIR=${llvmPackages.clang-unwrapped}"
"-DCLANG_RESOURCE_DIR=${llvmPackages.clang-unwrapped}/lib/clang/${clangVersion}/"
"-DSPHINX_MAN=${if withMan then "ON" else "OFF"}"
];