castxml: 0.3.4 -> 0.4.3
Also, - Add myself to maintainers - Make the dependencies explicit, instead of using "indirections"
This commit is contained in:
parent
c87a588366
commit
a6ada3b655
2 changed files with 45 additions and 25 deletions
|
@ -1,52 +1,69 @@
|
||||||
{ lib, stdenv, fetchFromGitHub
|
{ lib
|
||||||
, python3Packages
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, clang-unwrapped
|
||||||
, cmake
|
, cmake
|
||||||
, llvmPackages
|
, libclang
|
||||||
, libffi, libxml2, zlib
|
, libffi
|
||||||
, withMan ? true
|
, libxml2
|
||||||
|
, llvm
|
||||||
|
, sphinx
|
||||||
|
, zlib
|
||||||
|
, withManual ? true
|
||||||
|
, withHTML ? true
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
|
|
||||||
pname = "CastXML";
|
stdenv.mkDerivation rec {
|
||||||
version = "0.3.4";
|
pname = "CastXML";
|
||||||
|
version = "0.4.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0ypj67xrgj228myp7l1gsjw1ja97q68nmj98dsd33srmiayqraj4";
|
hash = "sha256-MschwCEkZrZmNgr8a1ocdukjXzHbXl2gmkPmygJaA6k=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ] ++ lib.optionals withMan [ python3Packages.sphinx ];
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
clangVersion = lib.getVersion llvmPackages.clang;
|
llvm
|
||||||
|
] ++ lib.optionals (withManual || withHTML) [
|
||||||
|
sphinx
|
||||||
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DCLANG_RESOURCE_DIR=${llvmPackages.clang-unwrapped}/lib/clang/${clangVersion}/"
|
"-DCLANG_RESOURCE_DIR=${clang-unwrapped}/lib/clang/${lib.getVersion clang-unwrapped}/"
|
||||||
"-DSPHINX_MAN=${if withMan then "ON" else "OFF"}"
|
"-DSPHINX_HTML=${if withHTML then "ON" else "OFF"}"
|
||||||
|
"-DSPHINX_MAN=${if withManual then "ON" else "OFF"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
llvmPackages.clang-unwrapped
|
clang-unwrapped
|
||||||
llvmPackages.llvm
|
libffi
|
||||||
libffi libxml2 zlib
|
libxml2
|
||||||
|
zlib
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ llvmPackages.libclang ];
|
propagatedBuildInputs = [
|
||||||
|
libclang
|
||||||
|
];
|
||||||
|
|
||||||
# 97% tests passed, 97 tests failed out of 2881
|
# 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;
|
||||||
|
# -E exclude 4 tests based on names
|
||||||
|
# see https://github.com/CastXML/CastXML/issues/90
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
# -E exclude 4 tests based on names
|
runHook preCheck
|
||||||
# see https://github.com/CastXML/CastXML/issues/90
|
|
||||||
ctest -E 'cmd.cc-(gnu|msvc)-((c-src-c)|(src-cxx))-cmd'
|
ctest -E 'cmd.cc-(gnu|msvc)-((c-src-c)|(src-cxx))-cmd'
|
||||||
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/CastXML/CastXML";
|
homepage = "https://github.com/CastXML/CastXML";
|
||||||
|
description = "C-family Abstract Syntax Tree XML Output";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
description = "Abstract syntax tree XML output tool";
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,7 +190,10 @@ in
|
||||||
|
|
||||||
castget = callPackage ../applications/networking/feedreaders/castget { };
|
castget = callPackage ../applications/networking/feedreaders/castget { };
|
||||||
|
|
||||||
castxml = callPackage ../development/tools/castxml { };
|
castxml = callPackage ../development/tools/castxml {
|
||||||
|
inherit (llvmPackages) clang-unwrapped libclang llvm;
|
||||||
|
inherit (python3Packages) sphinx;
|
||||||
|
};
|
||||||
|
|
||||||
cen64 = callPackage ../misc/emulators/cen64 { };
|
cen64 = callPackage ../misc/emulators/cen64 { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue