refactor: rename doerg-tex → doerg-temml-worker
This commit is contained in:
1
doerg/doerg-temml-worker/README.org
Normal file
1
doerg/doerg-temml-worker/README.org
Normal file
@@ -0,0 +1 @@
|
||||
#+title: doerg-temml-worker
|
||||
@@ -6,7 +6,7 @@
|
||||
}:
|
||||
|
||||
buildNpmPackage {
|
||||
pname = "doerg-tex";
|
||||
pname = "doerg-temml-worker";
|
||||
version = "0.1.0";
|
||||
src = ./.;
|
||||
npmDeps = importNpmLock { npmRoot = ./.; };
|
||||
@@ -1,6 +1,6 @@
|
||||
{"dependencies":{"temml":"^0.13.1"
|
||||
,"command-line-args":"^6.0.1"
|
||||
,"cbor-x":"^1.6.0"}
|
||||
,"name":"doerg-tex"
|
||||
,"name":"doerg-temml-worker"
|
||||
,"version":"0.1.0"
|
||||
,"bin":{"doerg-tex":"index.js"}}
|
||||
,"bin":{"doerg-temml-worker":"index.js"}}
|
||||
@@ -1 +0,0 @@
|
||||
#+title: doerg-tex
|
||||
@@ -2,7 +2,7 @@
|
||||
, callPackage
|
||||
, lib
|
||||
, doerg-parser
|
||||
, doerg-tex
|
||||
, doerg-temml-worker
|
||||
, ibm-plex-web
|
||||
, fake-git
|
||||
, our-tex ? callPackage ./our-tex.nix {}
|
||||
@@ -27,7 +27,7 @@ let
|
||||
bin-path = lib.makeBinPath [
|
||||
doerg-parser
|
||||
our-tex
|
||||
doerg-tex
|
||||
doerg-temml-worker
|
||||
];
|
||||
in mkCljBin' {
|
||||
name = "net.deertopia/doerg";
|
||||
@@ -42,13 +42,13 @@ in mkCljBin' {
|
||||
];
|
||||
buildInputs = [
|
||||
doerg-parser
|
||||
doerg-tex
|
||||
doerg-temml-worker
|
||||
plex
|
||||
our-tex
|
||||
];
|
||||
nativeCheckInputs = [
|
||||
doerg-parser
|
||||
doerg-tex
|
||||
doerg-temml-worker
|
||||
plex
|
||||
our-tex
|
||||
];
|
||||
@@ -60,9 +60,4 @@ in mkCljBin' {
|
||||
wrapProgram $out/bin/doerg \
|
||||
--prefix PATH : ${bin-path}
|
||||
'';
|
||||
# installPhase= ''
|
||||
# runHook preInstall
|
||||
# exit 1
|
||||
# runHook postInstall
|
||||
# '';
|
||||
}
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
(fs/split-paths (System/getenv "XDG_DATA_DIRS")))))
|
||||
::latex "xelatex"
|
||||
::dvisvgm "dvisvgm"
|
||||
;; TODO: Can we automatically set this to "./doerg-tex/index.js" in
|
||||
;; TODO: Can we automatically set this to "./doerg-temml-worker/index.js" in
|
||||
;; a development environment?
|
||||
::doerg-tex "doerg-tex"})
|
||||
::doerg-temml-worker "doerg-temml-worker"})
|
||||
|
||||
(def ^:dynamic *cfg* default)
|
||||
|
||||
@@ -32,4 +32,4 @@
|
||||
|
||||
(s/def ::dvisvgm ::file)
|
||||
|
||||
(s/def ::doerg-tex ::file)
|
||||
(s/def ::doerg-temml-worker ::file)
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
(def ^:dynamic *worker*)
|
||||
|
||||
(defn worker [& {:keys [preamble]}]
|
||||
(let [doerg-tex (::cfg/doerg-tex cfg/*cfg*)]
|
||||
(let [doerg-temml-worker (::cfg/doerg-temml-worker cfg/*cfg*)]
|
||||
(p/process
|
||||
{:shutdown p/destroy-tree
|
||||
:err (l/log-stream :info "temml/err")}
|
||||
doerg-tex
|
||||
doerg-temml-worker
|
||||
"--preamble"
|
||||
"resources/net/deertopia/doerg/prelude.tex")))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user