This flake packages essential tools for developing, deploying, and managing OP Stack chains with deterministic, reproducible builds using Nix.
Run any package directly without installation:
# Deploy an OP Stack chain
nix run github:numtide/arkiv/op.nix#op-deployer -- --help
# Start local multi-L2 environment
nix run github:numtide/arkiv/op.nix#supersim
# Query OP contract releases
nix run github:numtide/arkiv/op.nix#op-releases -- --help
# Use Safe CLI
nix run github:numtide/arkiv/op.nix#safe-cli -- --helpEnter a development environment with all tools:
# Using nix develop
nix develop github:numtide/arkiv/op.nix
# Or with direnv (automatic activation)
echo "use flake" > .envrc
direnv allowThe development shell includes all OP Stack tools, Foundry (forge, cast, anvil), and just command runner.
Add to your flake.nix:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
op-nix.url = "github:numtide/arkiv/op.nix";
};
outputs = { self, nixpkgs, op-nix }: {
devShells.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.mkShell {
packages = [
op-nix.packages.x86_64-linux.op-deployer
op-nix.packages.x86_64-linux.supersim
];
};
};
}Format all code:
nix fmtCheck formatting in CI:
nix flake checkContributions are welcome! Please ensure:
- Code is properly formatted:
nix fmt - Flake checks pass:
nix flake check - Package builds successfully:
nix build .#<package-name>
See individual package licenses.