Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

devenv

> 编程语言
Open source

Fast, Declarative, Reproducible, and Composable Developer Environments using Nix

7.2K stars0 likes2 views
WebsiteGitHub

About

Fast, Declarative, Reproducible, and Composable Developer Environments using Nix

</picture>

devenv.sh - Fast, Declarative, Reproducible, and Composable Developer Environments

Features

Developer experience

  • 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)

Languages, packages, and services

  • 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

Processes and tasks

  • Native process manager written in Rust with dependency ordering, restart policies, readiness probes (exec, HTTP, systemd notify), socket activation, watchdog heartbeats, and file watching
  • Automatic port allocation that finds free ports so parallel environments never collide
  • Tasks with DAG based execution, caching, parallel runs, and namespace support
  • Scripts with access to all environment packages

Packaging and deployment

  • OCI containers built from your environment without Docker
  • Outputs for packaging apps using each language's best tools (crate2nix, uv2nix, ...)
  • Polyrepo support to reference outputs and options across repositories

Composition and configuration

  • Profiles for environment variants (--profile backend --profile testing)
  • Composable via imports to share and reuse environments across projects
  • Inputs for pinning and overriding Nix dependencies

Security and integrations

  • SecretSpec for declarative, provider agnostic secrets management (keyring, 1Password, dotenv)
  • Git hooks via git-hooks.nix with pre configured formatters and linters
  • Testing with devenv test that automatically starts and stops processes
  • direnv integration for automatic shell activation when entering a directory
  • MCP server for AI assistant integration (package and option search)
  • AI generation 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
  • Basics
  • Roadmap
  • Blog
  • devenv.yaml reference
  • devenv.nix reference
  • Contributing

Issues· 373 open

View all issuesOpen on GitHub
  • #2863

    Add command to start project and go to shell

    enhancementprocessesUpdated Sep 21, 2026
  • #2808

    Expose hook files in nixpkgs for declarative sourcing

    enhancementUpdated Sep 21, 2026
  • #2219

    Sharing devenv.lock in monorepos

    enhancementUpdated Sep 21, 2026
  • #3065

    devenv mcp holds ~4 GiB per process for the lifetime of the process, and ignores SIGTERM

    bugmcpUpdated Sep 21, 2026
  • #3201

    Codex CLI integration: generate .codex/config.toml (MCP servers, hooks) like claude.code and opencode

    Updated Sep 21, 2026
  • #3198

    Support standalone language servers for R

    Updated Sep 21, 2026
  • #3196

    `devenv lsp` fails inside devcontainer

    bugUpdated Sep 21, 2026
  • #1010

    sandbox

    enhancementUpdated Sep 19, 2026
  • #3193

    fish hook: `devenv shell` exit via `cd` emits codes to terminal

    bugUpdated Sep 18, 2026
  • #3184

    devenv 2.3.1 always runs git-hooks at startup

    bugtasksUpdated Sep 18, 2026

> Tags

Rustdeveloper-toolsdevenvnix

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 22, 2026
Category编程语言
PricingOpen source

> Related tools

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