- Add hm-options documentation to README.md - Update CLAUDE.md with hm-options info, repository structure - Add note about git-tracking new files before nix build/run - Add version bump rules documentation - Bump version from 0.1.0 to 0.1.1 (patch bump for internal/ changes) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
702 B
Nix
30 lines
702 B
Nix
{ lib, buildGoModule, makeWrapper, nix, src
|
|
, pname ? "nixos-options-mcp"
|
|
, subPackage ? "cmd/nixos-options"
|
|
, mainProgram ? "nixos-options"
|
|
, description ? "MCP server for NixOS options search and query"
|
|
}:
|
|
|
|
buildGoModule {
|
|
inherit pname src;
|
|
version = "0.1.1";
|
|
|
|
vendorHash = "sha256-D0KIxQC9ctIAaHBFTvkhBE06uOZwDUcIw8471Ug2doY=";
|
|
|
|
subPackages = [ subPackage ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/${mainProgram} \
|
|
--prefix PATH : ${lib.makeBinPath [ nix ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
inherit description mainProgram;
|
|
homepage = "https://git.t-juice.club/torjus/labmcp";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|