Merge pull request #103339 from veprbl/pr/openshot_darwin
openshot-qt: enable on darwin
This commit is contained in:
commit
e8e3f7d398
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, mkDerivationWith, fetchFromGitHub, fetchpatch
|
{ stdenv, mkDerivationWith, fetchFromGitHub, fetchpatch
|
||||||
, doxygen, python3Packages, libopenshot
|
, doxygen, python3Packages, libopenshot
|
||||||
, wrapGAppsHook, gtk3 }:
|
, wrapGAppsHook, gtk3
|
||||||
|
, qtsvg }:
|
||||||
|
|
||||||
mkDerivationWith python3Packages.buildPythonApplication rec {
|
mkDerivationWith python3Packages.buildPythonApplication rec {
|
||||||
pname = "openshot-qt";
|
pname = "openshot-qt";
|
||||||
@ -29,6 +30,12 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
|
|||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapProgram $out/bin/openshot-qt \
|
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[@]}" \
|
"''${gappsWrapperArgs[@]}" \
|
||||||
"''${qtWrapperArgs[@]}"
|
"''${qtWrapperArgs[@]}"
|
||||||
'';
|
'';
|
||||||
@ -47,6 +54,6 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
|
|||||||
'';
|
'';
|
||||||
license = with licenses; gpl3Plus;
|
license = with licenses; gpl3Plus;
|
||||||
maintainers = with maintainers; [ AndersonTorres ];
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
platforms = with platforms; linux;
|
platforms = with platforms; unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, cmake, doxygen, alsaLib , libX11, libXft, libXrandr, libXinerama, libXext, libXcursor }:
|
{ stdenv, fetchFromGitHub, pkgconfig, cmake, doxygen
|
||||||
|
, alsaLib, libX11, libXft, libXrandr, libXinerama, libXext, libXcursor
|
||||||
|
, zlib, AGL, Cocoa, Foundation
|
||||||
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -16,7 +19,12 @@ stdenv.mkDerivation rec {
|
|||||||
[ pkgconfig cmake doxygen ];
|
[ pkgconfig cmake doxygen ];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ alsaLib libX11 libXft libXrandr libXinerama libXext libXcursor ];
|
optionals stdenv.isLinux [ alsaLib ]
|
||||||
|
++ (if stdenv.isDarwin then
|
||||||
|
[ zlib AGL Cocoa Foundation ]
|
||||||
|
else
|
||||||
|
[ libX11 libXft libXrandr libXinerama libXext libXcursor ])
|
||||||
|
;
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
@ -30,6 +38,6 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
license = with licenses; gpl3Plus;
|
license = with licenses; gpl3Plus;
|
||||||
maintainers = with maintainers; [ AndersonTorres ];
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
platforms = with platforms; linux;
|
platforms = with platforms; unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
, libopenshot-audio, imagemagick, ffmpeg_3
|
, libopenshot-audio, imagemagick, ffmpeg_3
|
||||||
, swig, python3
|
, swig, python3
|
||||||
, unittest-cpp, cppzmq, zeromq
|
, unittest-cpp, cppzmq, zeromq
|
||||||
, qtbase, qtmultimedia }:
|
, qtbase, qtmultimedia
|
||||||
|
, llvmPackages
|
||||||
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -27,7 +29,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ imagemagick ffmpeg_3 swig python3 unittest-cpp
|
[ imagemagick ffmpeg_3 swig python3 unittest-cpp
|
||||||
cppzmq zeromq qtbase qtmultimedia ];
|
cppzmq zeromq qtbase qtmultimedia ]
|
||||||
|
++ optional stdenv.isDarwin llvmPackages.openmp
|
||||||
|
;
|
||||||
|
|
||||||
LIBOPENSHOT_AUDIO_DIR = libopenshot-audio;
|
LIBOPENSHOT_AUDIO_DIR = libopenshot-audio;
|
||||||
"UNITTEST++_INCLUDE_DIR" = "${unittest-cpp}/include/UnitTest++";
|
"UNITTEST++_INCLUDE_DIR" = "${unittest-cpp}/include/UnitTest++";
|
||||||
@ -46,6 +50,6 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
license = with licenses; gpl3Plus;
|
license = with licenses; gpl3Plus;
|
||||||
maintainers = with maintainers; [ AndersonTorres ];
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
platforms = with platforms; linux;
|
platforms = with platforms; unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -9476,18 +9476,15 @@ in
|
|||||||
graalvm8-ee
|
graalvm8-ee
|
||||||
graalvm11-ee;
|
graalvm11-ee;
|
||||||
|
|
||||||
openshot-qt = let
|
|
||||||
# Cannot use a newer Qt (5.15) version because it requires qtwebkit
|
# Cannot use a newer Qt (5.15) version because it requires qtwebkit
|
||||||
# and our qtwebkit fails to build with 5.15. 01bcfd3579219d60e5d07df309a000f96b2b658b
|
# and our qtwebkit fails to build with 5.15. 01bcfd3579219d60e5d07df309a000f96b2b658b
|
||||||
pkgs_ = pkgs.extend(_: prev: {
|
openshot-qt = (pkgs.extend (final: prev: rec {
|
||||||
pythonInterpreters = prev.pythonInterpreters.override(oldAttrs: {
|
qt5 = if stdenv.isDarwin then prev.qt5 else prev.qt514;
|
||||||
pkgs = oldAttrs.pkgs.extend(_: _: {
|
libsForQt5 = if stdenv.isDarwin then prev.libsForQt5 else prev.libsForQt514;
|
||||||
qt5 = pkgs.qt514;
|
pythonInterpreters = prev.pythonInterpreters.override {
|
||||||
libsForQt5 = pkgs.libsForQt514;
|
pkgs = final;
|
||||||
});
|
};
|
||||||
});
|
})).libsForQt5.callPackage ../applications/video/openshot-qt { };
|
||||||
});
|
|
||||||
in pkgs_.libsForQt514.callPackage ../applications/video/openshot-qt { };
|
|
||||||
|
|
||||||
openspin = callPackage ../development/compilers/openspin { };
|
openspin = callPackage ../development/compilers/openspin { };
|
||||||
|
|
||||||
@ -15400,7 +15397,9 @@ julia_15 = callPackage ../development/compilers/julia/1.5.nix {
|
|||||||
|
|
||||||
packagekit-qt = callPackage ../tools/package-management/packagekit/qt.nix { };
|
packagekit-qt = callPackage ../tools/package-management/packagekit/qt.nix { };
|
||||||
|
|
||||||
libopenshot-audio = callPackage ../applications/video/openshot-qt/libopenshot-audio.nix { };
|
libopenshot-audio = callPackage ../applications/video/openshot-qt/libopenshot-audio.nix {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) AGL Cocoa Foundation;
|
||||||
|
};
|
||||||
|
|
||||||
libqglviewer = callPackage ../development/libraries/libqglviewer {
|
libqglviewer = callPackage ../development/libraries/libqglviewer {
|
||||||
inherit (darwin.apple_sdk.frameworks) AGL;
|
inherit (darwin.apple_sdk.frameworks) AGL;
|
||||||
|
Loading…
Reference in New Issue
Block a user