Package managers
Topiary has been packaged for some package managers. However, note that packaged versions may lag behind the current release.
Cargo (Rust package manager)
The Topiary CLI, amongst other things, is available on crates.io:
cargo install topiary-cli
OPAM (OCaml Package Manager)
Topiary is available through OPAM for the purposes of formatting OCaml code:
opam install topiary
Development of this package can be found on GitHub at
tweag/topiary-opam
.
Nix (nixpkgs)
Topiary exists within nixpkgs and can therefore be installed in whichever way you prefer. For example:
NixOS (configuration.nix
)
environment.systemPackages = with pkgs; [
topiary
];
Home Manager (home.nix
)
home.packages = with pkgs; [
topiary
];
Nix install
# Using flakes:
nix profile install nixpkgs#topiary
# Or, without flakes:
# (Note: Use nixos.topiary on NixOS)
nix-env -iA nixpkgs.topiary
nix-shell
To temporarily add Topiary to your path, use:
# Using flakes:
nix shell nixpkgs#topiary
# Or, without flakes:
nix-shell -p topiary
Arch Linux (AUR)
Topiary is available on the Arch user repository:
yay -S topiary