diff --git a/nix/plugin.nix b/nix/plugin.nix index 9483077..0dd39e6 100644 --- a/nix/plugin.nix +++ b/nix/plugin.nix @@ -37,20 +37,10 @@ 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; also keep the linker - # --dynamic-list file referenced by build.rs. - pluginSrc = lib.cleanSourceWith { - src = ../plugin; - name = "nova-plugin-source"; - filter = - path: type: - (baseNameOf path == "qt_plugin_exports.txt") || (craneLib.filterCargoSources path type); - }; - commonArgs = { pname = "nova-plugin"; version = "0.1.0"; - src = pluginSrc; + src = craneLib.cleanCargoSource ../plugin; strictDeps = true; nativeBuildInputs = [