33 lines
794 B
Nix
33 lines
794 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchzip,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "navidrome-mcp";
|
|
version = "2.3.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://registry.npmjs.org/${pname}/-/${pname}-${version}.tgz";
|
|
hash = "sha256-npUgzJpB0DaFuzU/1SuOIOVvd2gqZtb1Kos7NC8/Pd4=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-58OZ4qVfeN+0LVzcSJQHQqiY66gPSGWI6ht/4fMp0oQ=";
|
|
|
|
postPatch = ''
|
|
cp ${./package-lock.json} package-lock.json
|
|
'';
|
|
|
|
# dist/ is already built in the npm tarball
|
|
dontNpmBuild = true;
|
|
|
|
meta = with lib; {
|
|
description = "MCP server for Navidrome - search music library, playlists, radio stations, and playback control";
|
|
homepage = "https://github.com/Blakeem/Navidrome-MCP";
|
|
license = licenses.mit;
|
|
mainProgram = "navidrome-mcp";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|