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.2";
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|