2017-03-29 10:47:30 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, doxygen, python3Packages, ffmpeg, libopenshot
|
|
|
|
, qtbase, qtmultimedia, makeQtWrapper }:
|
2016-07-17 16:39:15 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "openshot-qt-${version}";
|
2017-03-29 10:47:30 +01:00
|
|
|
version = "2.2.0";
|
2016-07-17 16:39:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "openshot-qt";
|
|
|
|
rev = "v${version}";
|
2017-03-29 10:47:30 +01:00
|
|
|
sha256 = "0dg4fkkci1rz49yrdd4fa1whv10c1pgm3cl4i49452ckqa7qg037";
|
2016-07-17 16:39:15 +01:00
|
|
|
};
|
2017-03-29 10:47:30 +01:00
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ python3Packages.python ffmpeg libopenshot qtbase qtmultimedia ];
|
2016-07-17 16:39:15 +01:00
|
|
|
|
2017-03-29 10:47:30 +01:00
|
|
|
nativeBuildInputs =
|
|
|
|
[ doxygen makeQtWrapper ];
|
2016-07-17 16:39:15 +01:00
|
|
|
|
|
|
|
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
|
2017-03-29 10:47:30 +01:00
|
|
|
wrapQtProgram $out/bin/openshot-qt \
|
2016-09-27 19:09:54 +01:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${libopenshot}):$(toPythonPath ${python3Packages.pyqt5}):$(toPythonPath ${python3Packages.sip}):$(toPythonPath ${python3Packages.httplib2}):$(toPythonPath ${python3Packages.pyzmq}):$PYTHONPATH"
|
2016-07-17 16:39:15 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
2017-03-29 10:47:30 +01:00
|
|
|
homepage = http://openshot.org/;
|
2016-07-17 16:39:15 +01:00
|
|
|
description = "Free, open-source video editor";
|
2017-03-29 10:47:30 +01:00
|
|
|
longDescription = ''
|
|
|
|
OpenShot Video Editor is a free, open-source video editor for Linux.
|
|
|
|
OpenShot can take your videos, photos, and music files and help you
|
|
|
|
create the film you have always dreamed of. Easily add sub-titles,
|
|
|
|
transitions, and effects, and then export your film to DVD, YouTube,
|
|
|
|
Vimeo, Xbox 360, and many other common formats.
|
|
|
|
'';
|
|
|
|
license = with licenses; gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = with platforms; linux;
|
2016-07-17 16:39:15 +01:00
|
|
|
};
|
|
|
|
}
|