Skip to content

Commit

Permalink
example: Always use local mission-control
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Dec 17, 2022
1 parent 9c466a7 commit 3b1c773
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ A `flake-parts` module for your Nix devshell scripts

## Example

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:
See the [example](./example) directory for a working example.

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:

[^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`.

```
### ️🔨 Welcome to the Nix devshell ###
Expand Down
2 changes: 1 addition & 1 deletion example/.envrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use flake
use flake --override-input mission-control path:../.
6 changes: 3 additions & 3 deletions example/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b1c773

Please sign in to comment.