Skip to content

Commit d496ee3

Browse files
committed
Work around dead code analysis bug
Some tool forgot that `builtins.functionArgs` makes removing seemingly unused arguments with `@` patterns fraught.
1 parent 06f9260 commit d496ee3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flake.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@
111111
*/
112112
flake-parts-modules.tested =
113113
# Consumer toplevel
114-
{ config, ... }:
114+
{ ... }:
115115
{
116116
_file = ./flake.nix;
117117
imports = [ flake-parts-modules.basic ];
118118
config.perSystem =
119119
# Consumer perSystem
120-
consumerPerSystem@{
120+
{
121121
lib,
122122
config,
123123
system,
@@ -135,9 +135,9 @@
135135
{
136136
config = {
137137
# Overriding our `perSystem` to use the consumer's `pkgs`
138-
_module.args.pkgs = lib.mkForce consumerPerSystem.pkgs;
138+
_module.args.pkgs = lib.mkForce pkgs;
139139
# ... and `nixPackage`
140-
nix-bindings-rust.nixPackage = lib.mkForce consumerPerSystem.config.nix-bindings-rust.nixPackage;
140+
nix-bindings-rust.nixPackage = lib.mkForce config.nix-bindings-rust.nixPackage;
141141
};
142142
}
143143
];

0 commit comments

Comments
 (0)