Skip to content

Commit b029159

Browse files
committed
devshells(cli): add additional .envrc
Auto load the rust environment devshell upon entering the cli source tree.
1 parent 7a6af71 commit b029159

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

nix/automation/devshells.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ in {
3333
capsules.hooks
3434
];
3535
};
36-
dev = std.lib.mkShell {
36+
cli = std.lib.mkShell {
3737
packages = rust-dev-pkgs;
3838
language.rust = {
3939
packageSet = rustPlatform;

nix/cli/packages/cli/.envrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#! /bin/sh
2+
3+
. "$(nix eval .#__std.direnv_lib)"
4+
use std nix //automation/devshells:cli

0 commit comments

Comments
 (0)