lib/tests: simplify access to default system

This commit is contained in:
Matt Sturgeon 2024-12-23 15:43:08 +00:00
parent 9bf4c9d55b
commit 3172e48dbb
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 11 additions and 7 deletions

View file

@ -1,11 +1,10 @@
{
self,
pkgs,
lib ? pkgs.lib,
...
system,
lib,
}:
let
defaultPkgs = pkgs;
defaultSystem = system;
# Create a nix derivation from a nixvim executable.
# The build phase simply consists in running the provided nvim binary.
@ -31,7 +30,7 @@ let
{
name ? null,
pkgs ? null,
system ? defaultPkgs.stdenv.hostPlatform.system,
system ? defaultSystem,
module,
extraSpecialArgs ? { },
}: