openshot: use wrapQtAppsHook

See #65399
This commit is contained in:
Emmanuel Rosa 2019-08-03 11:40:54 +07:00 committed by worldofpeace
parent 19180dfd5b
commit f6b4c024cd

View File

@ -1,8 +1,8 @@
{ stdenv, fetchFromGitHub
{ stdenv, mkDerivationWith, fetchFromGitHub
, doxygen, python3Packages, libopenshot
, wrapGAppsHook, gtk3 }:
python3Packages.buildPythonApplication rec {
mkDerivationWith python3Packages.buildPythonApplication rec {
pname = "openshot-qt";
version = "2.4.4";
@ -19,12 +19,20 @@ python3Packages.buildPythonApplication rec {
propagatedBuildInputs = with python3Packages; [ libopenshot pyqt5_with_qtwebkit requests sip httplib2 pyzmq ];
dontWrapGApps = true;
dontWrapQtApps = true;
preConfigure = ''
# tries to create caching directories during install
export HOME=$(mktemp -d)
'';
postFixup = ''
wrapProgram $out/bin/openshot-qt \
"''${gappsWrapperArgs[@]}" \
"''${qtWrapperArgs[@]}"
'';
doCheck = false;
meta = with stdenv.lib; {