deno: avoid functions in tests array

By avoiding `callPackage`, we avoid adding `override` and
`overrideAttrs` functions in the tests array, which leads to errors when
running `nix-update --test`.
This commit is contained in:
Mynacol
2026-06-06 12:46:00 +00:00
committed by Mynacol
parent 146a505a83
commit d4d0ba39c6
2 changed files with 2 additions and 2 deletions
+2 -1
View File
@@ -22,6 +22,7 @@
git,
python3,
esbuild,
runCommand,
# self for passthru
deno,
@@ -242,7 +243,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
passthru = {
updateScript = ./update.sh;
tests = (callPackage ./tests { }) // {
tests = (import ./tests { inherit deno runCommand lib; }) // {
build-with-unit-tests = deno.overrideAttrs (fa: {
# The tools test suite requires building the test server
dontBuild = false;
-1
View File
@@ -2,7 +2,6 @@
deno,
runCommand,
lib,
testers,
}:
let
testDenoRun =