From 338915b9ef3827762fcbfa3a1143db3e883c7917 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 19 Dec 2022 21:08:28 -0500 Subject: nix flake, mostly things nix --- .envrc-local_ | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .envrc-local_ (limited to '.envrc-local_') 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 +" -- cgit v1.2.3