commit f22237a3b37ed756ca152f096cbc508e6a364246
parent 9dc0f2558761a5fe419608e044c9b62bac233f05
Author: Daniel Barlow <dan@telent.net>
Date: Mon, 10 Mar 2025 23:08:37 +0000
doc: filter src attribute to not rebuild as much
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/ci.nix b/ci.nix
@@ -56,7 +56,12 @@ let
fennel
luaPackages.lyaml
];
- src = ./.;
+
+ src = pkgs.lib.sources.sourceFilesBySuffices
+ (pkgs.lib.cleanSource ./. ) [
+ ".nix" ".rst" "Makefile" ".svg" ".fnl" ".py"
+ ];
+
buildPhase = ''
cat ${json} | fennel --correlate doc/parse-options.fnl > doc/modules-generated.inc.rst
cat ${json} | fennel --correlate doc/parse-options-outputs.fnl > doc/outputs-generated.inc.rst