Skip to content

Commit

Permalink
deadnix: fix broken reference
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Nov 19, 2022
1 parent ebcbfe0 commit 364568e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ in
description = "Scan Nix files for dead code (unused variable bindings).";
entry =
let
toArg = string: "--" + (lib.concatMapStringsSep "-" lib.toLower (lib.filter (x: x != "") (lib.flatten (lib.split "([[:upper:]]+[[:lower:]]+)" string))));
toArg = string: "--" + (lib.concatMapStringsSep "-" lib.toLower (lib.filter (x: x != "") (lib.flatten (builtins.split "([[:upper:]]+[[:lower:]]+)" string))));
args = lib.concatMapStringsSep " " toArg (lib.filter (attr: settings.deadnix."${attr}") (lib.attrNames settings.deadnix));
in
"${tools.deadnix}/bin/deadnix ${args} --fail --";
Expand Down

0 comments on commit 364568e

Please sign in to comment.