diff options
author | James Conroy-Finn <git@invetica.co.uk> | 2023-11-23 19:46:02 +0000 |
---|---|---|
committer | James Conroy-Finn <git@invetica.co.uk> | 2023-11-23 19:46:02 +0000 |
commit | 4bef5460b5c2a889b45deb9760900e4b0ae7ee05 (patch) | |
tree | 5f093131ac64768d48cd12263c62ea75d6c42c4f | |
parent | 5006421b150509be56f1973dea5b5bbbc438bd97 (diff) |
zprint: Add version test
-rw-r--r-- | pkgs/development/tools/zprint/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/tools/zprint/default.nix b/pkgs/development/tools/zprint/default.nix index c59c44d597d6d..ac3ab104bb60b 100644 --- a/pkgs/development/tools/zprint/default.nix +++ b/pkgs/development/tools/zprint/default.nix @@ -3,6 +3,8 @@ , graalvmCEPackages , removeReferencesTo , fetchurl +, testers +, zprint }: buildGraalvmNativeImage rec { @@ -31,6 +33,12 @@ buildGraalvmNativeImage rec { remove-references-to -t ${graalvmDrv} $out/bin/${pname} ''; + passthru.tests.version = testers.testVersion { + inherit version; + package = zprint; + command = "zprint --version"; + }; + meta = with lib; { description = "Clojure/EDN source code formatter and pretty printer"; longDescription = '' |