Skip to content

Commit

Permalink
adds nix shell
Browse files Browse the repository at this point in the history
  • Loading branch information
supinie committed Jan 8, 2025
1 parent 0c9eaf6 commit 9e1eeab
Show file tree
Hide file tree
Showing 5 changed files with 2,064 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .direnv/bin/nix-direnv-reload
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
if [[ ! -d "/home/jcl24/git/enc_rust" ]]; then
echo "Cannot find source directory; Did you move it?"
echo "(Looking for "/home/jcl24/git/enc_rust")"
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
exit 1
fi

# rebuild the cache forcefully
_nix_direnv_force_reload=1 direnv exec "/home/jcl24/git/enc_rust" true

# Update the mtime for .envrc.
# This will cause direnv to reload again - but without re-building.
touch "/home/jcl24/git/enc_rust/.envrc"

# Also update the timestamp of whatever profile_rc we have.
# This makes sure that we know we are up to date.
touch -r "/home/jcl24/git/enc_rust/.envrc" "/home/jcl24/git/enc_rust/.direnv"/*.rc
1 change: 1 addition & 0 deletions .direnv/nix-profile-pre732674.a27871180d30
Loading

0 comments on commit 9e1eeab

Please sign in to comment.