mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
clang-uml: fix --version output (#350575)
This commit is contained in:
commit
caaaae5e7e
@ -11,6 +11,7 @@
|
|||||||
yaml-cpp,
|
yaml-cpp,
|
||||||
elfutils,
|
elfutils,
|
||||||
libunwind,
|
libunwind,
|
||||||
|
versionCheckHook,
|
||||||
enableLibcxx ? false,
|
enableLibcxx ? false,
|
||||||
debug ? false,
|
debug ? false,
|
||||||
}:
|
}:
|
||||||
@ -43,6 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DCUSTOM_COMPILE_OPTIONS=-Wno-error=sign-compare"
|
"-DCUSTOM_COMPILE_OPTIONS=-Wno-error=sign-compare"
|
||||||
|
"-DGIT_VERSION=${finalAttrs.version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -72,6 +74,10 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
dontFixup = debug;
|
dontFixup = debug;
|
||||||
dontStrip = debug;
|
dontStrip = debug;
|
||||||
|
|
||||||
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
|
doInstallCheck = true;
|
||||||
|
versionCheckProgramArg = "--version";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Customizable automatic UML diagram generator for C++ based on Clang";
|
description = "Customizable automatic UML diagram generator for C++ based on Clang";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
@ -84,5 +90,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
homepage = "https://clang-uml.github.io/";
|
homepage = "https://clang-uml.github.io/";
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
platforms = lib.platforms.all;
|
platforms = lib.platforms.all;
|
||||||
|
mainProgram = "clang-uml";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user