onedrivegui: add qt wrapping (#364207)

authored by Aleksana and committed by GitHub 5a79b2d2 52969701

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