fix(flake.nix): Don't remove the `.tri` api spec file when building
This commit is contained in:
parent
4fcdc1c8ea
commit
6a10974efb
11
flake.nix
11
flake.nix
|
@ -107,7 +107,6 @@
|
||||||
openssl
|
openssl
|
||||||
lua54Packages.lua
|
lua54Packages.lua
|
||||||
];
|
];
|
||||||
|
|
||||||
cargo_toml = craneLib.cleanCargoToml {cargoToml = ./Cargo.toml;};
|
cargo_toml = craneLib.cleanCargoToml {cargoToml = ./Cargo.toml;};
|
||||||
pname = cargo_toml.package.name;
|
pname = cargo_toml.package.name;
|
||||||
|
|
||||||
|
@ -115,7 +114,15 @@
|
||||||
craneBuild = craneLib.buildPackage {
|
craneBuild = craneLib.buildPackage {
|
||||||
inherit nativeBuildInputs buildInputs;
|
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;
|
doCheck = true;
|
||||||
};
|
};
|
||||||
|
|
Reference in New Issue