Skip to content

Commit de90b44

Browse files
committed
add scratchpads
1 parent 816f93a commit de90b44

File tree

17 files changed

+1086
-39
lines changed

17 files changed

+1086
-39
lines changed

.envrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
if ! has nix_direnv_version || ! nix_direnv_version 3.1.0; then
4+
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.1.0/direnvrc" "sha256-yMJ2OVMzrFaDPn7q8nCBZFRYpL/f0RcHzhmw/i6btJM="
5+
fi
6+
7+
export DEVENV_IN_DIRENV_SHELL=true
8+
9+
watch_file flake.nix
10+
watch_file flake.lock
11+
12+
mkdir -p "$PWD/.devenv"
13+
DEVENV_ROOT_FILE="$PWD/.devenv/root"
14+
printf %s "$PWD" >"$DEVENV_ROOT_FILE"
15+
if ! use flake . --override-input devenv-root "file+file://$DEVENV_ROOT_FILE"; then
16+
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
17+
fi

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ dev
22
target
33
rift.toml
44
src/bin/dev.rs
5+
.direnv
6+
.devenv

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"nixEnvPicker.envFile": "${workspaceFolder}${/}flake.nix"
3+
}

0 commit comments

Comments
 (0)