From f4a280dc6a869c540975b697f614c5172007d7a2 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 13 May 2024 15:47:09 -0400 Subject: nix flake and envrc related --- .envrc-nix | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to '.envrc-nix') diff --git a/.envrc-nix b/.envrc-nix index ce9a79d..7201c78 100644 --- a/.envrc-nix +++ b/.envrc-nix @@ -20,7 +20,8 @@ echo ' ❯❯ nix flake show ❯❯ nix flake update && nix flake check && nix flake show -- for a dev shell: +- for a dev shell (development environment): + ❯❯ nix develop ❯❯ nix develop ".#" --print-build-logs -c zsh ❯❯ nix develop ".#dsh" --print-build-logs -c zsh @@ -33,15 +34,33 @@ echo ' ❯❯ nix develop ".#dsh-sqlite" --print-build-logs -c zsh - to build project: + ❯❯ nix build --print-build-logs ❯❯ nix build ".#" --print-build-logs + +- 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 ❯❯ nix build ".#spine-overlay-ldc" --print-build-logs - - (see nix other/additional build options): - ❯❯ nix flake show - ❯❯ nix flake update && nix flake check --show-trace && nix flake show && nix develop ".#devShell" -c zsh - ❯❯ dub build --compiler=ldmd --build=release --combined --skip-registry=all +- to build using dub (on nix or otherwise): + + you need to be in sisudoc-spine to use source code tree directly. + +- 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}/* +" -- cgit v1.2.3