2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, mkDerivationWith
|
|
|
|
, fetchFromGitHub
|
|
|
|
, doxygen
|
|
|
|
, gtk3
|
|
|
|
, libopenshot
|
2022-11-21 17:40:18 +00:00
|
|
|
, python3
|
2023-02-16 17:41:37 +00:00
|
|
|
, qtbase
|
2021-12-06 16:07:01 +00:00
|
|
|
, qtsvg
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
let
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "openshot-qt";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "3.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenShot";
|
|
|
|
repo = "openshot-qt";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-kEz1APBitWLlnIbyloYMsqNrwC9RqU04kyyWzm5klYc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
in
|
|
|
|
mkDerivationWith python3.pkgs.buildPythonApplication {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
outputs = [ "out" ]; # "lib" can't be split
|
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
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-12-06 16:07:01 +00:00
|
|
|
httplib2
|
|
|
|
libopenshot
|
2022-11-21 17:40:18 +00:00
|
|
|
pyqtwebengine
|
2021-12-06 16:07:01 +00:00
|
|
|
pyzmq
|
|
|
|
requests
|
2024-01-25 14:12:00 +00:00
|
|
|
sip4
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure = ''
|
2024-01-02 11:29:13 +00:00
|
|
|
# the builder tries to create caching directories during install
|
2020-04-24 23:36:52 +00:00
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ''
|
2023-02-16 17:41:37 +00:00
|
|
|
--suffix QT_PLUGIN_PATH : "${lib.getBin qtsvg}/${qtbase.qtPluginPrefix}" \
|
2022-11-21 17:40:18 +00:00
|
|
|
'' + ''
|
|
|
|
"''${gappsWrapperArgs[@]}" \
|
|
|
|
"''${qtWrapperArgs[@]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
passthru = {
|
|
|
|
inherit libopenshot;
|
|
|
|
inherit (libopenshot) libopenshot-audio;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
meta = {
|
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.
|
2024-01-02 11:29:13 +00:00
|
|
|
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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2024-01-02 11:29:13 +00:00
|
|
|
license = with lib.licenses; [ gpl3Plus ];
|
|
|
|
mainProgram = "openshot-qt";
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|