lib/tests.nix: fix infinite recursion in args

This commit is contained in:
Matt Sturgeon 2024-08-25 16:13:23 +01:00
parent 665680a5ca
commit fa2058970c
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -4,6 +4,8 @@
... ...
}: }:
let let
defaultPkgs = pkgs;
# Create a nix derivation from a nixvim executable. # Create a nix derivation from a nixvim executable.
# The build phase simply consists in running the provided nvim binary. # The build phase simply consists in running the provided nvim binary.
mkTestDerivationFromNvim = mkTestDerivationFromNvim =
@ -35,7 +37,7 @@ let
mkTestDerivationFromNixvimModule = mkTestDerivationFromNixvimModule =
{ {
name ? null, name ? null,
pkgs ? pkgs, pkgs ? defaultPkgs,
module, module,
extraSpecialArgs ? { }, extraSpecialArgs ? { },
# TODO: Deprecated 2024-08-20, remove after 24.11 # TODO: Deprecated 2024-08-20, remove after 24.11