pty ships a flake with a package and a development shell. Both need Nix with flakes enabled. Works on macOS and Linux.
Install pty into your Nix profile:
nix profile install github:compoundingtech/ptyThis builds the CLI from the flake's default package and puts pty on your
PATH. Upgrade later with nix profile upgrade, remove with
nix profile remove.
To run it once without installing:
nix run github:compoundingtech/ptyFor hacking on pty itself, drop into the flake's dev shell — it provides the
toolchain needed to build the node-pty native addon (Node.js, Python, and
pkg-config):
nix develop github:compoundingtech/ptyOr, from a clone of this repo:
git clone https://github.com/compoundingtech/pty
cd pty
nix develop # enters the dev shell with node, python3, pkg-config
npm install
npm run buildThe flake's flake.nix is the source of truth for both the package and the dev
shell — this document only describes how to use them.