slint-viewer: add required runtime dependencies

This commit is contained in:
Tom Oostveen
2026-07-10 20:42:15 +02:00
parent 00a386be6f
commit 84c6bf6777
+18
View File
@@ -1,13 +1,20 @@
{
lib,
stdenv,
rustPlatform,
fetchCrate,
fontconfig,
libGL,
libx11,
libxcursor,
libxi,
libxkbcommon,
pkg-config,
qt6,
wayland,
autoPatchelfHook,
nix-update-script,
versionCheckHook,
}:
@@ -30,10 +37,21 @@ rustPlatform.buildRustPackage (finalAttrs: {
];
nativeBuildInputs = [
autoPatchelfHook
pkg-config
qt6.wrapQtAppsHook
];
# stolen from the surfer package
runtimeDependencies = lib.optionals stdenv.hostPlatform.isLinux [
libGL
libx11
libxcursor
libxi
libxkbcommon
wayland
];
# There are no tests
doCheck = false;
doInstallCheck = true;