From 096ebc9b53c29fca90bd1dd2a24743719129c7d8 Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Sun, 23 Apr 2023 19:11:26 -0500 Subject: [PATCH] Include JSONC file when building via Nix --- flake.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index b34a093..76c063f 100644 --- a/flake.nix +++ b/flake.nix @@ -39,7 +39,12 @@ inherit (pkgs) lib; craneLib = crane.lib.${system}; - src = craneLib.cleanCargoSource ./.; + src = pkgs.lib.cleanSourceWith { + src = craneLib.path ./.; # original, unfiltered source + filter = path: type: + (builtins.match ".*jsonc$" path != null) # include JSONC files + || (craneLib.filterCargoSources path type); + }; buildInputs = with pkgs; [ ffmpeg imagemagick pandoc poppler_utils ripgrep tesseract ]