An in-memory client and canister-shaped server exchange CapTP frames in Syrup byte-string envelopes, as update calls will carry them. Generated-by: Claude Code (claude-opus-5-5)
24 lines
532 B
Nix
24 lines
532 B
Nix
{
|
|
description = "A Counter in an Internet Computer canister, called over OCapN";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
# dfx is not in nixpkgs; install it with dfxvm (see README).
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
zig_0_17
|
|
nodejs_22
|
|
wasm-tools
|
|
];
|
|
};
|
|
};
|
|
}
|