diff --git a/pkgs/applications/video/openshot-qt/default.nix b/pkgs/applications/video/openshot-qt/default.nix index 3232e9c089b..656ec1163dc 100644 --- a/pkgs/applications/video/openshot-qt/default.nix +++ b/pkgs/applications/video/openshot-qt/default.nix @@ -1,39 +1,33 @@ { stdenv, fetchFromGitHub -, doxygen, python3Packages, ffmpeg, libopenshot -, qtbase, qtmultimedia, makeQtWrapper }: +, doxygen, python3Packages, libopenshot +, makeQtWrapper, wrapGAppsHook, gtk3 }: -with stdenv.lib; -stdenv.mkDerivation rec { +python3Packages.buildPythonApplication rec { name = "openshot-qt-${version}"; - version = "2.2.0"; + version = "2.3.1"; src = fetchFromGitHub { owner = "OpenShot"; repo = "openshot-qt"; rev = "v${version}"; - sha256 = "0dg4fkkci1rz49yrdd4fa1whv10c1pgm3cl4i49452ckqa7qg037"; + sha256 = "10j3p10q66m9nhzcd8315q1yiqscidkjbm474mllw7c281vacvzw"; }; - - buildInputs = - [ python3Packages.python ffmpeg libopenshot qtbase qtmultimedia ]; - nativeBuildInputs = - [ doxygen makeQtWrapper ]; + nativeBuildInputs = [ doxygen wrapGAppsHook ]; - installPhase = '' - mkdir -p $(toPythonPath $out) - cp -r src/* $(toPythonPath $out) - mkdir -p $out/bin - echo "#/usr/bin/env sh" >$out/bin/openshot-qt - echo "exec ${python3Packages.python.interpreter} $(toPythonPath $out)/launch.py" >>$out/bin/openshot-qt - chmod +x $out/bin/openshot-qt - wrapQtProgram $out/bin/openshot-qt \ - --prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${libopenshot}):$(toPythonPath ${python3Packages.pyqt5}):$(toPythonPath ${python3Packages.sip}):$(toPythonPath ${python3Packages.httplib2}):$(toPythonPath ${python3Packages.pyzmq}):$PYTHONPATH" + buildInputs = [ gtk3 ]; + + propagatedBuildInputs = with python3Packages; [ libopenshot pyqt5 sip httplib2 pyzmq ]; + + + preConfigure = '' + # tries to create caching directories during install + export HOME=$(mktemp -d) ''; doCheck = false; - meta = { + meta = with stdenv.lib; { homepage = http://openshot.org/; description = "Free, open-source video editor"; longDescription = '' diff --git a/pkgs/applications/video/openshot-qt/libopenshot.nix b/pkgs/applications/video/openshot-qt/libopenshot.nix index dd141043169..b45460c426c 100644 --- a/pkgs/applications/video/openshot-qt/libopenshot.nix +++ b/pkgs/applications/video/openshot-qt/libopenshot.nix @@ -8,13 +8,13 @@ with stdenv.lib; stdenv.mkDerivation rec { name = "libopenshot-${version}"; - version = "0.1.3"; + version = "0.1.4"; src = fetchFromGitHub { owner = "OpenShot"; repo = "libopenshot"; rev = "v${version}"; - sha256 = "0slszl6w96rhxhi6agw85dc4gmpab2qw03mq32g4qrirz68anz6f"; + sha256 = "1mqci103kn4l7w8i9kqzi705kxn4q596vw0sh05r1w5nbyjwcyp6"; }; patchPhase = ''