aboutsummaryrefslogtreecommitdiffhomepage
path: root/.envrc-local_
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-12-08 20:28:06 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2022-12-23 18:17:24 -0500
commit684091e7e5c958561d4c0d7bd6c77f9a5efa80c3 (patch)
tree7b1d104632da28a7156b6d8446259389bac06b60 /.envrc-local_
parentspine-search-cgi separate commits, remove sundry (diff)
gitignore & things nix
Diffstat (limited to '.envrc-local_')
-rw-r--r--.envrc-local_30
1 files changed, 30 insertions, 0 deletions
diff --git a/.envrc-local_ b/.envrc-local_
new file mode 100644
index 0000000..1c0fa63
--- /dev/null
+++ b/.envrc-local_
@@ -0,0 +1,30 @@
+echo ".envrc called .envrc-local"
+PATH_add result/bin
+export NIX_PATH=/nix/var/nix/profiles/per-user/root/channels/nixos
+#export NIX_PATH=nixpkgs=/nixpkgs/nixpkgs
+#export NIX_PATH=/nixpkgs/nixpkgs
+export DFLAGS="-O2 -inline -boundscheck=on -color=on"
+# reload when these files change
+# watch_file flake.nix
+# watch_file flake.lock
+## load the flake devShell
+# eval "$(nix print-dev-env)"
+# echo $NIX_BUILD_TOP
+export Date=`date "+%Y%m%d"`
+export SpineVER=$(git describe --long --tags | sed 's/^[ a-z_-]\+\([0-9.]\+\)/\1/;s/\([^-]*-g\)/r\1/;s/-/./g')
+export SpinePROJ=~/grotto/repo/git.repo/projects/project-spine/doc-reform
+export SpineSRC=$SpinePROJ/src
+export SpineBIN=$SpinePROJ/result/bin
+export SpineDOC=~/grotto/repo/git.repo/projects/project-spine/doc-reform-markup/spine-markup-samples
+export SpinePOD=$SpineDOC/markup/pod
+export SpineOUTversioned=/srv/www/spine/$SpineVER
+export SpineOUT=/srv/www/spine
+export SpineDBpath=/var/www/sqlite
+#export SpineDBpath=/srv/www/spine/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_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