nix: scope crane src filter exception to qt_plugin_exports.txt only
This commit is contained in:
parent
6a0feebf98
commit
3fae09b2b6
1 changed files with 3 additions and 3 deletions
|
|
@ -37,14 +37,14 @@ let
|
||||||
# Args shared between the deps-only build (cached on Cargo.lock changes only)
|
# Args shared between the deps-only build (cached on Cargo.lock changes only)
|
||||||
# and the final crate build. cxx-qt-build runs during the deps build too, so it
|
# and the final crate build. cxx-qt-build runs during the deps build too, so it
|
||||||
# needs the Qt env to find qmltyperegistrar/qmlcachegen.
|
# needs the Qt env to find qmltyperegistrar/qmlcachegen.
|
||||||
# Default cleanCargoSource only keeps .rs/.toml/.lock; we also need
|
# Default cleanCargoSource only keeps .rs/.toml/.lock; also keep the linker
|
||||||
# qt_plugin_exports.txt (linker --dynamic-list file referenced by build.rs).
|
# --dynamic-list file referenced by build.rs.
|
||||||
pluginSrc = lib.cleanSourceWith {
|
pluginSrc = lib.cleanSourceWith {
|
||||||
src = ../plugin;
|
src = ../plugin;
|
||||||
name = "nova-plugin-source";
|
name = "nova-plugin-source";
|
||||||
filter =
|
filter =
|
||||||
path: type:
|
path: type:
|
||||||
(builtins.match ".*\\.txt$" path != null) || (craneLib.filterCargoSources path type);
|
(baseNameOf path == "qt_plugin_exports.txt") || (craneLib.filterCargoSources path type);
|
||||||
};
|
};
|
||||||
|
|
||||||
commonArgs = {
|
commonArgs = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue