91e75e620b
CI: cua-driver distro-compat matrix / debian:12 (glibc 2.36) (push) Has been cancelled
CI: SPDX Headers / Check SPDX headers (warn-only) (push) Has been cancelled
CD: Docs MCP Server / build (linux/amd64) (push) Has been cancelled
CD: Docs MCP Server / build (linux/arm64) (push) Has been cancelled
CD: Docs MCP Server / merge (push) Has been cancelled
CI: cua-driver distro-compat matrix / Resolve release version (push) Has been cancelled
CI: cua-driver distro-compat matrix / fedora:41 (glibc 2.40) (push) Has been cancelled
CI: cua-driver distro-compat matrix / rockylinux:9 (glibc 2.34) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:22.04 (glibc 2.35) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:24.04 (glibc 2.39) (push) Has been cancelled
CI: cua-driver distro-compat matrix / Distro compat summary (push) Has been cancelled
CI: Rust Linux unit / Rust Linux unit and compile (push) Has been cancelled
CI: Rust Windows unit / Rust Windows unit and compile (push) Has been cancelled
CI: Nix Linux Rust source / Nix / compositor build (push) Has been cancelled
CI: Nix Linux Rust source / Nix / driver package (push) Has been cancelled
CI: Nix Linux Rust source / Nix / Rust unit tests (push) Has been cancelled
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
# Python development (3.12 required by cua-bench)
|
|
python312
|
|
python312Packages.pip
|
|
python312Packages.virtualenv
|
|
|
|
# C/C++ libraries needed by numpy and other packages
|
|
stdenv.cc.cc.lib
|
|
|
|
# Docker for container operations
|
|
docker
|
|
docker-compose
|
|
|
|
# General tools
|
|
git
|
|
curl
|
|
jq
|
|
];
|
|
|
|
# Add library path for numpy and other native extensions
|
|
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
|
|
|
|
shellHook = ''
|
|
echo "CUA-Bench development environment loaded"
|
|
echo "Python version: $(python3 --version)"
|
|
|
|
# Create and activate venv if it doesn't exist
|
|
if [ ! -d ".venv" ]; then
|
|
echo "Creating virtual environment..."
|
|
python3 -m venv .venv
|
|
fi
|
|
|
|
source .venv/bin/activate
|
|
|
|
# Install package in editable mode if not already installed
|
|
if ! pip show cua-bench > /dev/null 2>&1; then
|
|
echo "Installing cua-bench in editable mode..."
|
|
pip install -e ".[dev]" 2>/dev/null || pip install -e .
|
|
fi
|
|
|
|
echo "Virtual environment activated"
|
|
'';
|
|
}
|