2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, mkDerivationWith, fetchFromGitHub, fetchpatch
|
2017-04-16 20:09:22 +01:00
|
|
|
, doxygen, python3Packages, libopenshot
|
2020-11-10 20:08:26 +00:00
|
|
|
, wrapGAppsHook, gtk3
|
|
|
|
, qtsvg }:
|
2016-07-17 16:39:15 +01:00
|
|
|
|
2019-08-03 05:40:54 +01:00
|
|
|
mkDerivationWith python3Packages.buildPythonApplication rec {
|
2019-04-12 01:28:20 +01:00
|
|
|
pname = "openshot-qt";
|
2020-03-22 22:30:52 +00:00
|
|
|
version = "2.5.1";
|
2016-07-17 16:39:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "openshot-qt";
|
|
|
|
rev = "v${version}";
|
2020-03-22 22:30:52 +00:00
|
|
|
sha256 = "0qc5i0ay6j2wab1whl41sjb71cj02pg6y79drf7asrprq8b2rmfq";
|
2016-07-17 16:39:15 +01:00
|
|
|
};
|
2017-04-16 20:09:22 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ doxygen wrapGAppsHook ];
|
|
|
|
|
|
|
|
buildInputs = [ gtk3 ];
|
|
|
|
|
2018-12-12 00:40:28 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [ libopenshot pyqt5_with_qtwebkit requests sip httplib2 pyzmq ];
|
2017-04-16 20:09:22 +01:00
|
|
|
|
2019-08-03 05:40:54 +01:00
|
|
|
dontWrapGApps = true;
|
|
|
|
dontWrapQtApps = true;
|
2017-04-16 20:09:22 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# tries to create caching directories during install
|
|
|
|
export HOME=$(mktemp -d)
|
2016-07-17 16:39:15 +01:00
|
|
|
'';
|
|
|
|
|
2019-08-03 05:40:54 +01:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/openshot-qt \
|
2020-11-10 20:08:26 +00:00
|
|
|
''
|
|
|
|
# Fix toolbar icons on Darwin
|
2021-01-15 05:42:41 +00:00
|
|
|
+ lib.optionalString stdenv.isDarwin ''
|
|
|
|
--suffix QT_PLUGIN_PATH : "${lib.getBin qtsvg}/lib/qt-5.12.7/plugins" \
|
2020-11-10 20:08:26 +00:00
|
|
|
''
|
|
|
|
+ ''
|
2019-08-03 05:40:54 +01:00
|
|
|
"''${gappsWrapperArgs[@]}" \
|
|
|
|
"''${qtWrapperArgs[@]}"
|
|
|
|
'';
|
|
|
|
|
2016-07-17 16:39:15 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +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 ];
|
2020-11-10 20:08:26 +00:00
|
|
|
platforms = with platforms; unix;
|
2016-07-17 16:39:15 +01:00
|
|
|
};
|
|
|
|
}
|