From e399c6ab7fbe21e32683a1a4128ff655b276c9bf Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 9 Oct 2021 01:19:50 +0300 Subject: [PATCH] nix develop: add --unpack --- src/nix/develop.cc | 6 ++++++ src/nix/develop.md | 1 + 2 files changed, 7 insertions(+) diff --git a/src/nix/develop.cc b/src/nix/develop.cc index c20b9f272..f22335023 100644 --- a/src/nix/develop.cc +++ b/src/nix/develop.cc @@ -392,6 +392,12 @@ struct CmdDevelop : Common, MixEnvironment .handler = {&phase}, }); + addFlag({ + .longName = "unpack", + .description = "Run the `unpack` phase.", + .handler = {&phase, {"unpack"}}, + }); + addFlag({ .longName = "configure", .description = "Run the `configure` phase.", diff --git a/src/nix/develop.md b/src/nix/develop.md index c86c4872b..1f214966a 100644 --- a/src/nix/develop.md +++ b/src/nix/develop.md @@ -29,6 +29,7 @@ R""( * Run a particular build phase directly: ```console + # nix develop --unpack # nix develop --configure # nix develop --build # nix develop --check