diff options
Diffstat (limited to 'org/config_nix.org')
| -rw-r--r-- | org/config_nix.org | 42 | 
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;};        });    };  | 
