diff --git a/flake.nix b/flake.nix index 2490b0a..fe582e4 100644 --- a/flake.nix +++ b/flake.nix @@ -107,7 +107,6 @@ openssl lua54Packages.lua ]; - cargo_toml = craneLib.cleanCargoToml {cargoToml = ./Cargo.toml;}; pname = cargo_toml.package.name; @@ -115,7 +114,15 @@ craneBuild = craneLib.buildPackage { inherit nativeBuildInputs buildInputs; - src = craneLib.cleanCargoSource ./.; + src = let + trixyFilter = path: _type: builtins.match ".*tri$" path != null; + markdownOrCargo = path: type: + (trixyFilter path type) || (craneLib.filterCargoSources path type); + in + pkgs.lib.cleanSourceWith { + src = craneLib.path ./.; + filter = markdownOrCargo; + }; doCheck = true; };