aboutsummaryrefslogtreecommitdiffhomepage
path: root/.envrc-local_
blob: af411753cce3c2faf8df058a2bc5905cc801b624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
"