Files
nixpkgs/pkgs/by-name/ch/chatmcp/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.5 KiB
Nix

{
lib,
flutter332,
fetchFromGitHub,
autoPatchelfHook,
copyDesktopItems,
makeDesktopItem,
runCommand,
yq,
chatmcp,
_experimental-update-script-combinators,
gitUpdater,
}:
flutter332.buildFlutterApplication rec {
pname = "chatmcp";
version = "0.0.76";
src = fetchFromGitHub {
owner = "daodao97";
repo = "chatmcp";
tag = "v${version}";
hash = "sha256-MU2AFiIvc3Y27/nX/OqYs/VKkw50cqznMY2zUdys8ts=";
};
pubspecLock = lib.importJSON ./pubspec.lock.json;
nativeBuildInputs = [
copyDesktopItems
autoPatchelfHook
];
desktopItems = [
(makeDesktopItem {
name = "chatmcp";
exec = "chatmcp %U";
icon = "chatmcp";
desktopName = "ChatMCP";
})
];
postInstall = ''
install -Dm0644 assets/logo.png $out/share/pixmaps/chatmcp.png
'';
passthru = {
pubspecSource =
runCommand "pubspec.lock.json"
{
nativeBuildInputs = [ yq ];
inherit (chatmcp) src;
}
''
cat $src/pubspec.lock | yq > $out
'';
updateScript = _experimental-update-script-combinators.sequence [
(gitUpdater { rev-prefix = "v"; })
(_experimental-update-script-combinators.copyAttrOutputToFile "chatmcp.pubspecSource" ./pubspec.lock.json)
];
};
meta = {
description = "AI chat client implementing the Model Context Protocol";
homepage = "https://github.com/daodao97/chatmcp";
mainProgram = "chatmcp";
license = lib.licenses.asl20;
platforms = lib.platforms.linux;
maintainers = [ ];
};
}