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;