aboutsummaryrefslogtreecommitdiffhomepage
path: root/org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2025-10-31 20:39:09 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2025-10-31 21:06:45 -0400
commitd244350b7591780e3509df095d58b37137bfbbe1 (patch)
tree409728bcde3199ac92e5cdc6deee743a558daef0 /org
parentenvrc minor, (including emacs syntax highlighting) (diff)
devenv to build spine & generate samplesHEADmain
Diffstat (limited to 'org')
-rw-r--r--org/config_env.org3
-rw-r--r--org/config_nix.org42
2 files changed, 43 insertions, 2 deletions
diff --git a/org/config_env.org b/org/config_env.org
index 4f21142..d1c0f3c 100644
--- a/org/config_env.org
+++ b/org/config_env.org
@@ -96,6 +96,9 @@ echo '
• nix develop using package overlays: (dmd-<<dmd_version>>, ldc-<<ldc_version>>, dub-<<dub_version>>, dtools-<<dtools_version>>)
❯❯ nix develop ".#dsh-overlay-dmd" --print-build-logs -c zsh
❯❯ nix develop ".#dsh-overlay-ldc" --print-build-logs -c zsh
+ • for more nix develop build spine & generate markup
+ ❯❯ nix develop ".#dsh-build-spine-generate-samples-env-defaults" --print-build-logs -c zsh
+ ❯❯ nix develop ".#dsh-build-spine-generate-samples-test" --print-build-logs -c zsh
• for more nix develop specialized shells
❯❯ nix flake show
diff --git a/org/config_nix.org b/org/config_nix.org
index a6d4360..47074e4 100644
--- a/org/config_nix.org
+++ b/org/config_nix.org
@@ -106,8 +106,6 @@
libxml2
html-tidy
xmlstarlet
- epubcheck
- ebook_tools
libxml2
html-tidy
xmlstarlet
@@ -184,6 +182,46 @@
];
inherit shellHook;
};
+ dsh-build-spine-generate-samples-env-defaults = mkShell {
+ name = "spine-<<spine_version>> dev shell test build spine and generate samples env defaults";
+ inherit shell;
+ inherit devEnv;
+ packages = [
+ nix
+ sqlite
+ #chromium
+ #calibre #(suite includes: ebook-viewer)
+ ];
+ shellHook = ''
+ export DFLAGS="-O2 -boundscheck=on"
+ ## set local values in .envrc-local (or here if you must)
+ nix build ".#spine-overlay-ldc" --print-build-logs
+ #$SpineBIN -v --source --pod --epub --html --html-link-curate --html-link-markup --curate --output=$SpineOUT $SpinePOD/*
+ $SpineBIN --very-verbose --sqlite-db-recreate --sqlite-db-filename=$SpineSQLdb --sqlite-db-path=./_tmp-db
+ $SpineBIN --very-verbose --source --pod --epub --html --html-link-curate --html-link-markup --sqlite-update --sqlite-db-filename=$SpineSQLdb --sqlite-db-path=./_tmp-db --curate --output=$SpineOUT $SpinePOD/*
+ echo "./result/bin/spine -v --source --pod --epub --html --html-link-curate --html-link-markup --curate --output=$SpineOUT $SpinePOD/*"
+ '';
+ };
+ dsh-build-spine-generate-samples-test = mkShell {
+ name = "spine-<<spine_version>> dev shell test build spine and generate samples test";
+ inherit shell;
+ inherit devEnv;
+ packages = [
+ nix
+ sqlite
+ #chromium
+ #calibre #(suite includes: ebook-viewer)
+ ];
+ shellHook = ''
+ export DFLAGS="-O2 -boundscheck=on"
+ ## set local values in .envrc-local (or here if you must)
+ nix build ".#spine-overlay-ldc" --print-build-logs
+ #./result/bin/spine -v --source --pod --epub --html --html-link-curate --html-link-markup --curate --output=./OUTPUT_TEST_sisudocSpine ./markup/pod-samples/pod/*
+ ./result/bin/spine --very-verbose --sqlite-db-recreate --sqlite-db-filename=spine.search.db --sqlite-db-path=./_tmp-db
+ ./result/bin/spine --very-verbose --source --pod --epub --html --html-link-curate --html-link-markup --sqlite-update --sqlite-db-filename=spine.search.db --sqlite-db-path=./_tmp-db --curate --output=./OUTPUT_TEST_sisudocSpine ./markup/pod-samples/pod/*
+ echo "./result/bin/spine -v --source --pod --epub --html --html-link-curate --html-link-markup --curate --output=./OUTPUT_TEST_sisudocSpine ./markup/pod-samples/pod/*"
+ '';
+ };
default = import ./shell.nix {inherit pkgs;};
});
};