Merge pull request #222710 from MatthewCroughan/mc/olive-update

olive-editor: 1.2 -> 2023-03-20
This commit is contained in:
Arnout Engelen 2023-03-24 08:55:07 +01:00 committed by GitHub
commit b5c040af03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 12 deletions

View File

@ -1,34 +1,69 @@
{ lib, stdenv, fetchFromGitHub
, pkg-config, which, qmake, wrapQtAppsHook
, qtmultimedia, frei0r, opencolorio_1, ffmpeg-full, CoreFoundation }:
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, which
, frei0r
, opencolorio
, ffmpeg-full
, CoreFoundation
, cmake
, wrapQtAppsHook
, openimageio2
, openexr_3
, portaudio
, imath
, qtwayland
, qtmultimedia
, qttools
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "olive-editor";
version = "0.1.2";
version = "unstable-2023-03-20";
src = fetchFromGitHub {
fetchSubmodules = true;
owner = "olive-editor";
repo = "olive";
rev = version;
sha256 = "151g6jwhipgbq4llwib92sq23p1s9hm6avr7j4qq3bvykzrm8z1a";
rev = "8ca16723613517c41304de318169d27c571b90af";
sha256 = "sha256-lL90+8L7J7pjvhbqfeIVF0WKgl6qQzNun8pL9YPL5Is=";
};
patches = [
./q-painter-path.patch
cmakeFlags = [
"-DBUILD_QT6=1"
];
# https://github.com/olive-editor/olive/issues/2200
patchPhase = ''
runHook prePatch
substituteInPlace ./app/node/project/serializer/serializer.h \
--replace 'QStringRef' 'QStringView'
substituteInPlace ./app/node/project/serializer/serializer.cpp \
--replace 'QStringRef' 'QStringView'
substituteInPlace ./app/node/project/serializer/serializer230220.cpp \
--replace 'QStringRef' 'QStringView'
runHook postPatch
'';
nativeBuildInputs = [
pkg-config
which
qmake
cmake
wrapQtAppsHook
];
buildInputs = [
ffmpeg-full
frei0r
opencolorio_1
opencolorio
openimageio2
imath
openexr_3
portaudio
qtwayland
qtmultimedia
qttools
] ++ lib.optional stdenv.isDarwin CoreFoundation;
meta = with lib; {

View File

@ -10569,7 +10569,7 @@ with pkgs;
ola = callPackage ../applications/misc/ola { };
olive-editor = libsForQt5.callPackage ../applications/video/olive-editor {
olive-editor = qt6Packages.callPackage ../applications/video/olive-editor {
inherit (darwin.apple_sdk.frameworks) CoreFoundation;
};