c3c: add version check

This commit is contained in:
Tomodachi94 2024-06-06 18:22:57 -07:00
parent 598462adbd
commit e44f0528f4
No known key found for this signature in database
GPG Key ID: 2E275F21C4D554A3

View File

@ -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";