15 inherit (llvmPackages) libclang llvm;
16 inherit (python3.pkgs) sphinx;
18 stdenv.mkDerivation (finalAttrs: {
22 src = fetchFromGitHub {
25 rev = "v${finalAttrs.version}";
26 hash = "sha256-r9Emh2KHjANrg+oWeY8Ags3Gd8k3W68J88bAud+AH6I=";
32 ] ++ lib.optionals (withManual || withHTML) [
43 propagatedBuildInputs = [
48 "-DCLANG_RESOURCE_DIR=${libclang.dev}/"
49 "-DSPHINX_HTML=${if withHTML then "ON" else "OFF"}"
50 "-DSPHINX_MAN=${if withManual then "ON" else "OFF"}"
53 # 97% tests passed, 97 tests failed out of 2881
54 # mostly because it checks command line and nix append -isystem and all
56 # -E exclude 4 tests based on names
57 # see https://github.com/CastXML/CastXML/issues/90
60 ctest -E 'cmd.cc-(gnu|msvc)-((c-src-c)|(src-cxx))-cmd'
65 homepage = "https://github.com/CastXML/CastXML";
66 description = "C-family Abstract Syntax Tree XML Output";
67 mainProgram = "castxml";
68 license = licenses.asl20;
69 maintainers = with maintainers; [ AndersonTorres ];
70 platforms = platforms.unix;