From 84c6bf6777aaab66a60d8e3d2cb3dc5fba598aa2 Mon Sep 17 00:00:00 2001 From: Tom Oostveen Date: Fri, 10 Jul 2026 20:07:34 +0200 Subject: [PATCH] slint-viewer: add required runtime dependencies --- pkgs/by-name/sl/slint-viewer/package.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkgs/by-name/sl/slint-viewer/package.nix b/pkgs/by-name/sl/slint-viewer/package.nix index a9a19355bdc4..7b4a4940d7ad 100644 --- a/pkgs/by-name/sl/slint-viewer/package.nix +++ b/pkgs/by-name/sl/slint-viewer/package.nix @@ -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;