# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 blueprint-compiler

查看 blueprint-compiler 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:blueprint-compiler
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install blueprint-compiler
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install blueprint-compiler
```

  证据: MacPorts ports tree: gnome/blueprint-compiler/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add blueprint-compiler
```

  证据: Alpine Linux edge package indexes: blueprint-compiler from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install blueprint-compiler
```

  证据: Debian stable package indexes: blueprint-compiler from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install blueprint-compiler
```

  证据: Fedora Rawhide package metadata: blueprint-compiler from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#blueprint-compiler
```

  证据: nixpkgs package indexes: pkgs/by-name/bl/blueprint-compiler/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S blueprint-compiler
```

  证据: Arch Linux sync databases: blueprint-compiler from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install blueprint-compiler
```

  证据: openSUSE Tumbleweed package metadata: blueprint-compiler from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:blueprint-compiler
- **软件包管理器:** Homebrew
- **版本:** 0.22.2
- **来源摘要:** Markup language and compiler for GTK 4 user interfaces
- **主页:** <https://gnome.pages.gitlab.gnome.org/blueprint-compiler/>
- **最后更新:** 2026-07-11T03:08:50Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- blueprint-compiler (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.22.2
## 项目历史与用法

Blueprint Compiler is GNOME's compiler and language-server tooling for Blueprint, a concise markup language that compiles to GtkBuilder XML for GTK 4 user interfaces.

### 项目历史

James Westman created Blueprint in 2021 to make GTK UI definitions easier to read and edit than verbose GtkBuilder XML. The README states that Blueprint adds no new GTK features; it makes existing GtkBuilder features more accessible and compiles into XML as part of an application's build system.

The project grew from a compiler into a developer-tooling package with a formatter, decompiler, linter work, and a language server. Its NEWS file records steady releases from v0.2.0 through v0.20.x with improvements to type handling, diagnostics, decompilation, accessibility properties, and editor support.

### 采用历史

Blueprint Compiler is packaged broadly across Linux and Unix-like package managers in the input metadata, including Alpine, Debian, Fedora, Nix, Arch, Ubuntu, openSUSE, MacPorts, and Homebrew. The README also lists editor support in Workbench, GNOME Builder, Kate, Vim, Emacs, Visual Studio Code, Sublime Text, and Zed.

Within GNOME app development it matters because it gives GTK 4 projects a source format that is friendlier to humans while preserving GtkBuilder XML as the generated artifact consumed by GTK.

### 使用方式

Developers write .blp Blueprint files, import GTK or library namespaces, and run blueprint-compiler in a build system to emit GtkBuilder .ui XML. The language server and editor integrations support completion, hover information, diagnostics, formatting, and navigation.

The compiler is especially useful in Meson/GNOME workflows where UI files are generated during the build but still reviewed and maintained as readable source.

### 为什么软件包爱好者会关心

Blueprint Compiler is significant because it is a language-tooling package for UI markup, not just a converter script. It packages a compiler, formatter, decompiler, and LSP around GTK's introspection metadata, which is exactly the sort of developer-tool dependency that quietly standardizes project layouts.

For package maintainers, it is also a useful signal of modern GNOME app stacks: GTK 4, libadwaita-era UI definitions, Meson builds, and editor tooling converging around a small compiler executable.

### 时间线

- 2021: Project created under James Westman's copyright notice.
- 2022: v0.2.0 tag published in the official Git repository.
- 2023: v0.8.x releases documented language and XML-output fixes.
- 2024: v0.12.0 and v0.14.0 added formatter, decompiler, language-server, and diagnostics improvements.
- 2026: v0.20.x NEWS records linter work, minify output, libgirepository loading, and expanded language-server completions.

### Related projects

- GtkBuilder XML is the generated target format.
- GTK 4 and libadwaita are the main UI libraries used with Blueprint.
- Workbench, GNOME Builder, Kate, Vim, Emacs, Visual Studio Code, Sublime Text, and Zed are documented editor surfaces.

### 来源

- <https://gitlab.gnome.org/GNOME/blueprint-compiler>
- <https://gitlab.gnome.org/GNOME/blueprint-compiler/-/raw/main/NEWS.md>
- <https://gitlab.gnome.org/GNOME/blueprint-compiler/-/raw/main/README.md>
- <https://gnome.pages.gitlab.gnome.org/blueprint-compiler>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - blueprint-compiler - 0.16.0-3: normalized package name match | Debian stable package indexes: blueprint-compiler from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Markup language for GTK user interface files | https://gnome.pages.gitlab.gnome.org/blueprint-compiler/
- Nix - blueprint-compiler: normalized package name match | nixpkgs package indexes: pkgs/by-name/bl/blueprint-compiler/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - blueprint-compiler - 0.12.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: blueprint-compiler from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Markup language for GTK user interface files | https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/
- apk - blueprint-compiler - 0.22.2-r0: normalized package name match | Alpine Linux edge package indexes: blueprint-compiler from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Markup language for GTK user interfaces | https://gnome.pages.gitlab.gnome.org/blueprint-compiler/
- apk - blueprint-compiler-dev - 0.22.2-r0: normalized package name match | Alpine Linux edge package indexes: blueprint-compiler-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Markup language for GTK user interfaces (development files) | https://gnome.pages.gitlab.gnome.org/blueprint-compiler/
- apk - blueprint-compiler-pyc - 0.22.2-r0: normalized package name match | Alpine Linux edge package indexes: blueprint-compiler-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for blueprint-compiler | https://gnome.pages.gitlab.gnome.org/blueprint-compiler/
- dnf - blueprint-compiler - 0.22.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: blueprint-compiler from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A markup language for GTK user interfaces | https://gitlab.gnome.org/GNOME/blueprint-compiler
- pacman - blueprint-compiler - 0.22.2-1: normalized package name match | Arch Linux sync databases: blueprint-compiler from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Markup language and compiler for GTK 4 user interfaces | https://gnome.pages.gitlab.gnome.org/blueprint-compiler/
- zypper - blueprint-compiler - 0.22.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: blueprint-compiler from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A markup language for GTK user interfaces | https://gitlab.gnome.org/GNOME/blueprint-compiler
- zypper - blueprint-compiler-devel - 0.22.2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: blueprint-compiler-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for blueprint-compiler | https://gitlab.gnome.org/GNOME/blueprint-compiler
- MacPorts - blueprint-compiler: normalized package name match | MacPorts ports tree: gnome/blueprint-compiler/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/blueprint-compiler.yml](https://github.com/mxcl/pkgdb/blob/main/combined/blueprint-compiler.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
