Skip to content

Commit

Permalink
adding nix develop and direnv for development environment setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nxmatic committed Jan 16, 2024
1 parent 982dd83 commit e51c557
Show file tree
Hide file tree
Showing 7 changed files with 9,132 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# inlined shared variables, no needs of encryption

[[ -z "$GITHUB_WORKSPACE" ]] &&
source_up

[[ -z "$(command -v nix)" ]] &&
return

pushd .nix
use flake . --impure
popd
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ ftest/src/test/resources/instance.clid
.project
ftest/.settings/
selenium-standalone.txt
.local
.local
.nix/.devenv
10 changes: 10 additions & 0 deletions .nix/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi

nix_direnv_watch_file flake.nix
nix_direnv_watch_file flake.lock
if ! use flake . --impure
then
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
fi
1 change: 1 addition & 0 deletions .nix/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.devenv
343 changes: 343 additions & 0 deletions .nix/flake.lock

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

Loading

0 comments on commit e51c557

Please sign in to comment.