nixpkgs-suyu/pkgs/applications/video/openshot-qt/default.nix

53 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, mkDerivationWith, fetchFromGitHub, fetchpatch
, doxygen, python3Packages, libopenshot
2017-05-17 21:26:11 +02:00
, wrapGAppsHook, gtk3 }:
2016-07-17 17:39:15 +02:00
mkDerivationWith python3Packages.buildPythonApplication rec {
2019-04-12 02:28:20 +02:00
pname = "openshot-qt";
2020-03-22 23:30:52 +01:00
version = "2.5.1";
2016-07-17 17:39:15 +02:00
src = fetchFromGitHub {
owner = "OpenShot";
repo = "openshot-qt";
rev = "v${version}";
2020-03-22 23:30:52 +01:00
sha256 = "0qc5i0ay6j2wab1whl41sjb71cj02pg6y79drf7asrprq8b2rmfq";
2016-07-17 17:39:15 +02:00
};
nativeBuildInputs = [ doxygen wrapGAppsHook ];
buildInputs = [ gtk3 ];
propagatedBuildInputs = with python3Packages; [ libopenshot pyqt5_with_qtwebkit requests sip httplib2 pyzmq ];
dontWrapGApps = true;
dontWrapQtApps = true;
preConfigure = ''
# tries to create caching directories during install
export HOME=$(mktemp -d)
2016-07-17 17:39:15 +02:00
'';
postFixup = ''
wrapProgram $out/bin/openshot-qt \
"''${gappsWrapperArgs[@]}" \
"''${qtWrapperArgs[@]}"
'';
2016-07-17 17:39:15 +02:00
doCheck = false;
meta = with stdenv.lib; {
homepage = "http://openshot.org/";
2016-07-17 17:39:15 +02:00
description = "Free, open-source video editor";
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 17:39:15 +02:00
};
}