castxml: use testers.testVersion in passthru.tests

(in order to prevent CLI regressions such as https://github.com/NixOS/nixpkgs/pull/318055)
This commit is contained in:
Ben Darwin
2024-06-07 22:23:15 -04:00
parent 3a9a98fd48
commit 068d1888e7
+5
View File
@@ -7,6 +7,7 @@
llvmPackages,
python3,
stdenv,
testers,
zlib,
# Boolean flags
withHTML ? true,
@@ -66,6 +67,10 @@ stdenv.mkDerivation (finalAttrs: {
runHook postCheck
'';
passthru.tests = testers.testVersion {
package = finalAttrs.finalPackage;
};
meta = {
homepage = "https://github.com/CastXML/CastXML";
description = "C-family Abstract Syntax Tree XML Output";