From 9f05d174cf4d23ae141e51aa65611714cac37180 Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Tue, 28 Jul 2026 23:41:20 +0000 Subject: [PATCH] herdr: distribute the SKILL.md file By distributing the SKILL.md file, we can configure LLM tooling to pick up the skill from the filesystem instead of either manually keeping a local copy in sync or doing a remote fetch. An example from how this could be used from home-manager: programs.opencode.settings.skills.paths = [ "${pkgs.herdr}/share/herdr/skills" ]; There doesn't seem to be a convention within nixpkgs of how to distribute skills, so I've taken the liberty of using the $out/share directory. Signed-off-by: Tristan Partin --- pkgs/by-name/he/herdr/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/he/herdr/package.nix b/pkgs/by-name/he/herdr/package.nix index 0a9b504bdcce..88dc80a57d74 100644 --- a/pkgs/by-name/he/herdr/package.nix +++ b/pkgs/by-name/he/herdr/package.nix @@ -55,7 +55,10 @@ rustPlatform.buildRustPackage (finalAttrs: { chmod -R u+w "$ZIG_GLOBAL_CACHE_DIR/p" ''; - postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' + postInstall = '' + install -Dm444 SKILL.md -t $out/share/herdr/skills/herdr + '' + + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd herdr \ --bash <("$out/bin/herdr" completion bash) \ --fish <("$out/bin/herdr" completion fish) \