From 364568e63556045ea9d08d29fafa46febbdb015b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Sat, 19 Nov 2022 18:03:15 +0000 Subject: [PATCH] deadnix: fix broken reference --- modules/hooks.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hooks.nix b/modules/hooks.nix index f4e24c06..c2c19972 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -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 --";