misc: refactor imports, prefer adding helpers to args rather than importing it

This commit is contained in:
Gaetan Lepage 2023-11-06 15:04:08 +01:00 committed by Gaétan Lepage
parent 541b694873
commit b6724702b4
160 changed files with 697 additions and 736 deletions

View file

@ -1,10 +1,10 @@
# For shorter test iterations run the following in the root of the repo:
# `echo ':b checks.${builtins.currentSystem}.lib-tests' | nix repl .`
{
pkgs,
lib,
pkgs,
}: let
helpers = import ../lib/helpers.nix {inherit pkgs lib;};
helpers = import ../lib/helpers.nix {inherit lib pkgs;};
results = pkgs.lib.runTests {
testToLuaObject = {
expr = helpers.toLuaObject {