百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

devenv

> 编程语言
开源

使用 Nix 来构建快速、声明式、可重现和可组合的开发者环境

7.2K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

使用 Nix 来构建快速、声明式、可重现和可组合的开发者环境

# [devenv.sh](https://devenv.sh) - Fast, Declarative, Reproducible, and Composable Developer Environments ## Features ### Developer experience - **[Terminal UI](https://devenv.sh/blog/2026/03/05/devenv-20-a-fresh-interface-to-nix/#terminal-ui)** with live build progress, task hierarchy, and error details - **[Native shell reloading](https://devenv.sh/blog/2026/03/05/devenv-20-a-fresh-interface-to-nix/#native-shell-reloading)** that rebuilds in the background while your shell stays interactive - **[Instant environments](https://devenv.sh/blog/2024/10/03/devenv-13-instant-developer-environments-with-nix-caching/)** with incremental Nix evaluation caching (sub 100ms when nothing changed) - **[LSP for devenv.nix](https://devenv.sh/lsp/)** with autocomplete, hover docs, and go to definition via bundled nixd - **[Ad hoc environments](https://devenv.sh/ad-hoc-developer-environments/)** from the CLI without any config files (`--option languages.rust.enable:bool true`) - **[Out of tree devenvs](https://devenv.sh/ad-hoc-developer-environments/)** to use configs from other repos (`--from github:myorg/configs`) ### Languages, packages, and services - **[50+ languages](https://devenv.sh/languages/)** with built in tooling: compilers, LSP servers, formatters, linters, and version selection - **[100,000+ packages](https://devenv.sh/packages/)** from Nixpkgs for Linux, macOS, x64, and ARM64 (including WSL2) - **[40+ services](https://devenv.sh/services/)** like PostgreSQL, Redis, MySQL, MongoDB, Elasticsearch, Caddy, and more ### Processes and tasks - **[Native process manager](https://devenv.sh/processes/)** written in Rust with dependency ordering, restart policies, readiness probes (exec, HTTP, systemd notify), socket activation, watchdog heartbeats, and file watching - **[Automatic port allocation](https://devenv.sh/processes/#automatic-port-allocation)** that finds free ports so parallel environments never collide - **[Tasks](https://devenv.sh/tasks/)** with DAG based execution, caching, parallel runs, and namespace support - **[Scripts](https://devenv.sh/scripts/)** with access to all environment packages ### Packaging and deployment - **[OCI containers](https://devenv.sh/containers/)** built from your environment without Docker - **[Outputs](https://devenv.sh/outputs/)** for packaging apps using each language's best tools (crate2nix, uv2nix, ...) - **[Polyrepo support](https://devenv.sh/guides/polyrepo/)** to reference outputs and options across repositories ### Composition and configuration - **[Profiles](https://devenv.sh/profiles/)** for environment variants (`--profile backend --profile testing`) - **[Composable via imports](https://devenv.sh/composing-using-imports/)** to share and reuse environments across projects - **[Inputs](https://devenv.sh/inputs/)** for pinning and overriding Nix dependencies ### Security and integrations - **[SecretSpec](https://devenv.sh/integrations/secretspec/)** for declarative, provider agnostic secrets management (keyring, 1Password, dotenv) - **[Git hooks](https://devenv.sh/git-hooks/)** via git-hooks.nix with pre configured formatters and linters - **[Testing](https://devenv.sh/tests/)** with `devenv test` that automatically starts and stops processes - **[direnv integration](https://devenv.sh/integrations/direnv/)** for automatic shell activation when entering a directory - **[MCP server](https://devenv.sh/mcp/)** for AI assistant integration (package and option search) - **[AI generation](https://devenv.new)** to scaffold environments from a natural language description ## Quick start Running ``devenv init`` generates ``devenv.nix``: ``` … ``` And ``devenv shell`` activates the environment. ## Commands ``` … ``` ## Documentation - [Getting Started](https://devenv.sh/getting-started/) - [Basics](https://devenv.sh/basics/) - [Roadmap](https://devenv.sh/roadmap/) - [Blog](https://devenv.sh/blog/) - [`devenv.yaml` reference](https://devenv.sh/reference/yaml-options/) - [`devenv.nix` reference](https://devenv.sh/reference/options/) - [Contributing](https://devenv.sh/community/contributing/)

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •Terminal UI with live build progress, task hierarchy, and error details
  • •Native shell reloading that rebuilds in the background while your shell stays interactive
  • •Instant environments with incremental Nix evaluation caching (sub 100ms when nothing changed)
  • •LSP for devenv.nix with autocomplete, hover docs, and go to definition via bundled nixd
  • •Ad hoc environments from the CLI without any config files (--option languages.rust.enable:bool true)
  • •Out of tree devenvs to use configs from other repos (--from github:myorg/configs)
  • •50+ languages with built in tooling: compilers, LSP servers, formatters, linters, and version selection
  • •100,000+ packages from Nixpkgs for Linux, macOS, x64, and ARM64 (including WSL2)
  • •40+ services like PostgreSQL, Redis, MySQL, MongoDB, Elasticsearch, Caddy, and more
  • •Automatic port allocation that finds free ports so parallel environments never collide

> 标签

Rustdeveloper-toolsdevenvnix

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言