NUR repo for my Nix packages, and some modules.
0

Configure Feed

Select the types of activity you want to include in your feed.

remove unused modular mcp package

Adam0 (Jun 24, 2026, 12:24 AM +0200) 2378f055 51f6e91e

-124
-3
README.md
··· 37 37 38 38 # Format the repository 39 39 nix fmt 40 - 41 - # Build a package 42 - nix build .#modular-mcp 43 40 ``` 44 41 45 42 Formatting is configured through `treefmt-nix`.
-121
pkgs/modular-mcp/default.nix
··· 1 - { 2 - # keep-sorted start 3 - bun, 4 - fetchFromGitHub, 5 - lib, 6 - makeWrapper, 7 - nodejs-slim, 8 - stdenv, 9 - # keep-sorted end 10 - }: let 11 - inherit 12 - (lib) 13 - # keep-sorted start 14 - getExe 15 - makeBinPath 16 - # keep-sorted end 17 - ; 18 - 19 - pname = "modular-mcp"; 20 - version = "0.0.10"; 21 - 22 - src = fetchFromGitHub { 23 - owner = "d-kimuson"; 24 - repo = pname; 25 - tag = "v${version}"; 26 - hash = "sha256-OmCtyUCShNQez+tHpOHervAUoIbbIgePqR6nx/vRnoU="; 27 - }; 28 - 29 - # Step 1: Fixed-output derivation for dependencies 30 - deps = stdenv.mkDerivation { 31 - pname = "${pname}-deps"; 32 - inherit version src; 33 - 34 - nativeBuildInputs = [bun]; 35 - 36 - dontBuild = true; 37 - dontFixup = true; 38 - 39 - installPhase = '' 40 - export HOME=$TMPDIR 41 - 42 - # Install dependencies 43 - bun install --frozen-lockfile --no-cache 44 - 45 - # Copy to output 46 - mkdir -p $out 47 - cp -r node_modules $out/ 48 - cp pnpm-lock.yaml package.json $out/ 49 - ''; 50 - 51 - # This hash represents the dependencies 52 - outputHash = "sha256-qmvKQJu+pLHbKzIz4Z3nqZNquvrAVIkauy/EkeDFpSw="; 53 - outputHashAlgo = "sha256"; 54 - outputHashMode = "recursive"; 55 - }; 56 - # Step 2: Main build derivation 57 - in 58 - stdenv.mkDerivation { 59 - inherit 60 - # keep-sorted start 61 - pname 62 - src 63 - version 64 - # keep-sorted end 65 - ; 66 - 67 - nativeBuildInputs = [ 68 - # keep-sorted start 69 - bun 70 - makeWrapper 71 - nodejs-slim 72 - # keep-sorted end 73 - ]; 74 - 75 - buildPhase = '' 76 - runHook preBuild 77 - 78 - export HOME=$TMPDIR 79 - 80 - cp -r ${deps}/node_modules . 81 - cp ${deps}/pnpm-lock.yaml . 82 - 83 - substituteInPlace node_modules/.bin/run-s \ 84 - --replace-fail "/usr/bin/env node" "${getExe nodejs-slim}" 85 - substituteInPlace node_modules/.bin/tsx \ 86 - --replace-fail "/usr/bin/env node" "${getExe nodejs-slim}" 87 - 88 - bun run build 89 - 90 - runHook postBuild 91 - ''; 92 - 93 - installPhase = '' 94 - runHook preInstall 95 - 96 - mkdir -p $out/lib/${pname} 97 - 98 - cp -r dist $out/lib/${pname}/ 99 - 100 - cp -r node_modules $out/lib/${pname}/ 101 - cp package.json $out/lib/${pname}/ 102 - 103 - chmod +x $out/lib/${pname}/dist/index.js 104 - 105 - mkdir -p $out/bin 106 - makeWrapper $out/lib/${pname}/dist/index.js $out/bin/${pname} \ 107 - --prefix PATH : ${makeBinPath [nodejs-slim]} \ 108 - 109 - runHook postInstall 110 - ''; 111 - 112 - meta = with lib; { 113 - # keep-sorted start 114 - description = "A Model Context Protocol (MCP) proxy server that enables efficient management of large tool collections"; 115 - homepage = "https://github.com/d-kimuson/modular-mcp"; 116 - license = licenses.mit; 117 - mainProgram = pname; 118 - platforms = platforms.unix; 119 - # keep-sorted end 120 - }; 121 - }