openshot-qt: 2.2.0 -> 2.3.1 (#24868)

* openshot-qt: 2.2.0 -> 2.3.1

* openshot-qt: use buildPythonApplication

* openshot: get dialogs in gtk environments working
This commit is contained in:
Patrick Callahan 2017-04-16 12:09:22 -07:00 committed by Jörg Thalheim
parent 73a21ae6c9
commit e760c7bd6a
2 changed files with 17 additions and 23 deletions

View file

@ -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 = ''

View file

@ -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 = ''