nix: extend crane src filter to keep qt_plugin_exports.txt

This commit is contained in:
Damocles 2026-05-03 22:52:59 +02:00
parent d2708087be
commit 6a0feebf98

View file

@ -37,10 +37,20 @@ let
# 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
# needs the Qt env to find qmltyperegistrar/qmlcachegen.
# Default cleanCargoSource only keeps .rs/.toml/.lock; we also need
# qt_plugin_exports.txt (linker --dynamic-list file referenced by build.rs).
pluginSrc = lib.cleanSourceWith {
src = ../plugin;
name = "nova-plugin-source";
filter =
path: type:
(builtins.match ".*\\.txt$" path != null) || (craneLib.filterCargoSources path type);
};
commonArgs = {
pname = "nova-plugin";
version = "0.1.0";
src = craneLib.cleanCargoSource ../plugin;
src = pluginSrc;
strictDeps = true;
nativeBuildInputs = [