diff options
Diffstat (limited to 'pkgs/by-name/ca/castxml/package.nix')
-rw-r--r-- | pkgs/by-name/ca/castxml/package.nix | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/pkgs/by-name/ca/castxml/package.nix b/pkgs/by-name/ca/castxml/package.nix index ba76cb9a445d9..88cbbec87c6d1 100644 --- a/pkgs/by-name/ca/castxml/package.nix +++ b/pkgs/by-name/ca/castxml/package.nix @@ -1,7 +1,7 @@ { + lib, cmake, fetchFromGitHub, - lib, libffi, libxml2, llvmPackages, @@ -20,55 +20,49 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "castxml"; - version = "0.6.6"; + version = "0.6.8"; src = fetchFromGitHub { owner = "CastXML"; repo = "CastXML"; rev = "v${finalAttrs.version}"; - hash = "sha256-icTos9HboZXvojQPX+pRkpBYiZ5SXSMb9XtvRnXNHuo="; + 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; }; }) |