megasync: 4.9.0.0 -> 4.9.1.0 (#302394)

* megasync: 4.9.0.0 -> 4.9.1.0

and removed freeimage dependency

Resolves: #290949

Signed-off-by: Michal Minář <mm@michojel.cz>

* removed orphaned patch

Signed-off-by: Michal Minář <mm@michojel.cz>

---------

Signed-off-by: Michal Minář <mm@michojel.cz>

authored by Michal Minář and committed by GitHub c3160517 b8dc3e8f

+6 -23
+6 -9
pkgs/applications/misc/megasync/default.nix
··· 8 , doxygen 9 , fetchFromGitHub 10 , ffmpeg 11 - , freeimage 12 , libmediainfo 13 , libraw 14 , libsodium ··· 28 }: 29 mkDerivation rec { 30 pname = "megasync"; 31 - version = "4.9.0.0"; 32 33 src = fetchFromGitHub { 34 owner = "meganz"; 35 repo = "MEGAsync"; 36 rev = "v${version}_Linux"; 37 - sha256 = "sha256-s0E8kJ4PJmhaxVcWPCyCk/KbcX4V3IESdZhSosPlZuM="; 38 fetchSubmodules = true; 39 }; 40 ··· 54 cryptopp 55 curl 56 ffmpeg 57 - freeimage 58 libmediainfo 59 libraw 60 libsodium ··· 72 ./noinstall-distro-version.patch 73 # megasync target is not part of the install rule thanks to a commented block 74 ./install-megasync.patch 75 - ./ffmpeg_44.patch 76 ]; 77 78 postPatch = '' ··· 98 "--with-cryptopp" 99 "--with-curl" 100 "--with-ffmpeg" 101 - "--with-freeimage" 102 "--without-readline" 103 "--without-termcap" 104 "--with-sodium" ··· 111 ''; 112 113 preBuild = '' 114 - qmake CONFIG+="release" MEGA.pro 115 pushd MEGASync 116 lrelease MEGASync.pro 117 - DESKTOP_DESTDIR="$out" qmake PREFIX="$out" -o Makefile MEGASync.pro CONFIG+=release 118 popd 119 ''; 120 ··· 124 homepage = "https://mega.nz/"; 125 license = licenses.unfree; 126 platforms = [ "i686-linux" "x86_64-linux" ]; 127 - maintainers = [ maintainers.michojel ]; 128 }; 129 }
··· 8 , doxygen 9 , fetchFromGitHub 10 , ffmpeg 11 , libmediainfo 12 , libraw 13 , libsodium ··· 27 }: 28 mkDerivation rec { 29 pname = "megasync"; 30 + version = "4.9.1.0"; 31 32 src = fetchFromGitHub { 33 owner = "meganz"; 34 repo = "MEGAsync"; 35 rev = "v${version}_Linux"; 36 + sha256 = "sha256-Y1nfY5iP64iSCYwzqxbjZAQNHyj4yVbSudSInm+yJzY="; 37 fetchSubmodules = true; 38 }; 39 ··· 53 cryptopp 54 curl 55 ffmpeg 56 libmediainfo 57 libraw 58 libsodium ··· 70 ./noinstall-distro-version.patch 71 # megasync target is not part of the install rule thanks to a commented block 72 ./install-megasync.patch 73 ]; 74 75 postPatch = '' ··· 95 "--with-cryptopp" 96 "--with-curl" 97 "--with-ffmpeg" 98 + "--without-freeimage" 99 "--without-readline" 100 "--without-termcap" 101 "--with-sodium" ··· 108 ''; 109 110 preBuild = '' 111 + qmake CONFIG+="nofreeimage release" MEGA.pro 112 pushd MEGASync 113 lrelease MEGASync.pro 114 + DESKTOP_DESTDIR="$out" qmake PREFIX="$out" -o Makefile MEGASync.pro CONFIG+="nofreeimage release" 115 popd 116 ''; 117 ··· 121 homepage = "https://mega.nz/"; 122 license = licenses.unfree; 123 platforms = [ "i686-linux" "x86_64-linux" ]; 124 + maintainers = [ ]; 125 }; 126 }
-14
pkgs/applications/misc/megasync/ffmpeg_44.patch
··· 1 - Index: megasync-4.6.1.0/src/MEGASync/mega/src/gfx/freeimage.cpp 2 - =================================================================== 3 - --- megasync-4.6.1.0.orig/src/MEGASync/mega/src/gfx/freeimage.cpp 4 - +++ megasync-4.6.1.0/src/MEGASync/mega/src/gfx/freeimage.cpp 5 - @@ -253,7 +253,8 @@ bool GfxProcFreeImage::readbitmapFfmpeg( 6 - 7 - // Force seeking to key frames 8 - formatContext->seek2any = false; 9 - - videoStream->skip_to_keyframe = true; 10 - + // no longer exposed in ffmpeg 4.4; the line above should be sufficient 11 - + //videoStream->skip_to_keyframe = true; 12 - if (decoder->capabilities & CAP_TRUNCATED) 13 - { 14 - codecContext->flags |= CAP_TRUNCATED;
···