From 3b95ae2965dfce6bc0c6d4c704bd08bfea4e9fa8 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Thu, 7 May 2026 07:15:12 +0800 Subject: [PATCH] lychee: use lib.getExe instead of hardcoding binary name `lib.getExe` is useful when users override the `package` option and change its binary name, such as when making a thin wrapper around the original binary. --- modules/hooks.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hooks.nix b/modules/hooks.nix index 87e11f9d..f3021172 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -3718,7 +3718,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm [ (configPath != "") " --config ${configPath}" ] ]); in - "${hooks.lychee.package}/bin/lychee${cmdArgs} ${hooks.lychee.settings.flags}"; + "${lib.getExe hooks.lychee.package}${cmdArgs} ${hooks.lychee.settings.flags}"; types = [ "text" ]; }; markdownlint =