Skip to content

Commit 3b1c773

Browse files
committed
example: Always use local mission-control
1 parent 9c466a7 commit 3b1c773

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ A `flake-parts` module for your Nix devshell scripts
66

77
## Example
88

9-
See the [example](./example) directory for a working example. Run `nix develop` (or `direnv allow`) to drop into the Nix shell, which will display the mission control banner as shown below:
9+
See the [example](./example) directory for a working example.
10+
11+
Run `nix develop --override-input mission-control path:../.`[^override] (or simply `direnv allow` if you already use direnv) to drop into the Nix shell, which will display the mission control banner as shown below:
12+
13+
[^override]: The `--override-input` option is to be used when running from this repository to make sure that we are using the local version of `mission-control`. If you are copying this `flake.nix` to your project (without also copying the outdated `flake.lock`), you can simply run `nix develop`.
1014

1115
```
1216
### ️🔨 Welcome to the Nix devshell ###

example/.envrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
use flake
1+
use flake --override-input mission-control path:../.

example/flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)