openshot-qt: enable on darwin

This commit is contained in:
Dmitry Kalinkin
2020-11-16 18:07:08 -05:00
parent fcd325c974
commit 972bcb496d
2 changed files with 18 additions and 14 deletions
@@ -1,6 +1,7 @@
{ stdenv, mkDerivationWith, fetchFromGitHub, fetchpatch
, doxygen, python3Packages, libopenshot
, wrapGAppsHook, gtk3 }:
, wrapGAppsHook, gtk3
, qtsvg }:
mkDerivationWith python3Packages.buildPythonApplication rec {
pname = "openshot-qt";
@@ -29,6 +30,12 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
postFixup = ''
wrapProgram $out/bin/openshot-qt \
''
# Fix toolbar icons on Darwin
+ stdenv.lib.optionalString stdenv.isDarwin ''
--suffix QT_PLUGIN_PATH : "${stdenv.lib.getBin qtsvg}/lib/qt-5.12.7/plugins" \
''
+ ''
"''${gappsWrapperArgs[@]}" \
"''${qtWrapperArgs[@]}"
'';
@@ -47,6 +54,6 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
'';
license = with licenses; gpl3Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = with platforms; linux;
platforms = with platforms; unix;
};
}