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 =
# Consumer toplevel
{ config, ... }:
{ ... }:
{
_file = ./flake.nix;
imports = [ flake-parts-modules.basic ];
config.perSystem =
# Consumer perSystem
consumerPerSystem@{
{
lib,
config,
system,
@ -135,9 +135,9 @@
{
config = {
# Overriding our `perSystem` to use the consumer's `pkgs`
_module.args.pkgs = lib.mkForce consumerPerSystem.pkgs;
_module.args.pkgs = lib.mkForce pkgs;
# ... 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;
};
}
];