fix: nix stuff and config

This commit is contained in:
2026-02-28 20:26:55 -07:00
parent 01d88bb30d
commit 7aa6e02b9e
11 changed files with 304 additions and 37 deletions

View File

@@ -1,8 +1,13 @@
{ mkCljBin
, callPackage
, lib
, doerg-parser
, doerg-tex
, ibm-plex-web
, fake-git
, our-tex ? callPackage ./our-tex.nix {}
, makeWrapper
, breakpointHook
}:
let
@@ -19,6 +24,11 @@ let
plex = ibm-plex-web.override {
families = [ "math" "serif" "sans" "sans-kr" ];
};
bin-path = lib.makeBinPath [
doerg-parser
our-tex
doerg-tex
];
in mkCljBin' {
name = "net.deertopia/doerg";
version = "0.1.0";
@@ -27,9 +37,32 @@ in mkCljBin' {
main-ns = "net.deertopia.doerg.main";
nativeBuildInputs = [
plex
makeWrapper
breakpointHook
];
buildInputs = [
doerg-parser
doerg-tex
plex
our-tex
];
nativeCheckInputs = [
doerg-parser
doerg-tex
plex
our-tex
];
doCheck = true;
checkPhase = ''
clojure -M:test
'';
postInstall = ''
wrapProgram $out/bin/doerg \
--prefix PATH : ${bin-path}
'';
# installPhase= ''
# runHook preInstall
# exit 1
# runHook postInstall
# '';
}