feat: add container-use package and fix goose-cli libclang dependency
- Add dagger/container-use (v0.4.2) for containerized coding agent environments - Fix goose-cli build by adding llvmPackages.libclang for bindgen - Clean up skillsmcp package (remove custom fastmcp override, use nixos-unstable) - Remove broken update.py script from goose-cli - Add treefmt.toml for consistent formatting - Update README with all current packages
This commit is contained in:
1
packages/container-use/default.nix
Normal file
1
packages/container-use/default.nix
Normal file
@@ -0,0 +1 @@
|
||||
{ pkgs, ... }: pkgs.callPackage ./package.nix { }
|
||||
38
packages/container-use/package.nix
Normal file
38
packages/container-use/package.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "container-use";
|
||||
version = "0.4.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dagger";
|
||||
repo = "container-use";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-YKgS142a9SL1ZEjS+VArxwUzQX961zwlGuHW43AMxQA=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-M7YhEm9Gmjv2gxB2r7AS5JLLThEkvtJfLBrB+cvsN5c=";
|
||||
|
||||
env.CGO_ENABLED = 0;
|
||||
|
||||
subPackages = [ "cmd/container-use" ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
ldflags = [
|
||||
"-s -w -X main.version=v${version}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Containerized environments for coding agents";
|
||||
homepage = "https://github.com/dagger/container-use";
|
||||
changelog = "https://github.com/dagger/container-use/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
mainProgram = "container-use";
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1 @@
|
||||
{ pkgs, ... }:
|
||||
pkgs.callPackage ./package.nix {
|
||||
fastmcp = pkgs.callPackage ./fastmcp.nix { };
|
||||
}
|
||||
{ pkgs, ... }: pkgs.callPackage ./package.nix { }
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
{ python3Packages }:
|
||||
|
||||
# Use fastmcp from nixpkgs but disable tests
|
||||
python3Packages.fastmcp.overrideAttrs (old: {
|
||||
doCheck = false;
|
||||
doInstallCheck = false;
|
||||
})
|
||||
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
fastmcp,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
@@ -22,7 +21,7 @@ python3Packages.buildPythonApplication rec {
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
fastmcp
|
||||
python3Packages.fastmcp
|
||||
python3Packages.pyyaml
|
||||
];
|
||||
|
||||
@@ -30,12 +29,6 @@ python3Packages.buildPythonApplication rec {
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "skillsmcp" ];
|
||||
|
||||
# Patch to accept fastmcp 2.x from nixpkgs
|
||||
postPatch = ''
|
||||
# Replace version requirement in pyproject.toml
|
||||
sed -i 's/"fastmcp>=3.0.0"/"fastmcp>=2.0"/' pyproject.toml
|
||||
'';
|
||||
|
||||
passthru.category = "MCP Servers";
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user