Skip to content

Commit

Permalink
castxml: use testers.testVersion in passthru.tests
Browse files Browse the repository at this point in the history
(in order to prevent CLI regressions such as NixOS#318055)
  • Loading branch information
bcdarwin committed Jun 8, 2024
1 parent 3a9a98f commit 068d188
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/by-name/ca/castxml/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
llvmPackages,
python3,
stdenv,
testers,
zlib,
# Boolean flags
withHTML ? true,
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 068d188

Please sign in to comment.