Compare commits
2 commits
d2708087be
...
3fae09b2b6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3fae09b2b6 | ||
|
|
6a0feebf98 |
1 changed files with 11 additions and 1 deletions
|
|
@ -37,10 +37,20 @@ 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; 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 = {
|
commonArgs = {
|
||||||
pname = "nova-plugin";
|
pname = "nova-plugin";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
src = craneLib.cleanCargoSource ../plugin;
|
src = pluginSrc;
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue