aboutsummaryrefslogtreecommitdiffhomepage
path: root/.env
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-07-31 15:44:56 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2022-08-03 19:18:15 -0400
commit934b830f804c1acae1e5f2f55207a1f428244f1f (patch)
tree8b55d1cbc25cbaf59e2ac94db51c809b9f1cc1ab /.env
parentocn metaverse, rearrange (diff)
org nix adjust
Diffstat (limited to '.env')
-rw-r--r--.env/echo-nixNote13
-rw-r--r--.env/local_2
2 files changed, 12 insertions, 3 deletions
diff --git a/.env/echo-nixNote b/.env/echo-nixNote
index 6ddfe58..98449bb 100644
--- a/.env/echo-nixNote
+++ b/.env/echo-nixNote
@@ -13,16 +13,23 @@ echo '
#+BEGIN_SRC sh
nix-shell --pure
-nix-build
-nix build -f default.nix
-nix shell -f default.nix
+nix build -f default.nix --print-build-logs
+nix shell -f default.nix --print-build-logs
+nix develop --build -f derivation.nix -I .envrc --print-build-logs
+
nix-instantiate | nix-build
+
+nix-instantiate -I .envrc | nix-build -I .envrc
nix build `nix-instantiate`
+nix build `nix-instantiate -I .envrc`
nix develop
nix-instantiate | nix show-derivation | jq
+nix-instantiate -I .envrc | nix show-derivation -f derivation.nix -I .envrc | jq
+
nix-instantiate | nix show-derivation --recursive | jq
+nix-instantiate -I .envrc | nix show-derivation -f derivation.nix --recursive -I .envrc | jq
nix search --json 2>/dev/null |jq
#+END_SRC
diff --git a/.env/local_ b/.env/local_
index f3036c9..10216c8 100644
--- a/.env/local_
+++ b/.env/local_
@@ -1,3 +1,4 @@
+echo ".envrc called .env/local"
export NIX_PATH=/nix/var/nix/profiles/per-user/root/channels/nixos
#export NIX_PATH=/nixpkgs-ra/nixpkgs
export DFLAGS="-O2 -inline"
@@ -23,6 +24,7 @@ export SpineCGIform='spine_search'
export SpineSQLdb='spine.search.db'
export PROG_VER_GIT="`git describe --long --tags | sed -e 's/^[ a-z_-]\+\([0-9.]\+\)/\1/;s/\([^-]*-g\)/r\1/;s/-/./g'`"
export PROG_VER_DECLARED="`cat ./views/version.txt | grep --color=never "enum" | sed 's/.\+(\([0-9]\+\),[ \t]\+\([0-9]\+\),[ \t]\+\([0-9]\+\)[ \t]*).\+/\1.\2.\3/g'`"
+direnv allow
if [ -e .env/echo-nixNote ]; then
source .env/echo-nixNote