From 39a061a59785232b2a7b48b5c1612370afffd680 Mon Sep 17 00:00:00 2001 From: Defelo Date: Fri, 23 May 2025 00:45:20 +0200 Subject: [PATCH] mask: enable tests --- pkgs/by-name/ma/mask/package.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ma/mask/package.nix b/pkgs/by-name/ma/mask/package.nix index 39ddbc4af853..a33c9a0b76ec 100644 --- a/pkgs/by-name/ma/mask/package.nix +++ b/pkgs/by-name/ma/mask/package.nix @@ -1,9 +1,16 @@ { lib, + stdenv, fetchFromGitHub, rustPlatform, versionCheckHook, nix-update-script, + + # tests + nodejs, + python3, + php, + ruby, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -20,8 +27,16 @@ rustPlatform.buildRustPackage (finalAttrs: { useFetchCargoVendor = true; cargoHash = "sha256-JaYr6J3NOwVIHzGO4wLkke5O/T/9WUDENPgLP5Fwyhg="; - # tests require mask to be installed - doCheck = false; + preCheck = '' + export PATH=$PATH:$PWD/target/${stdenv.hostPlatform.rust.rustcTarget}/$cargoBuildType + ''; + + nativeCheckInputs = [ + nodejs + python3 + php + ruby + ]; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "--version";