hauleth / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments

Home Page:https://devenv.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Join Discord License: Apache 2.0 version CI

logo

Running devenv init generates devenv.nix:

{ pkgs, ... }:

{
  # https://devenv.sh/basics/
  env.GREET = "devenv";

  # https://devenv.sh/packages/
  packages = [ pkgs.git ];

  enterShell = ''
    hello
    git --version
  '';

  # https://devenv.sh/languages/
  languages.nix.enable = true;

  # https://devenv.sh/scripts/
  scripts.hello.exec = "echo hello from $GREET";

  # https://devenv.sh/pre-commit-hooks/
  pre-commit.hooks.shellcheck.enable = true;

  # https://devenv.sh/processes/
  # processes.ping.exec = "ping example.com";
}

And devenv shell activates the environment.

Commands

Documentation

About

Fast, Declarative, Reproducible, and Composable Developer Environments

https://devenv.sh

License:Apache License 2.0


Languages

Language:Nix 98.2%Language:Dockerfile 1.0%Language:Shell 0.8%