{"id":13437220,"url":"https://github.com/cachix/devenv","last_synced_at":"2025-04-23T20:52:22.828Z","repository":{"id":63092492,"uuid":"555988330","full_name":"cachix/devenv","owner":"cachix","description":"Fast, Declarative, Reproducible, and Composable Developer Environments using Nix","archived":false,"fork":false,"pushed_at":"2025-04-17T15:11:39.000Z","size":6309,"stargazers_count":5045,"open_issues_count":405,"forks_count":375,"subscribers_count":29,"default_branch":"main","last_synced_at":"2025-04-17T22:31:18.737Z","etag":null,"topics":["developer-tools","devenv","nix"],"latest_commit_sha":null,"homepage":"https://devenv.sh","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cachix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"docs/supported-languages/ansible.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-22T20:10:10.000Z","updated_at":"2025-04-17T21:28:06.000Z","dependencies_parsed_at":"2022-11-12T19:30:20.930Z","dependency_job_id":"6cbf1353-8d24-49f8-8830-7450c7b076dd","html_url":"https://github.com/cachix/devenv","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cachix%2Fdevenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cachix%2Fdevenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cachix%2Fdevenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cachix%2Fdevenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cachix","download_url":"https://codeload.github.com/cachix/devenv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250514756,"owners_count":21443208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-tools","devenv","nix"],"created_at":"2024-07-31T03:00:55.141Z","updated_at":"2025-04-23T20:52:22.816Z","avatar_url":"https://github.com/cachix.png","language":"Nix","funding_links":[],"categories":["HarmonyOS","Development tools","Nix","Rust","developer-tools","Development","计算机编程_数据结构与算法","Command-Line Tools"],"sub_categories":["Windows Manager","Workflow Automation","资源传输下载","Discovery"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://devenv.sh\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"logos/devenv-horizontal-light-bg.svg\"\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"logos/devenv-horizontal-dark-bg.svg\"\u003e\n      \u003cimg src=\"logos/devenv-horizontal-light-bg.svg\" width=\"500px\" alt=\"devenv logo\"\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# [devenv.sh](https://devenv.sh) - Fast, Declarative, Reproducible, and Composable Developer Environments\n\n[![Built with Nix](https://img.shields.io/static/v1?logo=nixos\u0026logoColor=white\u0026label=\u0026message=Built%20with%20Nix\u0026color=41439a)](https://builtwithnix.org)\n[![Discord channel](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fdiscord.com%2Fapi%2Finvites%2FnaMgvexb6q%3Fwith_counts%3Dtrue\u0026query=%24.approximate_member_count\u0026logo=discord\u0026logoColor=white\u0026label=Discord%20users\u0026color=green\u0026style=flat)](https://discord.gg/naMgvexb6q)\n![License: Apache 2.0](https://img.shields.io/github/license/cachix/devenv)\n[![Version](https://img.shields.io/github/v/release/cachix/devenv?color=green\u0026label=version\u0026sort=semver)](https://github.com/cachix/devenv/releases)\n[![CI](https://github.com/cachix/devenv/actions/workflows/buildtest.yml/badge.svg)](https://github.com/cachix/devenv/actions/workflows/buildtest.yml?branch=main)\n\nRunning ``devenv init`` generates ``devenv.nix``:\n\n```nix\n{ pkgs, ... }:\n\n{\n  # https://devenv.sh/basics/\n  env.GREET = \"devenv\";\n\n  # https://devenv.sh/packages/\n  packages = [ pkgs.git ];\n\n  enterShell = ''\n    hello\n  '';\n\n  # https://devenv.sh/tests/\n  enterTest = ''\n    echo \"Running tests\"\n    git --version | grep --color=auto \"${pkgs.git.version}\"\n  '';\n\n  # https://devenv.sh/languages/\n  languages.nix.enable = true;\n\n  # https://devenv.sh/scripts/\n  scripts.hello.exec = \"echo hello from $GREET\";\n\n  # https://devenv.sh/services/\n  services.postgres.enable = true;\n\n  # https://devenv.sh/git-hooks/\n  git-hooks.hooks.shellcheck.enable = true;\n\n  # https://devenv.sh/processes/\n  processes.ping.exec = \"ping localhost\";\n}\n\n```\n\nAnd ``devenv shell`` activates the environment.\n\n## Commands\n\n```\n$ devenv\nhttps://devenv.sh 1.6.0: Fast, Declarative, Reproducible, and Composable Developer Environments\n\nUsage: devenv [OPTIONS] [COMMAND]\n\nCommands:\n  init       Scaffold devenv.yaml, devenv.nix, .gitignore and .envrc.\n  generate   Generate devenv.yaml and devenv.nix using AI\n  shell      Activate the developer environment. https://devenv.sh/basics/\n  update     Update devenv.lock from devenv.yaml inputs. http://devenv.sh/inputs/\n  search     Search for packages and options in nixpkgs. https://devenv.sh/packages/#searching-for-a-file\n  info       Print information about this developer environment.\n  up         Start processes in the foreground. https://devenv.sh/processes/\n  processes  Start or stop processes. https://devenv.sh/processes/\n  tasks      Run tasks. https://devenv.sh/tasks/\n  test       Run tests. http://devenv.sh/tests/\n  container  Build, copy, or run a container. https://devenv.sh/containers/\n  inputs     Add an input to devenv.yaml. https://devenv.sh/inputs/\n  repl       Launch an interactive environment for inspecting the devenv configuration.\n  gc         Delete previous shell generations. See https://devenv.sh/garbage-collection\n  build      Build any attribute in devenv.nix.\n  direnvrc   Print a direnvrc that adds devenv support to direnv. See https://devenv.sh/automatic-shell-activation.\n  version    Print the version of devenv.\n  help       Print this message or the help of the given subcommand(s)\n\nOptions:\n  -V, --version\n          Print version information and exit\n\n  -v, --verbose\n          Enable additional debug logs.\n\n  -q, --quiet\n          Silence all logs\n\n      --log-format \u003cLOG_FORMAT\u003e\n          Configure the output format of the logs.\n\n          [default: cli]\n\n          Possible values:\n          - cli:            The default human-readable log format used in the CLI\n          - tracing-full:   A verbose structured log format used for debugging\n          - tracing-pretty: A pretty human-readable log format used for debugging\n\n  -j, --max-jobs \u003cMAX_JOBS\u003e\n          Maximum number of Nix builds at any time.\n\n          [default: 8]\n\n  -u, --cores \u003cCORES\u003e\n          Maximum number CPU cores being used by a single build.\n\n          [default: 2]\n\n  -s, --system \u003cSYSTEM\u003e\n          [default: x86_64-linux]\n\n  -i, --impure\n          Relax the hermeticity of the environment.\n\n      --no-eval-cache\n          Disable caching of Nix evaluation results.\n\n      --refresh-eval-cache\n          Force a refresh of the Nix evaluation cache.\n\n      --offline\n          Disable substituters and consider all previously downloaded files up-to-date.\n\n  -c, --clean [\u003cCLEAN\u003e...]\n          Ignore existing environment variables when entering the shell. Pass a list of comma-separated environment variables to let through.\n\n      --nix-debugger\n          Enter the Nix debugger on failure.\n\n  -n, --nix-option \u003cNAME\u003e \u003cVALUE\u003e\n          Pass additional options to nix commands.\n\n          These options are passed directly to Nix using the --option flag.\n          See `man nix.conf` for the full list of available options.\n\n          Examples:\n            --nix-option sandbox false\n            --nix-option keep-outputs true\n            --nix-option system x86_64-darwin\n\n  -o, --override-input \u003cNAME\u003e \u003cURI\u003e\n          Override inputs in devenv.yaml.\n\n          Examples:\n            --override-input nixpkgs github:NixOS/nixpkgs/nixos-unstable\n            --override-input nixpkgs path:/path/to/local/nixpkgs\n\n  -O, --option \u003cOPTION\u003e \u003cVALUE\u003e\n          Override configuration options with typed values.\n\n          OPTION must include a type: \u003cattribute\u003e:\u003ctype\u003e\n          Supported types: string, int, float, bool, path\n\n          Examples:\n            --option languages.rust.channel:string beta\n            --option services.postgres.enable:bool true\n            --option languages.python.version:string 3.10\n\n  -h, --help\n          Print help (see a summary with '-h')\n```\n\n## Documentation\n\n- [Getting Started](https://devenv.sh/getting-started/)\n- [Basics](https://devenv.sh/basics/)\n- [Roadmap](https://devenv.sh/roadmap/)\n- [Blog](https://devenv.sh/blog/)\n- [`devenv.yaml` reference](https://devenv.sh/reference/yaml-options/)\n- [`devenv.nix` reference](https://devenv.sh/reference/options/)\n- [Contributing](https://devenv.sh/community/contributing/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcachix%2Fdevenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcachix%2Fdevenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcachix%2Fdevenv/lists"}