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

85 lines
1.8 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, mkDerivationWith
, fetchFromGitHub
, fetchpatch
, doxygen
, gtk3
, libopenshot
, python3
, qtbase
, qtsvg
, wrapGAppsHook
}:
2016-07-17 15:39:15 +00:00
mkDerivationWith python3.pkgs.buildPythonApplication rec {
2019-04-12 00:28:20 +00:00
pname = "openshot-qt";
2023-01-18 15:08:35 +00:00
version = "3.0.0";
2016-07-17 15:39:15 +00:00
src = fetchFromGitHub {
owner = "OpenShot";
repo = "openshot-qt";
rev = "v${version}";
2023-01-18 15:08:35 +00:00
hash = "sha256-h4R2txi038m6tzdKYiXIB8CiqWt2MFFRNerp1CFP5as=";
2016-07-17 15:39:15 +00:00
};
nativeBuildInputs = [
doxygen
wrapGAppsHook
];
buildInputs = [
gtk3
];
propagatedBuildInputs = with python3.pkgs; [
httplib2
libopenshot
pyqtwebengine
pyzmq
requests
sip_4
];
preConfigure = ''
# tries to create caching directories during install
export HOME=$(mktemp -d)
2016-07-17 15:39:15 +00:00
'';
doCheck = false;
dontWrapGApps = true;
dontWrapQtApps = true;
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}/${qtbase.qtPluginPrefix}" \
'' + ''
"''${gappsWrapperArgs[@]}" \
"''${qtWrapperArgs[@]}"
'';
passthru = {
inherit libopenshot;
inherit (libopenshot) libopenshot-audio;
};
2016-07-17 15:39:15 +00:00
meta = with lib; {
homepage = "http://openshot.org/";
2016-07-17 15:39:15 +00: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 ];
2020-11-10 20:08:26 +00:00
platforms = with platforms; unix;
2016-07-17 15:39:15 +00:00
};
}