From 7c0c0e6041fb202a62d764e8f2a617917424b0a3 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 8 Dec 2023 12:22:37 -0500 Subject: .envrc re-adjust & update direnv - nixDirEnv (a copy of .envrc) used for flake.nix (getting around an issue that arose when building project; may revert to direct use of .envrc) --- org/config_env.org | 52 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 18 deletions(-) (limited to 'org/config_env.org') diff --git a/org/config_env.org b/org/config_env.org index 5d06d74..71445ab 100644 --- a/org/config_env.org +++ b/org/config_env.org @@ -24,19 +24,14 @@ #+HEADER: :tangle ../nixDevEnv.sh #+BEGIN_SRC sh -if [ -f .envrc-git-init ]; then - source_env_if_exists .envrc-git-init || source .envrc-git-init -fi -if [ -f .envrc-local ]; then - source_env_if_exists .envrc-local || source .envrc-local -fi -if [ -f .envrc-nix ]; then - source_env_if_exists .envrc-nix || source .envrc-nix +if [ -f .envrc ]; then + source_env_if_exists .envrc || source .envrc fi #+END_SRC ** envrc :envrc: +#+NAME: envrc #+HEADER: :tangle ../.envrc #+BEGIN_SRC sh if [ -f .envrc-git-init ]; then @@ -45,6 +40,9 @@ fi if [ -f .envrc-local ]; then source_env_if_exists .envrc-local || source .envrc-local fi +if [ -f .envrc-nix ]; then + source_env_if_exists .envrc-nix || source .envrc-nix +fi #+END_SRC ** .envrc-nix @@ -70,26 +68,44 @@ watch_file makefile watch_file nixDevEnv.sh watch_file .envrc-local watch_file .envrc-nix -nix_direnv_watch_file flake.nix -nix_direnv_watch_file shell.nix -nix_direnv_watch_file nixDevEnv.sh -nix_direnv_watch_file .envrc-local -nix_direnv_watch_file .envrc-nix -nix flake update -nix flake check -nix flake show -echo "" PATH_add result/bin use flake . #use flake .#default +echo " +- consider running: + ❯❯ nix flake show + ❯❯ nix flake update && nix flake check && nix flake show + +- for a dev shell: + ❯❯ nix develop + ❯❯ nix develop ".#" --print-build-logs -c zsh + +- to build project: + ❯❯ nix build ".#spine-nixpkgs-ldc" --print-build-logs + ❯❯ nix build ".#spine-overlay-ldc" --print-build-logs + - (see nix other/additional build options): + ❯❯ nix flake show +" #+END_SRC +*** 3.0.0 + #+NAME: direnv-version #+BEGIN_SRC sh -2.4.0 +3.0.0 #+END_SRC #+NAME: direnv-sha +#+BEGIN_SRC sh +sha256-21TMnI2xWX7HkSTjFFri2UaohXVj854mgvWapWrxRXg= +#+END_SRC + +*** 2.4.0 + +#+BEGIN_SRC sh +2.4.0 +#+END_SRC + #+BEGIN_SRC sh sha256-XQzUAvL6pysIJnRJyR7uVpmUSZfc7LSgWQwq/4mBr1U= #+END_SRC -- cgit v1.2.3