aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/config_nix.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/config_nix.org
parentenvrc minor, (including emacs syntax highlighting) (diff)
devenv to build spine & generate samplesHEADmain
Diffstat (limited to 'org/config_nix.org')
-rw-r--r--org/config_nix.org42
1 files changed, 40 insertions, 2 deletions
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;};
});
};