Keeps flake.nix cleaner by extracting the package definition. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
639 B
Nix
27 lines
639 B
Nix
{ lib, buildGoModule, makeWrapper, nix, src }:
|
|
|
|
buildGoModule {
|
|
pname = "nixos-options-mcp";
|
|
version = "0.1.0";
|
|
inherit src;
|
|
|
|
vendorHash = "sha256-D0KIxQC9ctIAaHBFTvkhBE06uOZwDUcIw8471Ug2doY=";
|
|
|
|
subPackages = [ "cmd/nixos-options" ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/nixos-options \
|
|
--prefix PATH : ${lib.makeBinPath [ nix ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "MCP server for NixOS options search and query";
|
|
homepage = "https://git.t-juice.club/torjus/labmcp";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
mainProgram = "nixos-options";
|
|
};
|
|
}
|