Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nixpacks

БесплатноБез исполняемых скриптовНе проверен

Nixpacks builds a container image from an application's source directory without a Dockerfile: it detects the language, installs dependencies from Nix and…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Nixpacks — App Source to Docker Image

Overview

Nixpacks takes a source directory and produces an OCI image: a provider detects the language, proposes Nix packages plus install, build and start commands, and Nixpacks generates a Dockerfile and builds it with Docker BuildKit. It was created by Railway and is still offered as a builder by self-hosted platforms such as Coolify and Dokploy.

Status: maintenance mode. Since September 2025 the README states that Nixpacks is not under active development and recommends Railpack as the replacement. The last release is v1.41.0 (October 2025). Existing builds keep working, but language versions are frozen at what that release knows (Node up to 24, Python up to 3.13, Go up to 1.23). Use this skill to maintain existing Nixpacks builds; for a new project start with Railpack or a Dockerfile.

Instructions

Install

brew install nixpacks        # macOS
cargo install nixpacks       # any platform with a Rust toolchain
scoop install nixpacks       # Windows (the Scoop bucket still ships 1.39.0, which lacks Node 24)

nixpacks --version           # nixpacks 1.41.0 from Homebrew, cargo or the .deb

On Debian or Ubuntu install the .deb from the release page and check it against the SHA-256 that GitHub shows next to the asset:

curl -fsSLO https://github.com/railwayapp/nixpacks/releases/download/v1.41.0/nixpacks-v1.41.0-amd64.deb
echo "995aa2e3cc2986d069e2f7dc19e111d005c48b98bc90eaccec97f001267d8437  nixpacks-v1.41.0-amd64.deb" | sha256sum --check
sudo dpkg -i nixpacks-v1.41.0-amd64.deb

Inspect before building

nixpacks detect ./invoice-api                 # prints the matched providers, e.g. "node"
nixpacks plan ./invoice-api --format toml     # full build plan; JSON is the default format
nixpacks build ./invoice-api --out ./nixpacks-out
# writes ./nixpacks-out/.nixpacks/Dockerfile and does not call Docker

plan and build --out do not need Docker, so they are the fastest way to see what a platform will run.

Build and run

nixpacks build ./invoice-api --name invoice-api
docker run --rm -p 3000:3000 -e PORT=3000 invoice-api

Useful build flags (plan accepts the first four rows too):

Flag Purpose
-i, --install-cmd, -b, --build-cmd, -s, --start-cmd Override one phase command
-p, --pkgs, -a, --apt, --libs Add Nix packages, apt packages, Nix libraries
-e, --env KEY=value Set a variable; --env KEY copies it from the current shell
-c, --config Path to a config file other than nixpacks.toml
-n, --name, -t, --tag, -l, --label Image name, extra tags, labels
--platform linux/arm64 Target platform
--no-cache, --cache-key, --cache-from, --inline-cache Cache control

nixpacks.toml

Put nixpacks.toml (or nixpacks.json) in the app root. It is merged over the provider's plan; precedence is provider, then file, then environment variables, then CLI flags.

# nixpacks.toml
[phases.setup]
nixPkgs = ["...", "ffmpeg"]          # "..." keeps the provider's packages
aptPkgs = ["...", "libvips-dev"]

[phases.build]
cmds = ["npx prisma generate", "..."]   # run before the provider's build command

[start]
cmd = "node dist/server.js"

[variables]
NEXT_TELEMETRY_DISABLED = "1"

An array without "..." replaces the provider's value. nixPkgs = ["ffmpeg"] on a Node app removes nodejs from the image and the build then fails at npm ci.

Keys available in any [phases.<name>] table: cmds, nixPkgs, nixLibs, aptPkgs, nixOverlays, nixpkgsArchive, dependsOn, cacheDirectories, onlyIncludeFiles, paths. Top-level keys: providers, buildImage, [variables], [staticAssets]. [start] takes cmd, runImage, onlyIncludeFiles. Unknown keys are ignored without a warning, so a typo silently does nothing.

Extra phases are allowed and ordered with dependsOn: define [phases.lint] with cmds = ["npm run lint"] and dependsOn = ["install"], then add dependsOn = ["...", "lint"] under [phases.build].

Pin language versions

There is no version key in nixpacks.toml. Versions come from project files or from provider variables:

Provider Default Set it with
Node 18 engines.node in package.json, .nvmrc, or NIXPACKS_NODE_VERSION (major only: 16, 18, 20, 22, 24; any other major, including 23, silently falls back to 18)
Python 3.11 .python-version, runtime.txt, .tool-versions, or NIXPACKS_PYTHON_VERSION (2.7, 3.8–3.13)
Go 1.22 the go line in go.mod (1.18–1.23)
Java JDK 17 NIXPACKS_JDK_VERSION (8, 11, 17, 19, 20, 21)
PHP 8.3 the php constraint in composer.json (8.1–8.4)

Provider variables must reach Nixpacks as build variables: pass --env NIXPACKS_NODE_VERSION=22 on the CLI, put them in [variables], or set them as service va

Полный SKILL.md на GitHub

Установить nixpacks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл nixpacks?

Nixpacks builds a container image from an application's source directory without a Dockerfile: it detects the language, installs dependencies from Nix and produces an OCI image with Docker. The project is in maintenance mode and its maintainers recommend Railpack for new work. Use when a user asks to build an image with Nixpacks, write or fix a nixpacks.toml, debug a Nixpacks build on Railway, Coolify or Dokploy, pin a Node or Python version for Nixpacks, add system packages such as ffmpeg to a Nixpacks build, or decide whether to move from Nixpacks to Railpack.

Как установить скилл nixpacks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nixpacks запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nixpacks с