2016-07-17 16:39:15 +01:00
|
|
|
{stdenv, fetchurl, fetchFromGitHub, callPackage, makeWrapper, doxygen
|
2017-03-24 20:12:06 +00:00
|
|
|
, ffmpeg, python3Packages, libopenshot, qtbase, qtmultimedia }:
|
2016-07-17 16:39:15 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "openshot-qt-${version}";
|
2016-09-27 19:09:54 +01:00
|
|
|
version = "2.1.0";
|
2016-07-17 16:39:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "openshot-qt";
|
|
|
|
rev = "v${version}";
|
2016-09-27 19:09:54 +01:00
|
|
|
sha256 = "1cyr5m1n6qcb9bzkhh3v6ka91a6x9c50dl5j0ilrc8vj0mb43g8c";
|
2016-07-17 16:39:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [doxygen python3Packages.python makeWrapper ffmpeg];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2017-03-24 20:12:06 +00:00
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
2016-07-17 16:39:15 +01:00
|
|
|
libopenshot
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
wrapProgram $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 = {
|
|
|
|
homepage = "http://openshot.org/";
|
|
|
|
description = "Free, open-source video editor";
|
|
|
|
license = licenses.gpl3Plus;
|
2017-03-05 19:47:24 +00:00
|
|
|
maintainers = [];
|
2016-07-17 16:39:15 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|