Include JSONC file when building via Nix

pull/164/head
Joseph LaFreniere 1 year ago
parent 5fa777605d
commit 096ebc9b53
No known key found for this signature in database
GPG Key ID: EE236AA0141EFCA3

@ -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 ]

Loading…
Cancel
Save