From 03694db503b7e1710813ef4e89751868ef7729b7 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 27 Nov 2022 02:24:40 +0100 Subject: [PATCH] moodle: reference nixos test in passthru.tests --- pkgs/servers/web-apps/moodle/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/web-apps/moodle/default.nix b/pkgs/servers/web-apps/moodle/default.nix index efaf274c0947..02bb13f5f7e3 100644 --- a/pkgs/servers/web-apps/moodle/default.nix +++ b/pkgs/servers/web-apps/moodle/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, writeText, plugins ? [ ] }: +{ lib, stdenv, fetchurl, writeText, plugins ? [ ], nixosTests }: let version = "4.0.5"; @@ -56,6 +56,10 @@ in stdenv.mkDerivation rec { runHook postInstall ''; + passthru.tests = { + inherit (nixosTests) moodle; + }; + meta = with lib; { description = "Free and open-source learning management system (LMS) written in PHP";