Merge pull request #333937 from museoa/abandon-castxml

Abandon castxml
This commit is contained in:
éclairevoyant 2024-08-11 20:21:41 +00:00 committed by GitHub
commit acbbb08e08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
{
lib,
cmake,
fetchFromGitHub,
lib,
libffi,
libxml2,
llvmPackages,
@ -29,46 +29,40 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-J4Z/NjCVOq4QS7ncCi87P5YPgqRwFyDAc14uS5T7s6M=";
};
nativeBuildInputs = [
cmake
]
++ lib.optionals (withManual || withHTML) [
sphinx
];
nativeBuildInputs = [ cmake ] ++ lib.optionals (withManual || withHTML) [ sphinx ];
buildInputs = [
libffi
libxml2
llvm
zlib
] ++ lib.optionals (!stdenv.isDarwin) [
libclang
];
] ++ lib.optionals (!stdenv.isDarwin) [ libclang ];
cmakeFlags = [
(lib.cmakeOptionType "path" "CLANG_RESOURCE_DIR"
"${lib.getLib libclang}/lib/clang/${lib.versions.major libclang.version}")
cmakeFlags =
[
(lib.cmakeOptionType "path" "CLANG_RESOURCE_DIR"
"${lib.getLib libclang}/lib/clang/${lib.versions.major libclang.version}"
)
(lib.cmakeBool "SPHINX_HTML" withHTML)
(lib.cmakeBool "SPHINX_MAN" withManual)
] ++ lib.optionals stdenv.isDarwin [
(lib.cmakeOptionType "path" "Clang_DIR" "${lib.getDev libclang}/lib/cmake/clang")
];
(lib.cmakeBool "SPHINX_HTML" withHTML)
(lib.cmakeBool "SPHINX_MAN" withManual)
]
++ lib.optionals stdenv.isDarwin [
(lib.cmakeOptionType "path" "Clang_DIR" "${lib.getDev libclang}/lib/cmake/clang")
];
doCheck = true;
strictDeps = true;
passthru.tests = testers.testVersion {
package = finalAttrs.finalPackage;
};
passthru.tests = testers.testVersion { package = finalAttrs.finalPackage; };
meta = {
homepage = "https://github.com/CastXML/CastXML";
description = "C-family Abstract Syntax Tree XML Output";
license = lib.licenses.asl20;
mainProgram = "castxml";
maintainers = with lib.maintainers; [ AndersonTorres ];
maintainers = [ ];
platforms = lib.platforms.unix;
};
})