2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, mkDerivationWith
|
|
|
|
, fetchFromGitHub
|
|
|
|
, doxygen
|
|
|
|
, gtk3
|
|
|
|
, libopenshot
|
|
|
|
, python3Packages
|
|
|
|
, qtsvg
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivationWith python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "openshot-qt";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "2.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "openshot-qt";
|
|
|
|
rev = "v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "0pa8iwl217503bjlqg2zlrw5lxyq5hvxrf5apxrh3843hj1w1myv";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
doxygen
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
httplib2
|
|
|
|
libopenshot
|
|
|
|
pyqt5_with_qtwebkit
|
|
|
|
pyzmq
|
|
|
|
requests
|
|
|
|
sip_4
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# tries to create caching directories during install
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/openshot-qt \
|
2020-11-19 00:13:47 +00:00
|
|
|
''
|
|
|
|
# Fix toolbar icons on Darwin
|
2021-01-15 22:18:51 +00:00
|
|
|
+ lib.optionalString stdenv.isDarwin ''
|
|
|
|
--suffix QT_PLUGIN_PATH : "${lib.getBin qtsvg}/lib/qt-5.12.7/plugins" \
|
2020-11-19 00:13:47 +00:00
|
|
|
''
|
|
|
|
+ ''
|
2020-04-24 23:36:52 +00:00
|
|
|
"''${gappsWrapperArgs[@]}" \
|
|
|
|
"''${qtWrapperArgs[@]}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://openshot.org/";
|
|
|
|
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 ];
|
2020-11-19 00:13:47 +00:00
|
|
|
platforms = with platforms; unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit libopenshot;
|
|
|
|
inherit (libopenshot) libopenshot-audio;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|