2021-11-06 16:46:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, mkDerivationWith
|
|
|
|
, fetchFromGitHub
|
2022-11-15 08:04:27 +00:00
|
|
|
, fetchpatch
|
2021-11-06 16:46:08 +00:00
|
|
|
, doxygen
|
|
|
|
, gtk3
|
|
|
|
, libopenshot
|
2022-11-20 21:52:37 +00:00
|
|
|
, python3
|
2021-11-06 16:46:08 +00:00
|
|
|
, qtsvg
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2016-07-17 15:39:15 +00:00
|
|
|
|
2022-11-20 21:52:37 +00:00
|
|
|
mkDerivationWith python3.pkgs.buildPythonApplication rec {
|
2019-04-12 00:28:20 +00:00
|
|
|
pname = "openshot-qt";
|
2021-09-12 22:21:01 +00:00
|
|
|
version = "2.6.1";
|
2016-07-17 15:39:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "openshot-qt";
|
|
|
|
rev = "v${version}";
|
2022-11-20 21:52:37 +00:00
|
|
|
hash = "sha256-29fAg4SDoAFzv6q43Dcs2HdaeKZfPEzlGqCcICiPSF0=";
|
2016-07-17 15:39:15 +00:00
|
|
|
};
|
2017-04-16 19:09:22 +00:00
|
|
|
|
2021-11-06 16:46:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
doxygen
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2017-04-16 19:09:22 +00:00
|
|
|
|
2021-11-06 16:46:08 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
2017-04-16 19:09:22 +00:00
|
|
|
|
2022-11-20 21:52:37 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-11-06 16:46:08 +00:00
|
|
|
httplib2
|
|
|
|
libopenshot
|
2022-11-20 21:52:37 +00:00
|
|
|
pyqtwebengine
|
2021-11-06 16:46:08 +00:00
|
|
|
pyzmq
|
|
|
|
requests
|
|
|
|
sip_4
|
|
|
|
];
|
2017-04-16 19:09:22 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# tries to create caching directories during install
|
|
|
|
export HOME=$(mktemp -d)
|
2016-07-17 15:39:15 +00:00
|
|
|
'';
|
|
|
|
|
2022-11-15 08:04:27 +00:00
|
|
|
# Following Arch PKGBUILD for Python 3.10 compatibility
|
|
|
|
# https://github.com/OpenShot/openshot-qt/issues/4608
|
|
|
|
# https://github.com/archlinux/svntogit-community/commits/packages/openshot/trunk
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "video-widget.patch";
|
|
|
|
url = "https://github.com/OpenShot/openshot-qt/commit/9748a13268d66a5949aebc970637b5903756d018.patch";
|
|
|
|
hash = "sha256-QwLtcooDJeYWDp80a1dUFo2so/zEWqqsq5IgkXWX324=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "python-3.10-int.patch";
|
|
|
|
url = "https://github.com/OpenShot/openshot-qt/commit/fff785eb1e3e0c30ed6ca57e2d1933aaa807ae22.patch";
|
|
|
|
hash = "sha256-ee/s7rhF71ot5oPkGK+j59mL1B3e72xoH27KFoDL8s8=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-11-20 21:52:37 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2019-08-03 04:40:54 +00: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 ''
|
2022-11-20 21:52:37 +00:00
|
|
|
--suffix QT_PLUGIN_PATH : "${lib.getBin qtsvg}/lib/qt-5.12.7/plugins" \
|
|
|
|
'' + ''
|
|
|
|
"''${gappsWrapperArgs[@]}" \
|
|
|
|
"''${qtWrapperArgs[@]}"
|
2019-08-03 04:40:54 +00:00
|
|
|
'';
|
|
|
|
|
2022-11-20 21:52:37 +00:00
|
|
|
passthru = {
|
|
|
|
inherit libopenshot;
|
|
|
|
inherit (libopenshot) libopenshot-audio;
|
|
|
|
};
|
2016-07-17 15:39:15 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://openshot.org/";
|
2016-07-17 15:39:15 +00:00
|
|
|
description = "Free, open-source video editor";
|
2017-03-29 09:47:30 +00: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 15:39:15 +00:00
|
|
|
};
|
|
|
|
}
|