diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2024-02-14 04:20:00 +0000 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2024-02-14 04:20:00 +0000 |
commit | 5fcfc83c97d6625bbfd6b85e3c73bdef1faf6336 (patch) | |
tree | f6918de98853d4b4061d9db92a0e9077b76a96f0 | |
parent | 40612a98202b51ef83be135521f9fe267f27c1f5 (diff) |
mruby: add version tester
-rw-r--r-- | pkgs/development/compilers/mruby/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/compilers/mruby/default.nix b/pkgs/development/compilers/mruby/default.nix index 35cdfb060c839..0a081596616ad 100644 --- a/pkgs/development/compilers/mruby/default.nix +++ b/pkgs/development/compilers/mruby/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, ruby, rake, fetchFromGitHub }: +{ lib, stdenv, ruby, rake, fetchFromGitHub, testers }: stdenv.mkDerivation (finalAttrs: { pname = "mruby"; @@ -28,11 +28,18 @@ stdenv.mkDerivation (finalAttrs: { checkTarget = "test"; + passthru.tests = { + version = testers.testVersion { + package = finalAttrs.finalPackage; + }; + }; + meta = with lib; { description = "An embeddable implementation of the Ruby language"; homepage = "https://mruby.org"; maintainers = with maintainers; [ nicknovitski marsam ]; license = licenses.mit; platforms = platforms.all; + mainProgram = "mruby"; }; }) |