aboutsummaryrefslogtreecommitdiff
path: root/flake.lock
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-05-02 20:22:14 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-05-02 20:22:14 +0200
commit2b8c63f303de7d1da133cb3e9a00d509dca40f57 (patch)
treef4362b31cb73548574a0c95fb2167ea53365a7f3 /flake.lock
parent4588a6ff3caed5ad30c83e2bc65e52a58176e71c (diff)
Add 'nix dev-shell' and 'nix print-dev-env' command
'nix dev-shell' is intended to replace nix-shell. It supports flakes, e.g. $ nix dev-shell nixpkgs:hello starts a bash shell providing an environment for building 'hello'. Like Lorri (and unlike nix-shell), it computes the build environment by building a modified top-level derivation that writes the environment after running $stdenv/setup to $out and exits. This provides some caching, so it's faster than nix-shell in some cases (especially for packages with lots of dependencies, where the setup script takes a long time). There also is a command 'nix print-dev-env' that prints out shell code for setting up the build environment in an existing shell, e.g. $ . <(nix print-dev-env nixpkgs:hello) https://github.com/tweag/nix/issues/21
Diffstat (limited to 'flake.lock')
0 files changed, 0 insertions, 0 deletions