Merge pull request #202059 from atorres1985-contrib/openshot

This commit is contained in:
Sandro 2022-11-20 23:39:47 +01:00 committed by GitHub
commit 4ac663b8c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,12 +6,12 @@
, doxygen
, gtk3
, libopenshot
, python3Packages
, python3
, qtsvg
, wrapGAppsHook
}:
mkDerivationWith python3Packages.buildPythonApplication rec {
mkDerivationWith python3.pkgs.buildPythonApplication rec {
pname = "openshot-qt";
version = "2.6.1";
@ -19,7 +19,7 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
owner = "OpenShot";
repo = "openshot-qt";
rev = "v${version}";
sha256 = "0pa8iwl217503bjlqg2zlrw5lxyq5hvxrf5apxrh3843hj1w1myv";
hash = "sha256-29fAg4SDoAFzv6q43Dcs2HdaeKZfPEzlGqCcICiPSF0=";
};
nativeBuildInputs = [
@ -31,18 +31,15 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
gtk3
];
propagatedBuildInputs = with python3Packages; [
propagatedBuildInputs = with python3.pkgs; [
httplib2
libopenshot
pyqt5_with_qtwebkit
pyqtwebengine
pyzmq
requests
sip_4
];
dontWrapGApps = true;
dontWrapQtApps = true;
preConfigure = ''
# tries to create caching directories during install
export HOME=$(mktemp -d)
@ -64,19 +61,26 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
})
];
doCheck = false;
dontWrapGApps = true;
dontWrapQtApps = true;
postFixup = ''
wrapProgram $out/bin/openshot-qt \
''
# Fix toolbar icons on Darwin
+ lib.optionalString stdenv.isDarwin ''
--suffix QT_PLUGIN_PATH : "${lib.getBin qtsvg}/lib/qt-5.12.7/plugins" \
''
+ ''
'' + ''
"''${gappsWrapperArgs[@]}" \
"''${qtWrapperArgs[@]}"
'';
doCheck = false;
passthru = {
inherit libopenshot;
inherit (libopenshot) libopenshot-audio;
};
meta = with lib; {
homepage = "http://openshot.org/";
@ -92,9 +96,4 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
maintainers = with maintainers; [ AndersonTorres ];
platforms = with platforms; unix;
};
passthru = {
inherit libopenshot;
inherit (libopenshot) libopenshot-audio;
};
}