Skip to content

Commit

Permalink
feat: Update flake.nix to not account for all files
Browse files Browse the repository at this point in the history
  • Loading branch information
uttarayan21 committed Sep 5, 2024
1 parent 7d4f8c6 commit fc536ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@
};
craneLib = (crane.mkLib pkgs).overrideToolchain stableToolchain;
craneLibLLvmTools = (crane.mkLib pkgs).overrideToolchain stableToolchainWithLLvmTools;
src = ./.;

mnnFilters = path: type: (craneLib.filterCargoSources path type) || (lib.hasSuffix ".patch" path || lib.hasSuffix ".mnn" path || lib.hasSuffix ".h" path || lib.hasSuffix ".cpp" path);
src = lib.cleanSourceWith {
filter = mnnFilters;
src = ./.;
};
MNN_SRC = pkgs.fetchFromGitHub {
owner = "alibaba";
repo = "MNN";
Expand Down

0 comments on commit fc536ee

Please sign in to comment.