diff options
author | Alexander Krotov <krotov@iitp.ru> | 2019-08-11 22:48:38 +0300 |
---|---|---|
committer | Matthieu Coudron <coudron@iij.ad.jp> | 2019-08-15 20:35:07 +0900 |
commit | 6a5213c7401fa1e18727fef87aceb54a382ca769 (patch) | |
tree | f39bd699e9845de492877d503ba7a2d083040613 /pkgs/development | |
parent | a8d19200afd33ab145bccdc92776e4843169fa0d (diff) |
castxml: set correct -DCLANG_RESOURCE_DIR
Fixes #66456
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/castxml/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/tools/castxml/default.nix b/pkgs/development/tools/castxml/default.nix index 653d0d4505e7..1011f95cce7f 100644 --- a/pkgs/development/tools/castxml/default.nix +++ b/pkgs/development/tools/castxml/default.nix @@ -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"}" ]; |