# 使用 Homebrew, MacPorts, Nix, scoop 安装 nixpacks

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

## 安装

```sh
sudo av install brew:nixpacks
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nixpacks
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nixpacks
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#nixpacks
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/nixpacks
```

  证据: Scoop official bucket manifest trees: bucket/nixpacks.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:nixpacks
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nixpacks>
- **版本:** 1.41.0
- **来源摘要:** App source + Nix packages + Docker = Image
- **主页:** <https://nixpacks.com/docs/getting-started>
- **仓库:** <https://github.com/railwayapp/nixpacks>
- **上游文档:** <https://nixpacks.com/docs/getting-started>
- **许可证:** MIT
- **源码归档:** <https://github.com/railwayapp/nixpacks/archive/refs/tags/v1.41.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- nixpacks (cli)
- nixpacks (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.41.0
- 本地数据: OK
- 上游仓库: https://github.com/railwayapp/nixpacks
- 检测到的最新版本: v1.41.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Nixpacks is Railway's Rust-based build tool that analyzes an application source tree and produces an OCI container image using Docker image construction plus packages from the Nix ecosystem. The project framed itself as a pragmatic alternative to Cloud Native Buildpacks for Railway's own platform workload: thousands of user apps, many language stacks, and a need for zero-config defaults that were still configurable when defaults failed.

### 项目历史

The public tag history starts with v0.0.1 on April 13, 2022, and the maintainers were already discussing a 2.0 direction by May 12, 2023. The docs and README later marked Nixpacks as maintenance-mode software and point users toward Railpack, Railway's successor builder that incorporates lessons from running Nixpacks in production for several years.

### 采用历史

Nixpacks' adoption is strongly tied to Railway-style deployment flows rather than being a general-purpose container standard. Its GitHub repository shows about 3.5k stars and 316 forks, and Homebrew's formula API reported 31 installs in 30 days, 93 in 90 days, and 941 in 365 days when checked on July 1, 2026.

### 使用方式

Package nerds use `nixpacks` when they want Heroku/buildpack-like source-to-image behavior but prefer Nixpkgs for system dependencies. Typical use is local image generation, CI image builds, or debugging what a platform will infer from a repo; heavier Railway users should note the documented Railpack migration path.

### 时间线

- 2022-04-13: v0.0.1 tag appears in the public repository.
- 2023-05-12: maintainers discuss Nixpacks 2.0 after a little over a year of use at Railway.
- 2025-10-24: v1.41.0 release is listed as latest on GitHub and in the Homebrew formula.
- By 2026-07-01: upstream documentation labels Nixpacks as maintenance mode and recommends Railpack.

### Related projects

- Cloud Native Buildpacks
- Nixpkgs
- Railpack
- Railway

### 来源

- <https://formulae.brew.sh/api/formula/nixpacks.json>
- <https://github.com/railwayapp/nixpacks>
- <https://github.com/railwayapp/nixpacks/discussions/888>
- <https://github.com/railwayapp/railpack>
- <https://nixpacks.com/docs>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

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.


## Configuration files

- Unix: nixpacks.toml, nixpacks.json, nixpacks.yml, nixpacks.yaml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nixpacks
- **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:** head, stable

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

- Nix - nixpacks: normalized package name match | nixpkgs package indexes: pkgs/by-name/ni/nixpacks/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - nixpacks: normalized package name match | MacPorts ports tree: devel/nixpacks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/nixpacks: normalized package name match | Scoop official bucket manifest trees: bucket/nixpacks.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [docker](https://pkg.so/zh-hans/brew/docker/) - Shares pkgdb curated category or tags: cli, developer-tools, docker.
- [docker-compose](https://pkg.so/zh-hans/brew/docker-compose/) - Shares pkgdb curated category or tags: cli, developer-tools, docker.
- [fastlane](https://pkg.so/zh-hans/brew/fastlane/) - Shares pkgdb curated category or tags: cli, deployment, developer-tools.
- [docker-buildx](https://pkg.so/zh-hans/brew/docker-buildx/) - Shares pkgdb curated category or tags: cli, developer-tools, docker.
- [act](https://pkg.so/zh-hans/brew/act/) - Shares pkgdb curated category or tags: cli, developer-tools, docker.
- [kind](https://pkg.so/zh-hans/brew/kind/) - Shares pkgdb curated category or tags: cli, developer-tools, docker.
- [lazydocker](https://pkg.so/zh-hans/brew/lazydocker/) - Shares pkgdb curated category or tags: cli, developer-tools, docker.
- [docker-credential-helper-ecr](https://pkg.so/zh-hans/brew/docker-credential-helper-ecr/) - Shares pkgdb curated category or tags: cli, developer-tools, docker.
- [dive](https://pkg.so/zh-hans/brew/dive/) - Both packages work with overlapping file formats or content types. Shared terms: cli, developer, developer-tools, docker, image.
- [manifest-tool](https://pkg.so/zh-hans/brew/manifest-tool/) - Both packages work with overlapping file formats or content types. Shared terms: cli, developer, developer-tools, docker, image.
- [diffoci](https://pkg.so/zh-hans/brew/diffoci/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, docker, oci.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
