aboutsummaryrefslogtreecommitdiffhomepage
path: root/.envrc-nix
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2024-05-13 15:47:09 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2024-05-13 18:17:03 -0400
commitf4a280dc6a869c540975b697f614c5172007d7a2 (patch)
tree7f8568a66b662eec555b43b466a92a4c186ef500 /.envrc-nix
parentset nixVersions.nix_2_21 (diff)
nix flake and envrc related
Diffstat (limited to '.envrc-nix')
-rw-r--r--.envrc-nix29
1 files changed, 24 insertions, 5 deletions
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}/*
+"