eztrace: fix reported version and use versionCheckHook

Upstream seemingly forgot to bump their patch version
for 2.1.1 and do a gitlab release as well.

Use `versionCheckHook` as a smoke test for
installation completeness.
This commit is contained in:
Sergei Zimmerman
2025-04-21 20:57:53 +00:00
parent bf1a4caecc
commit 6a640f04c9
+7
View File
@@ -9,6 +9,7 @@
libbfd,
libopcodes,
otf2,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -43,6 +44,9 @@ stdenv.mkDerivation (finalAttrs: {
"find_program(OTF2_CONFIG "${lib.getExe' otf2 "otf2-config"}" REQUIRED)" \
--replace-fail "find_program(OTF2_PRINT otf2-print REQUIRED)" \
"find_program(OTF2_PRINT "${lib.getExe' otf2 "otf2-print"}" REQUIRED)"
# 2.1.1 incorrectly reports 2.1.0. TODO: Remove after next release
substituteInPlace CMakeLists.txt \
--replace-fail "2.1.0" "${finalAttrs.version}"
patchShebangs test
'';
@@ -76,6 +80,9 @@ stdenv.mkDerivation (finalAttrs: {
moveToOutput bin/eztrace_create_plugin "$dev"
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
meta = {
description = "Tool that aims at generating automatically execution trace from HPC programs";
homepage = "https://eztrace.gitlab.io/eztrace/index.html";