Fix flake: include .txt data files and assets/ for GUI build
Build Debug APK / build (push) Failing after 1m46s
Build Debug APK / build (push) Failing after 1m46s
This commit is contained in:
@@ -48,12 +48,14 @@
|
||||
|
||||
craneLib = (crane.mkLib pkgs).overrideToolchain rustToolchain;
|
||||
|
||||
# Source filtering — include Cargo sources and .slint UI files
|
||||
# Source filtering — include Cargo sources, .slint UI files, and
|
||||
# data files referenced by include_str!() / include_bytes!()
|
||||
rustSrc = pkgs.lib.cleanSourceWith {
|
||||
src = ./rust;
|
||||
filter = path: type:
|
||||
(craneLib.filterCargoSources path type)
|
||||
|| (builtins.match ".*\\.slint$" path != null);
|
||||
|| (builtins.match ".*\\.slint$" path != null)
|
||||
|| (builtins.match ".*\\.txt$" path != null);
|
||||
};
|
||||
|
||||
# Common arguments shared across all builds
|
||||
@@ -98,6 +100,13 @@
|
||||
pkgs.libGL
|
||||
];
|
||||
|
||||
# Slint UI files reference ../../../assets/ (relative to gui-app/ui/).
|
||||
# Place the repo's assets/ dir where that relative path resolves.
|
||||
preBuild = ''
|
||||
mkdir -p ../assets
|
||||
cp -r ${./assets}/* ../assets/
|
||||
'';
|
||||
|
||||
# Slint needs to find wayland/X11 libs at runtime
|
||||
postFixup = pkgs.lib.optionalString pkgs.stdenv.isLinux ''
|
||||
patchelf --add-rpath ${pkgs.lib.makeLibraryPath [
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
/nix/store/ml48kx0dl3jqiiqbqdwldgpck4x22cz5-synchronicity-0.1.0
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/nix/store/h4q78cs0gvcknn1ijjb1d6735kq7wrsm-synchronicity-0.1.0
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/nix/store/6bmgfsay5rhwygzy8bri5zk718hgnrkv-synchronicity-0.1.0
|
||||
Reference in New Issue
Block a user