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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

97 lines
2.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, mkDerivationWith
, fetchFromGitHub
, doxygen
, gtk3
, libopenshot
, python3
, qtbase
, qtsvg
2024-04-23 19:42:40 +00:00
, qtwayland
, wayland
, waylandSupport ? stdenv.isLinux
, wrapGAppsHook3
}:
2016-07-17 15:39:15 +00:00
2023-11-28 20:00:43 +00:00
let
2019-04-12 00:28:20 +00:00
pname = "openshot-qt";
2023-11-28 20:00:43 +00:00
version = "3.1.1";
2016-07-17 15:39:15 +00:00
src = fetchFromGitHub {
owner = "OpenShot";
repo = "openshot-qt";
rev = "v${version}";
2023-11-28 20:00:43 +00:00
hash = "sha256-kEz1APBitWLlnIbyloYMsqNrwC9RqU04kyyWzm5klYc=";
2016-07-17 15:39:15 +00:00
};
2023-11-28 20:00:43 +00:00
in
mkDerivationWith python3.pkgs.buildPythonApplication {
inherit pname version src;
outputs = [ "out" ]; # "lib" can't be split
nativeBuildInputs = [
doxygen
wrapGAppsHook3
];
buildInputs = [
gtk3
2024-04-23 19:42:40 +00:00
] ++ lib.optionals waylandSupport [
qtwayland
wayland
];
propagatedBuildInputs = with python3.pkgs; [
httplib2
libopenshot
pyqtwebengine
pyzmq
requests
sip
];
2023-11-28 20:00:43 +00:00
strictDeps = true;
preConfigure = ''
2023-11-28 20:00:43 +00:00
# the builder 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
2023-11-28 20:00:43 +00:00
meta = {
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.
2023-11-28 20:00:43 +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.
'';
2023-11-28 20:00:43 +00:00
license = with lib.licenses; [ gpl3Plus ];
2023-11-27 01:17:53 +00:00
mainProgram = "openshot-qt";
2023-11-28 20:00:43 +00:00
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
2016-07-17 15:39:15 +00:00
};
}