Skip to content

Commit

Permalink
clang-uml: fix --version output (#350575)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Oct 24, 2024
2 parents fe8daa8 + d74ae64 commit caaaae5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/by-name/cl/clang-uml/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
yaml-cpp,
elfutils,
libunwind,
versionCheckHook,
enableLibcxx ? false,
debug ? false,
}:
Expand Down Expand Up @@ -43,6 +44,7 @@ stdenv.mkDerivation (finalAttrs: {

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

buildInputs = [
Expand Down Expand Up @@ -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 = ''
Expand All @@ -84,5 +90,6 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://clang-uml.github.io/";
license = lib.licenses.asl20;
platforms = lib.platforms.all;
mainProgram = "clang-uml";
};
})

0 comments on commit caaaae5

Please sign in to comment.