macOS
brew install alejandralocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de alejandra pour les workflows d'agents IA.
installation
brew install alejandralocal Homebrew formula metadata
nix profile install nixpkgs#alejandranixpkgs package indexes · pkgs/by-name/al/alejandra/package.nix · Source: api.github.com
aperçu
Command-line tool for formatting Nix Code
historique
Alejandra is a Rust-based formatter for the Nix expression language. It is part of the Nix ecosystem's formatter wars: small, opinionated, fast, and built to make style disappear from code review.
The official README brands Alejandra as 'The Uncompromising Nix Code Formatter' and says it was written in Rust, formats Nixpkgs in seconds, and starts from the original Nixpkgs style refined by feedback from developers using Nix at scale.
The changelog shows a fast maturation arc in 2022. Version 1.0.0 shipped in March 2022; 1.4.0 and 1.5.0 followed with pre-commit support and dependency updates; 2.0.0 in July 2022 added a style guide, editor integration docs, and publication as a Rust crate with API docs; 3.0.0 in August 2022 simplified the CLI and improved large-file formatting order.
Later releases kept the formatter active in normal toolchain maintenance. Version 3.1.0 in 2024 refreshed integration docs and pre-commit hooks, and 4.0.0 in 2025 added experimental configurable indentation and support for newer Nix pipe operators.
Alejandra's official README documents installation from Nixpkgs, Nix flakes, NixOS configurations, Homebrew, and prebuilt binaries. The supplied package facts also list Homebrew and Nix packages, which fits its primary audience: people already managing tools declaratively.
The README lists integrations for VS Code, Vim, Neovim, GNU Emacs, Doom Emacs, pre-commit, and pre-commit-hooks.nix. That adoption history matters because formatters become useful only when they are cheap to run in editors, CI, and repository hooks.
Users run `alejandra` against Nix files, stdin, or repository trees, and often wire it into editor format-on-save or pre-commit hooks. The project treats the CLI, formatting rules, flags, exit codes, and stdout as its public API under semantic versioning.
Configuration is intentionally limited. The README documents an experimental `alejandra.toml` discovered in the current working directory, or supplied explicitly with `--experimental-config`.
Alejandra is a package-nerd package because it formats the language used to describe packages in Nix. It is both a normal CLI package and a tool that shapes the readability of package expressions.
It also has the useful distribution trifecta for developer tools: Rust source, prebuilt binaries, and native Nix/Homebrew packaging, plus editor and hook integrations.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
alejandra.tomlexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
alejandra | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/kamadorueda/alejandra
métadonnées d'installation
| Clé du paquet | brew:alejandra |
|---|---|
| Version | 4.0.0 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/alejandra |
| Page d'accueil | https://kamadorueda.com/alejandra/ |
| Dépôt | https://github.com/kamadorueda/alejandra |
| Docs amont | https://github.com/kamadorueda/alejandra#readme |
| Licence | Unlicense |
| Archive source | https://github.com/kamadorueda/alejandra/archive/refs/tags/4.0.0.tar.gz |
| Dépendances de compilation | rust |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | alejandra |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
alejandra
nix profile install nixpkgs#alejandrapiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.