# 使用 Homebrew, Nix 安装 dpp

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

## 安装

```sh
sudo av install brew:dpp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dpp
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dpp
```

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

## 软件包事实

- **软件包键:** brew:dpp
- **软件包管理器:** Homebrew
- **版本:** 0.6.0
- **来源摘要:** Directly include C headers in D source code
- **主页:** <https://github.com/atilaneves/dpp>
- **仓库:** <https://github.com/atilaneves/dpp>
- **最后更新:** 2026-06-13T01:24:10+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- d++ (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

dpp, invoked as d++, is a D-language interop tool that lets D source files directly include C and limited C++ headers, translating declarations through libclang and then compiling the generated D code.

### 项目历史

The public GitHub repository was created in August 2017. Its README describes the goal as giving D files the same practical ease of use as C or C++ #include workflows, including macro-heavy C APIs, and notes that the work was supported by Symmetry Investments.

### 采用历史

dpp's adoption has stayed centered on the D ecosystem rather than becoming a general-purpose systems tool. Its packaging in Homebrew and Nix makes it discoverable to D users who need C header interop without hand-maintaining bindings.

### 使用方式

Users write quasi-D .dpp files containing #include directives, then run d++ so the tool expands declarations and selected macros into D code before invoking a D compiler.

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

For package maintainers, dpp is a compact example of language-ecosystem tooling that depends on libclang and a host C preprocessor to bridge ABI-heavy native libraries into a less mainstream compiled language.

### 时间线

- 2017: atilaneves/dpp was created on GitHub.
- 2017 onward: the project documented success translating headers for libraries such as curl, OpenSSL, libvirt, Python.h, and others.
- 2024: the repository still showed maintenance activity, while remaining a niche D interop package.

### Related projects

- D language
- libclang
- dmd
- dub

### 来源

- <https://github.com/atilaneves/dpp>
- <https://raw.githubusercontent.com/atilaneves/dpp/master/README.md>
- <https://api.github.com/repos/atilaneves/dpp>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - dpp: normalized package name match | nixpkgs package indexes: pkgs/by-name/dp/dpp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/dpp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dpp.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
