mirror of
https://github.com/nix-community/flakelight.git
synced 2025-06-20 17:47:45 +02:00
Allow formatters to be functions
This commit is contained in:
parent
3a26542b83
commit
c9b8d986e1
@ -415,7 +415,8 @@ let
|
||||
${pkgs.fd}/bin/fd "$f" -Htf -x "$0"
|
||||
else
|
||||
case "$(${pkgs.coreutils}/bin/basename "$f")" in
|
||||
${toString (mapAttrsToList (n: v: "${n}) ${v} \"$f\";;")
|
||||
${toString (mapAttrsToList
|
||||
(n: v: "${n}) ${callFn pkgs v} \"$f\";;")
|
||||
(merged.formatters pkgs))}
|
||||
esac
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user