onedrivegui: add qt wrapping (#364207)

authored by Aleksana and committed by GitHub 5a79b2d2 52969701

+9
+9
pkgs/by-name/on/onedrivegui/package.nix
··· 1 1 { 2 2 lib, 3 3 python3Packages, 4 + qt6, 4 5 fetchFromGitHub, 5 6 writeText, 6 7 copyDesktopItems, ··· 37 38 38 39 nativeBuildInputs = [ 39 40 copyDesktopItems 41 + qt6.wrapQtAppsHook 40 42 makeWrapper 41 43 ]; 42 44 45 + buildInputs = [ 46 + qt6.qtbase 47 + qt6.qtwayland 48 + ]; 49 + 43 50 propagatedBuildInputs = with python3Packages; [ 44 51 pyside6 45 52 requests ··· 47 54 48 55 # wrap manually to avoid having a bash script in $out/bin with a .py extension 49 56 dontWrapPythonPrograms = true; 57 + dontWrapQtApps = true; 50 58 51 59 doCheck = false; # No tests defined 52 60 pythonImportsCheck = [ "OneDriveGUI" ]; ··· 79 87 rm -r $out/bin/* 80 88 81 89 makeWrapper ${python3Packages.python.interpreter} $out/bin/onedrivegui \ 90 + ''${qtWrapperArgs[@]} \ 82 91 --prefix PATH : ${lib.makeBinPath [ onedrive ]} \ 83 92 --prefix PYTHONPATH : ${ 84 93 python3Packages.makePythonPath (propagatedBuildInputs ++ [ (placeholder "out") ])