feat: nixos module
build / build (push) Successful in 1m4s

This commit is contained in:
2026-04-18 20:12:20 -06:00
parent 7e6fb22d03
commit b239b416d0
6 changed files with 135 additions and 18 deletions
+12 -3
View File
@@ -5,7 +5,7 @@
, doerg-temml-worker
, ibm-plex-web
, test-emacs ? callPackage ./test-emacs.nix {}
, fake-git
, fake-git ? null
, our-tex
, makeWrapper
, writeText
@@ -33,7 +33,7 @@ let
];
doerg-config = writeText "doerg-extra-config.edn" ''
#:net.deertopia.doerg
#:net.deertopia.doerg.config
{:ibm-plex-web "${ibm-plex-web}"
:latex "${lib.getExe' our-tex "xelatex"}"
:dvisvgm "${lib.getExe' our-tex "dvisvgm"}"
@@ -43,7 +43,15 @@ let
in mkCljBin' {
name = "net.deertopia/doerg";
version = "0.1.0";
projectSrc = lib.cleanSource ./.;
projectSrc = lib.cleanSourceWith {
filter = path: type:
lib.sources.cleanSourceFilter path type
|| lib.hasSuffix ".nix" path;
src = ./.;
};
# lib.sources.sourceFilesBySuffices
# [".nix"]
# (lib.cleanSource ./.);
lockfile = ./deps-lock.json;
main-ns = "net.deertopia.doerg.main";
nativeBuildInputs = [
@@ -74,4 +82,5 @@ in mkCljBin' {
clojure -M:test
'';
passthru = { inherit plex our-tex test-emacs; };
meta.mainProgram = "doerg";
}