mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
programs.claude-code.hooks previously only accepted inline strings. It now shares the same either-lines-or-path content option used by agents, commands, and rules, so a hook script can be referenced from a file instead of being inlined. mkSourceEntry used lib.isPath, which does not match derivations such as pkgs.writeShellScript. Since lib.types.path accepts derivations, a derivation-backed hook (or agent, command, rule, or output style) sent the derivation to home.file.*.text and failed evaluation. Use lib.hm.strings.isPathLike instead, and add a derivation-backed hook test. No release-notes entry: other option additions/extensions to this module (e.g. path support for agents/commands, the rules option itself) haven't warranted one either.
941 B
941 B