From c575bcb62f6df0fe27c0e5e06403301edff572b7 Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 27 Mar 2024 23:21:30 +0100 Subject: [PATCH] Filter source for cletex2 package --- flake.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 9d46e2d..0c484a9 100644 --- a/flake.nix +++ b/flake.nix @@ -14,7 +14,14 @@ outputs = [ "out" "tex" ]; - src = ./.; + # Only include files that are required for the LaTeX + # package so we avoid unnecassary TeX env rebuilds on + # changing other parts of the repo like the Nix + # infrastructure + src = pkgs.lib.sources.sourceByRegex ./. [ + "^build.lua$" + "^tex/.*$" + ]; nativeBuildInputs = with pkgs; [ (texlive.withPackages (ps: with ps; [ l3build ]))