aboutsummaryrefslogtreecommitdiffhomepage
path: root/.envrc-local_
diff options
context:
space:
mode:
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
+"