c3c: add version check

This commit is contained in:
Tomodachi94
2024-06-17 12:37:06 -07:00
parent 598462adbd
commit e44f0528f4
@@ -7,6 +7,7 @@
, libxml2
, libffi
, xar
, testers
}:
llvmPackages.stdenv.mkDerivation rec {
@@ -50,6 +51,12 @@ llvmPackages.stdenv.mkDerivation rec {
runHook postCheck
'';
passthru.tests = {
version = testers.testVersion {
package = c3c;
};
};
meta = with lib; {
description = "Compiler for the C3 language";
homepage = "https://github.com/c3lang/c3c";