32 src = fetchFromGitHub {
35 rev = "v${version}_Linux";
36 hash = "sha256-Y1nfY5iP64iSCYwzqxbjZAQNHyj4yVbSudSInm+yJzY=";
37 fetchSubmodules = true;
68 # Distro and version targets attempt to use lsb_release which is broken
69 # (see issue: https://github.com/NixOS/nixpkgs/issues/22729)
70 ./noinstall-distro-version.patch
71 # megasync target is not part of the install rule thanks to a commented block
72 ./install-megasync.patch
76 for file in $(find src/ -type f \( -iname configure -o -iname \*.sh \) ); do
77 substituteInPlace "$file" --replace "/bin/bash" "${stdenv.shell}"
81 dontUseQmakeConfigure = true;
82 enableParallelBuilding = true;
111 qmake CONFIG+="nofreeimage release" MEGA.pro
113 lrelease MEGASync.pro
114 DESKTOP_DESTDIR="$out" qmake PREFIX="$out" -o Makefile MEGASync.pro CONFIG+="nofreeimage release"
120 "Easy automated syncing between your computers and your MEGA Cloud Drive";
121 homepage = "https://mega.nz/";
122 license = licenses.unfree;
123 platforms = [ "i686-linux" "x86_64-linux" ];