Files
millerson-overlay.nix/packages/container-use/package.nix
Alexander Miroshnichenko 0fd5c71709 fix: resolve code quality issues, add CI, and improve maintainability
- Remove useless nixConfig block (cache.nixos.org is default)
- Remove manual container-use override; let blueprint auto-discover it
- Add nixosModules.default so README example works
- Fix default launcher: use correct parameterized flake URL
- Replace deprecated sha256 with hash in goose-cli fetchers
- Fix LIBCLANG_PATH to include /lib subdirectory for libclang.so
- Drop --release from goose-cli tests (faster, more debug info)
- Use builtins.toFile in flake-inputs to avoid ARG_MAX risk
- Add lib.warn when overlay has no packages for a system
- Add passthru.updateScript to goose-cli, container-use, skillsmcp
- Fix skillsmcp version to 0.2.0+unstable (pinned to commit, not tag)
- Replace with lib; with explicit references in all meta blocks
- Add update.py script for goose-cli (referenced in AGENTS.md)
- Expand .gitignore with result-* and .direnv/
- Add GitHub Actions CI workflow (nix flake check + build)
2026-05-08 06:02:12 +03:00

53 lines
1.2 KiB
Nix

{
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" ];
# Tests require network access to container registries and a running
# Docker engine, neither of which are available in the Nix sandbox
doCheck = false;
postInstall = ''
ln -s $out/bin/container-use $out/bin/cu
'';
ldflags = [
"-s -w -X main.version=v${version}"
];
passthru = {
updateScript = [
"nix-update"
"--flake"
".#container-use"
];
};
meta = {
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 = lib.licenses.asl20;
mainProgram = "container-use";
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}