summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers/c3c
diff options
context:
space:
mode:
authorTomodachi94 <tomodachi94@protonmail.com>2024-06-06 18:22:57 -0700
committerTomodachi94 <tomodachi94@protonmail.com>2024-06-17 12:37:06 -0700
commite44f0528f422979c4877620f29cb155b477a618c (patch)
tree969e77bee8b07fb2ffc74e7f4676774db274f89a /pkgs/development/compilers/c3c
parent598462adbd5322dee73893cb135ce2389f293665 (diff)
c3c: add version check
Diffstat (limited to 'pkgs/development/compilers/c3c')
-rw-r--r--pkgs/development/compilers/c3c/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/compilers/c3c/default.nix b/pkgs/development/compilers/c3c/default.nix
index d394ecbc4c21..440fe155b39b 100644
--- a/pkgs/development/compilers/c3c/default.nix
+++ b/pkgs/development/compilers/c3c/default.nix
@@ -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";