Work around dead code analysis bug

Some tool forgot that `builtins.functionArgs` makes removing seemingly
unused arguments with `@` patterns fraught.
This commit is contained in:
John Ericson 2025-12-06 15:07:48 -05:00
parent 06f9260d31
commit d496ee3539

View file

@ -111,13 +111,13 @@
*/ */
flake-parts-modules.tested = flake-parts-modules.tested =
# Consumer toplevel # Consumer toplevel
{ config, ... }: { ... }:
{ {
_file = ./flake.nix; _file = ./flake.nix;
imports = [ flake-parts-modules.basic ]; imports = [ flake-parts-modules.basic ];
config.perSystem = config.perSystem =
# Consumer perSystem # Consumer perSystem
consumerPerSystem@{ {
lib, lib,
config, config,
system, system,
@ -135,9 +135,9 @@
{ {
config = { config = {
# Overriding our `perSystem` to use the consumer's `pkgs` # Overriding our `perSystem` to use the consumer's `pkgs`
_module.args.pkgs = lib.mkForce consumerPerSystem.pkgs; _module.args.pkgs = lib.mkForce pkgs;
# ... and `nixPackage` # ... and `nixPackage`
nix-bindings-rust.nixPackage = lib.mkForce consumerPerSystem.config.nix-bindings-rust.nixPackage; nix-bindings-rust.nixPackage = lib.mkForce config.nix-bindings-rust.nixPackage;
}; };
} }
]; ];