18 stdenv.mkDerivation (finalAttrs: {
22 src = fetchFromGitHub {
25 rev = finalAttrs.version;
26 hash = "sha256-fsN9l5sgQ9NIjS0Tn/tAUK/p2mdP7/R7a9BFb+9I0UU=";
46 "-DCUSTOM_COMPILE_OPTIONS=-Wno-error=sign-compare"
47 "-DGIT_VERSION=${finalAttrs.version}"
56 cmakeBuildType = if debug then "Debug" else "Release";
58 clang = if enableLibcxx then llvmPackages.libcxxClang else llvmPackages.clang;
61 cp $out/bin/clang-uml $out/bin/clang-uml-unwrapped
63 export unwrapped_clang_uml="$out/bin/clang-uml-unwrapped"
65 # inject clang and unwrapp_clang_uml variables into wrapper
66 substituteAll ${./wrapper} $out/bin/clang-uml
67 chmod +x $out/bin/clang-uml
69 installShellCompletion --cmd clang-uml \
70 --bash $src/packaging/autocomplete/clang-uml \
71 --zsh $src/packaging/autocomplete/_clang-uml
77 nativeInstallCheckInputs = [ versionCheckHook ];
78 doInstallCheck = true;
79 versionCheckProgramArg = "--version";
82 description = "Customizable automatic UML diagram generator for C++ based on Clang";
84 clang-uml is an automatic C++ to UML class, sequence, package and include diagram generator, driven by YAML configuration files.
85 The main idea behind the project is to easily maintain up-to-date diagrams within a code-base or document legacy code.
86 The configuration file or files for clang-uml define the types and contents of each generated diagram.
87 The diagrams can be generated in PlantUML, MermaidJS and JSON formats.
89 maintainers = with lib.maintainers; [ eymeric ];
90 homepage = "https://clang-uml.github.io/";
91 license = lib.licenses.asl20;
92 platforms = lib.platforms.all;
93 mainProgram = "clang-uml";