about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPatrick Hilhorst <git@hilhorst.be>2020-02-26 13:57:29 +0100
committerPatrick Hilhorst <git@hilhorst.be>2020-02-26 13:57:29 +0100
commit080a6b0dab56b625dbd4b508624414a6bb362d93 (patch)
treeb4ae7ee40d5c0a2abe8dff80346f0574046404d5 /pkgs
parent5e55ebb2b40910a970a8562c1ab434e47f8dc838 (diff)
downloadnixlib-080a6b0dab56b625dbd4b508624414a6bb362d93.tar
nixlib-080a6b0dab56b625dbd4b508624414a6bb362d93.tar.gz
nixlib-080a6b0dab56b625dbd4b508624414a6bb362d93.tar.bz2
nixlib-080a6b0dab56b625dbd4b508624414a6bb362d93.tar.lz
nixlib-080a6b0dab56b625dbd4b508624414a6bb362d93.tar.xz
nixlib-080a6b0dab56b625dbd4b508624414a6bb362d93.tar.zst
nixlib-080a6b0dab56b625dbd4b508624414a6bb362d93.zip
megasync: 4.2.3.0 -> 4.2.5.0
Also pull in an (as of yet unmerged) upstream patch to fix
the build, it was failing on both .3 and .5
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/megasync/default.nix16
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/applications/misc/megasync/default.nix b/pkgs/applications/misc/megasync/default.nix
index 5de4cb002dcd..27e1b9d1f462 100644
--- a/pkgs/applications/misc/megasync/default.nix
+++ b/pkgs/applications/misc/megasync/default.nix
@@ -1,16 +1,17 @@
 { stdenv, autoconf, automake, c-ares, cryptopp, curl, doxygen, fetchFromGitHub
-, ffmpeg, libmediainfo, libraw, libsodium, libtool, libuv, libzen, lsb-release
-, mkDerivation, pkgconfig, qtbase, qttools, sqlite, swig, unzip, wget }:
+, fetchpatch, ffmpeg, libmediainfo, libraw, libsodium, libtool, libuv, libzen
+, lsb-release, mkDerivation, pkgconfig, qtbase, qttools, sqlite, swig, unzip
+, wget }:
 
 mkDerivation rec {
   pname = "megasync";
-  version = "4.2.3.0";
+  version = "4.2.5.0";
 
   src = fetchFromGitHub {
     owner = "meganz";
     repo = "MEGAsync";
     rev = "v${version}_Linux";
-    sha256 = "0l4yfrxjb62vc9dnlzy8rjqi68ga1bys5x5rfzs40daw13yf1adv";
+    sha256 = "1zw7x8gpvzhnzyirs5ishjl5idzyyin4wdxa67d6gzfgvqi33n7w";
     fetchSubmodules = true;
   };
 
@@ -39,6 +40,13 @@ mkDerivation rec {
     ./noinstall-distro-version.patch
     # megasync target is not part of the install rule thanks to a commented block
     ./install-megasync.patch
+
+    # Fix build errror also described upstream:
+    # https://github.com/meganz/MEGAsync/pull/313
+    (fetchpatch {
+      url = "https://github.com/meganz/MEGAsync/pull/313.patch";
+      sha256 = "1ld00cnh9afxibvkzkqi8gz59xlzidw2dy4yqngwwdqy76sfsn3w";
+    })
   ];
 
   postPatch = ''