nixpkgs/pkgs/applications/video/openshot-qt/default.nix
Bjørn Forsman 3e6ce75b8f openshot-qt: 2.0.7 -> 2.1.0
Also update libopenshot (0.1.1 -> 0.1.2) and libopenshot-audio (0.1.1 ->
0.1.2). Both  libraries seem to be somewhat version coupled with
openshot (all three projects had a release at the same time).

Openshot now depends on ZMQ.

Test notes: the application runs, but I managed to crash it after doing
this:

* Import pictures and video
* Add two pictures to the timeline (next to each other)
* Drag the 2nd picture partly over over the first
  (creates an effect). App dies.

The last output from the app is:

  timeline_webview:INFO addTransition...
  Unhandled Python exception
  Aborted

The same crash happens with v2.0.7 though.
2016-10-02 22:19:16 +02:00

49 lines
1.4 KiB
Nix

{stdenv, fetchurl, fetchFromGitHub, callPackage, makeWrapper, doxygen
, ffmpeg, python3Packages, qt55}:
with stdenv.lib;
let
libopenshot = callPackage ./libopenshot.nix {};
in
stdenv.mkDerivation rec {
name = "openshot-qt-${version}";
version = "2.1.0";
src = fetchFromGitHub {
owner = "OpenShot";
repo = "openshot-qt";
rev = "v${version}";
sha256 = "1cyr5m1n6qcb9bzkhh3v6ka91a6x9c50dl5j0ilrc8vj0mb43g8c";
};
buildInputs = [doxygen python3Packages.python makeWrapper ffmpeg];
propagatedBuildInputs = [
qt55.qtbase
qt55.qtmultimedia
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 \
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${libopenshot}):$(toPythonPath ${python3Packages.pyqt5}):$(toPythonPath ${python3Packages.sip}):$(toPythonPath ${python3Packages.httplib2}):$(toPythonPath ${python3Packages.pyzmq}):$PYTHONPATH"
'';
doCheck = false;
meta = {
homepage = "http://openshot.org/";
description = "Free, open-source video editor";
license = licenses.gpl3Plus;
maintainers = [maintainers.tohl];
platforms = platforms.linux;
};
}