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:
parent
06f9260d31
commit
d496ee3539
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue