From d496ee3539b8d413487f350ff9d2a8c5b9cf42ac Mon Sep 17 00:00:00 2001 From: John Ericson Date: Sat, 6 Dec 2025 15:07:48 -0500 Subject: [PATCH] Work around dead code analysis bug Some tool forgot that `builtins.functionArgs` makes removing seemingly unused arguments with `@` patterns fraught. --- flake.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index c8f24c0..f638eb7 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; } ];