From 594122acc6ee5766c21098591a7998c76ff80bf2 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 17 May 2024 22:48:20 -0400 Subject: nix flake and envrc-nix minor --- org/config_env.org | 42 +++++++++++++----------------------------- 1 file changed, 13 insertions(+), 29 deletions(-) (limited to 'org/config_env.org') diff --git a/org/config_env.org b/org/config_env.org index 112830b..c534640 100644 --- a/org/config_env.org +++ b/org/config_env.org @@ -91,7 +91,7 @@ echo ' ❯❯ nix build --print-build-logs ❯❯ nix build ".#" --print-build-logs -- to build project (for build dependencies select appropriate dev env & build): +- to build project: ❯❯ nix build ".#spine-nixpkgs-dmd" --print-build-logs ❯❯ nix build ".#spine-overlay-dmd" --print-build-logs ❯❯ nix build ".#spine-nixpkgs-ldc" --print-build-logs @@ -105,11 +105,22 @@ echo ' ❯❯ nix develop ".#dsh-nixpkgs-ldc-dub" --print-build-logs -c zsh ❯❯ dub --verbose --compiler=ldmd2 --config=ldmd2 - - for develop environment & build options +- for develop environment & build options ❯❯ nix flake update && nix flake check && nix flake show ❯❯ nix flake show + +- if on nix: build the sisudoc-spine using nix build commands above and + run the result against the sample files here in the sisudoc-spine-samples dir + (assuming the appropriate paths have been set in your .envrc-local) + + ❯❯ ${SpineBIN} -v --source --pod --epub --html --html-link-curate --html-link-markup --curate --output=${SpineOUT} ${SpinePOD}/* + ❯❯ ${SpineBIN} -v --source --pod --latex --latex-init --epub --html --html-link-pdf --html-link-curate --html-link-markup --curate --output=${SpineOUT} ${SpinePOD}/* ' +echo "- + ❯❯ ${SpineBIN} -v --source --pod --epub --html --html-link-curate --html-link-markup --curate --output=${SpineOUT} ${SpinePOD}/* + ❯❯ ${SpineBIN} -v --source --pod --latex --latex-init --epub --html --html-link-pdf --html-link-curate --html-link-markup --curate --output=${SpineOUT} ${SpinePOD}/* +" #+END_SRC *** 3.0.4 @@ -211,30 +222,3 @@ export SpineCGIbin=/var/www/cgi/cgi-bin export SpineDBpath=/var/www/sqlite #export SpineDBpath=/srv/www/spine/sqlite #+END_SRC - -#+HEADER: :tangle-NO ../.envrc-local -#+HEADER: :noweb yes -#+BEGIN_SRC sh -if [[ ! -d ./.git ]]; then - git init - git add . -fi -echo ' - .envrc-local echo ❯❯ - - ❯❯ nix flake update && nix flake check --show-trace && nix flake show && nix develop ".#devShell" -c $SHELL - - ❯❯ nix develop - ❯❯ nix develop -c $SHELL - ❯❯ nix develop ".#dsh-overlay-ldc" --print-build-logs - - ❯❯ nix build - ❯❯ nix build ".#default" --print-build-logs -' -#+END_SRC - -#+BEGIN_SRC sh -#export NIX_PATH=/nix/var/nix/profiles/per-user/root/channels/nixos -#export NIX_PATH=/srv/nix/nixpkgs -#export NIX_PATH=nixpkgs=/srv/nix/nixpkgs -#+END_SRC -- cgit v1.2.3