castxml: 20180403 -> 0.2.0

0.2.0 is the first tagged release from upstream
Published 2019-04-18
This commit is contained in:
Renaud 2019-05-22 23:43:18 +02:00 committed by GitHub
parent 7d250222df
commit d7f6429c0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,37 +2,39 @@
, pythonPackages , pythonPackages
, cmake , cmake
, llvmPackages , llvmPackages
, libffi, libxml2, zlib
, withMan ? true , withMan ? true
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "CastXML"; pname = "CastXML";
version = "20180403"; version = "0.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "CastXML"; owner = pname;
repo = "CastXML"; repo = pname;
rev = "c2a44d06d9379718292b696f4e13a2725ff9d95e"; rev = "v${version}";
sha256 = "1hjh8ihjyp1m2jb5yypp5c45bpbz8k004f4p1cjw4gc7pxhjacdj"; sha256 = "1qpgr5hyb692h7l5igmq53m6a6vi4d9qp8ks893cflfx9955h3ip";
}; };
nativeBuildInputs = [ cmake ] ++ stdenv.lib.optionals withMan [ pythonPackages.sphinx ];
cmakeFlags = [ cmakeFlags = [
"-DCLANG_RESOURCE_DIR=${llvmPackages.clang-unwrapped}" "-DCLANG_RESOURCE_DIR=${llvmPackages.clang-unwrapped}"
"-DSPHINX_MAN=${if withMan then "ON" else "OFF"}" "-DSPHINX_MAN=${if withMan then "ON" else "OFF"}"
]; ];
buildInputs = [ buildInputs = [
cmake
llvmPackages.clang-unwrapped llvmPackages.clang-unwrapped
llvmPackages.llvm llvmPackages.llvm
] ++ stdenv.lib.optionals withMan [ pythonPackages.sphinx ]; libffi libxml2 zlib
];
propagatedbuildInputs = [ llvmPackages.libclang ]; propagatedBuildInputs = [ llvmPackages.libclang ];
# 97% tests passed, 96 tests failed out of 2866 # 97% tests passed, 97 tests failed out of 2881
# mostly because it checks command line and nix append -isystem and all # mostly because it checks command line and nix append -isystem and all
doCheck=false; doCheck = false;
checkPhase = '' checkPhase = ''
# -E exclude 4 tests based on names # -E exclude 4 tests based on names
# see https://github.com/CastXML/CastXML/issues/90 # see https://github.com/CastXML/CastXML/issues/90
@ -40,7 +42,7 @@ stdenv.mkDerivation rec {
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://www.kitware.com; homepage = "https://github.com/CastXML/CastXML";
license = licenses.asl20; license = licenses.asl20;
description = "Abstract syntax tree XML output tool"; description = "Abstract syntax tree XML output tool";
platforms = platforms.unix; platforms = platforms.unix;