Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

101 lines
2.1 KiB
Nix

{
lib,
stdenv,
mkDerivationWith,
fetchFromGitHub,
doxygen,
gtk3,
libopenshot,
python3,
qtbase,
qtsvg,
qtwayland,
wayland,
waylandSupport ? stdenv.hostPlatform.isLinux,
wrapGAppsHook3,
}:
let
pname = "openshot-qt";
version = "3.3.0";
src = fetchFromGitHub {
owner = "OpenShot";
repo = "openshot-qt";
tag = "v${version}";
hash = "sha256-+QI1772ys1Czd+KSVBAdAUjLg9mUcMZs+UhkNljY7nQ=";
};
in
mkDerivationWith python3.pkgs.buildPythonApplication {
format = "setuptools";
inherit pname version src;
outputs = [ "out" ]; # "lib" can't be split
nativeBuildInputs = [
doxygen
wrapGAppsHook3
];
buildInputs = [
gtk3
]
++ lib.optionals waylandSupport [
qtwayland
wayland
];
propagatedBuildInputs = with python3.pkgs; [
httplib2
libopenshot
pyqtwebengine
pyzmq
requests
sip
];
strictDeps = true;
preConfigure = ''
# the builder tries to create caching directories during install
export HOME=$(mktemp -d)
'';
doCheck = false;
dontWrapGApps = true;
dontWrapQtApps = true;
postFixup = ''
wrapProgram $out/bin/openshot-qt \
''
# Fix toolbar icons on Darwin
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
--suffix QT_PLUGIN_PATH : "${lib.getBin qtsvg}/${qtbase.qtPluginPrefix}" \
''
+ ''
"''${gappsWrapperArgs[@]}" \
"''${qtWrapperArgs[@]}"
'';
passthru = {
inherit libopenshot;
inherit (libopenshot) libopenshot-audio;
};
meta = {
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 lib.licenses; [ gpl3Plus ];
mainProgram = "openshot-qt";
maintainers = [ ];
platforms = lib.platforms.unix;
};
}