zprint: Add version test

This commit is contained in:
James Conroy-Finn 2023-11-23 19:46:02 +00:00
parent 5006421b15
commit 4bef5460b5
No known key found for this signature in database
GPG Key ID: 37A8786A2C3CD764

View File

@ -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 = ''