mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
After the makeDiskoTest rewrite (commit 4) and the tests/ modulification
(commit 5), the `makeTest`, `eval-config`, and `qemu-common` args
threaded through
flake.nix -> diskoLib = import ./lib { … }
-> import ./tests { … }
lib/default.nix -> testLib = import ./tests.nix { … }
module.nix -> _module.args.diskoLib = import ./lib { … }
are dead — every callsite now imports
`nixos/lib/eval-config.nix` and `nixos/lib/qemu-common.nix` directly
from `pkgs.path` (see `lib/tests.nix`, `lib/install-test.nix`,
`tests/default.nix`). `makeTest` is replaced by the
`nixos-lib.evalTest` call in `module.nix`'s `installTestEval` block.
Strip the dead threading:
- `flake.nix`: drop the three args from the `diskoLib = import ./lib`
call and the `import ./tests` call.
- `lib/default.nix`: drop them from the function signature and from
the `testLib = import ./tests.nix { … }` call; drop the
`qemu-common-lib` derivation that wrapped `qemu-common`.
- `lib/tests.nix`: drop them from the function signature.
- `module.nix`: drop them from the inner `_module.args.diskoLib =
import ./lib { … }` call; drop the now-unused `modulesPath` arg
destructure (its only consumers were the three
`import "${modulesPath}/..."` lines just removed).