macOS
brew install alejandralocal Homebrew formula metadata
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für alejandra in AI-Agent-Workflows.
Installation
brew install alejandralocal Homebrew formula metadata
nix profile install nixpkgs#alejandranixpkgs package indexes · pkgs/by-name/al/alejandra/package.nix · Quelle: api.github.com
Überblick
Command-line tool for formatting Nix Code
Verlauf
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.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
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.tomlExecutables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
alejandra | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/kamadorueda/alejandra
Installationsmetadaten
| Paketschlüssel | brew:alejandra |
|---|---|
| Version | 4.0.0 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/alejandra |
| Homepage | https://kamadorueda.com/alejandra/ |
| Repository | https://github.com/kamadorueda/alejandra |
| Upstream-Dokumentation | https://github.com/kamadorueda/alejandra#readme |
| Lizenz | Unlicense |
| Quellarchiv | https://github.com/kamadorueda/alejandra/archive/refs/tags/4.0.0.tar.gz |
| Build-Abhängigkeiten | rust |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| 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 |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
alejandra
nix profile install nixpkgs#alejandraQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.