Unverified Commit caaaae5e authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

clang-uml: fix --version output (#350575)

parents fe8daa8b d74ae64f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
  yaml-cpp,
  elfutils,
  libunwind,
  versionCheckHook,
  enableLibcxx ? false,
  debug ? false,
}:
@@ -43,6 +44,7 @@ stdenv.mkDerivation (finalAttrs: {

  cmakeFlags = [
    "-DCUSTOM_COMPILE_OPTIONS=-Wno-error=sign-compare"
    "-DGIT_VERSION=${finalAttrs.version}"
  ];

  buildInputs = [
@@ -72,6 +74,10 @@ stdenv.mkDerivation (finalAttrs: {
  dontFixup = debug;
  dontStrip = debug;

  nativeInstallCheckInputs = [ versionCheckHook ];
  doInstallCheck = true;
  versionCheckProgramArg = "--version";

  meta = {
    description = "Customizable automatic UML diagram generator for C++ based on Clang";
    longDescription = ''
@@ -84,5 +90,6 @@ stdenv.mkDerivation (finalAttrs: {
    homepage = "https://clang-uml.github.io/";
    license = lib.licenses.asl20;
    platforms = lib.platforms.all;
    mainProgram = "clang-uml";
  };
})