Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576_: { perSystem = { config, lib, pkgs, beamPackages, gleam, ... }: { devShells.default = pkgs.mkShell { # The native calendar fixture needs named zones even without system zone data. TZDIR = "${pkgs.tzdata}/share/zoneinfo"; UV_TEST_WHEELS = config.packages.albedo-kernel-python.testWheels; env = lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux { ALBEDO_PHOTON_TEST_PYTHON = "${pkgs.python3.withPackages (ps: [ps.hypothesis ps.pillow-heif])}/bin/python3"; }; packages = # The test environment comes first, so `python3` is the one with the # test-only packages. The kernel environment keeps its role aliases. [config.packages.albedo-kernel-python-test config.packages.albedo-kernel-python] ++ (with pkgs; [ go_1_27 (gopls.override {buildGoLatestModule = buildGo127Module;}) uv (python314Packages.buildPythonApplication { pname = "acp-tck"; version = "0.5.0"; pyproject = true; src = fetchFromGitHub { owner = "agentclientprotocol"; repo = "acp-tck"; rev = "7c71c4d1af0994e73bdc100c9f7f6b98f2319cda"; hash = "sha256-DoZ+g5XDKKyb0zPzL2qvuFIC8W36Ieb3P30kWV4UuEs="; }; buildPhase = '' mkdir -p dist ${uv}/bin/uv build-backend build-wheel dist ''; dependencies = with python314Packages; [jsonschema pytest]; }) pre-commit ruff ty cargo rustc nodejs ripgrep direnv jujutsu # test/reference-daemon.sh locks its build cache; macOS has no flock. flock ]) ++ [ gleam beamPackages.erlang (beamPackages.rebar3WithPlugins {plugins = [beamPackages.pc];}) config.packages.albedo-lint config.packages.albedo-photon config.packages.chrome-headless-shell config.packages.tg ] ++ lib.attrValues config.treefmt.build.programs; # gleam fetches git dependencies under build/packages. A git command there # that finds no repository of its own walks up to this checkout's .git, # which every worktree shares, and once rewrote its origin and core.bare. # Git stops looking at build/. shellHook = '' export ALBEDO_KERNEL_PYTHON="''${ALBEDO_KERNEL_PYTHON:-${config.packages.albedo-kernel-python}/bin/python3}" if top="$(git rev-parse --show-toplevel 2>/dev/null)"; then export GIT_CEILING_DIRECTORIES="$top/apps/albedo/build''${GIT_CEILING_DIRECTORIES:+:$GIT_CEILING_DIRECTORIES}" fi ''; }; };}