aboutsummaryrefslogtreecommitdiffhomepage
path: root/.envrc-local_
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-12-19 21:08:28 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2022-12-28 15:51:00 -0500
commit338915b9ef3827762fcbfa3a1143db3e883c7917 (patch)
tree59ba0960fc1907ee72861710a67e585ba06b9b21 /.envrc-local_
parenttrack markup modifications (from March) (diff)
nix flake, mostly things nix
Diffstat (limited to '.envrc-local_')
-rw-r--r--.envrc-local_34
1 files changed, 34 insertions, 0 deletions
diff --git a/.envrc-local_ b/.envrc-local_
new file mode 100644
index 0000000..af41175
--- /dev/null
+++ b/.envrc-local_
@@ -0,0 +1,34 @@
+# reload when these files change
+watch_file flake.lock
+#watch_file flake.nix
+nix flake update; nix flake check; nix flake show
+#use flake .#default
+PATH_add result/bin
+#path_add PATH result/bin
+#export NIX_PATH=/nix/var/nix/profiles/per-user/root/channels/nixos
+#export NIX_PATH=nixpkgs=/srv/nix/nixpkgs
+export DFLAGS="-O2 -inline -boundscheck=on -color=on"
+## load the flake devShell
+# eval "$(nix print-dev-env)"
+# echo $NIX_BUILD_TOP
+export Date=`date "+%Y%m%d"`
+export SpineDOC=.
+#export SpineSRC=
+export SpineBIN=result/bin
+#export SpineDOC=
+export SpinePOD=$SpineDOC/markup/pod
+export SpineOUT=/srv/www/spine
+export SpineDBpath=/srv/www/spine/sqlite
+#export SpineDBpath=/var/www/sqlite
+export SpineSearchActionLocal='http://localhost/spine_search'
+export SpineSearchActionRemote='https://sisudoc.org/spine_search'
+export SpineCGIform='spine_search'
+export SpineSQLdb='spine.search.db'
+#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
+echo "
+nix build -v .#default --print-build-logs
+nix run .#default --print-build-logs
+nix shell .#default --print-build-logs --command spine -v
+nix develop --build .#default --print-build-logs
+"