2021-05-11 22:47:19 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-01-21 11:36:09 +00:00
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, c-ares
|
|
|
|
, cryptopp
|
|
|
|
, curl
|
|
|
|
, fetchFromGitHub
|
2021-05-11 22:47:19 +01:00
|
|
|
, ffmpeg_3 # build fails with latest ffmpeg, see https://github.com/meganz/MEGAcmd/issues/523
|
2020-01-21 11:36:09 +00:00
|
|
|
, freeimage
|
|
|
|
, gcc-unwrapped
|
|
|
|
, libmediainfo
|
|
|
|
, libraw
|
|
|
|
, libsodium
|
|
|
|
, libtool
|
|
|
|
, libuv
|
|
|
|
, libzen
|
|
|
|
, pcre-cpp
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2020-01-21 11:36:09 +00:00
|
|
|
, readline
|
|
|
|
, sqlite
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "megacmd";
|
2021-05-11 22:47:19 +01:00
|
|
|
version = "1.4.0";
|
2020-01-21 11:36:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "meganz";
|
|
|
|
repo = "MEGAcmd";
|
|
|
|
rev = "${version}_Linux";
|
2021-05-11 22:47:19 +01:00
|
|
|
sha256 = "sha256-Q1SZSDTPGgBA/W/ZVYfTQsiP41RE1LJ+esQ3PK9EjIc=";
|
2020-01-21 11:36:09 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
libtool
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2020-01-21 11:36:09 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
c-ares
|
|
|
|
cryptopp
|
|
|
|
curl
|
2020-06-07 13:39:09 +01:00
|
|
|
ffmpeg_3
|
2020-01-21 11:36:09 +00:00
|
|
|
freeimage
|
|
|
|
gcc-unwrapped
|
|
|
|
libmediainfo
|
|
|
|
libraw
|
|
|
|
libsodium
|
|
|
|
libuv
|
|
|
|
libzen
|
|
|
|
pcre-cpp
|
|
|
|
readline
|
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-curl-checks"
|
|
|
|
"--disable-examples"
|
|
|
|
"--with-cares"
|
|
|
|
"--with-cryptopp"
|
|
|
|
"--with-curl"
|
|
|
|
"--with-ffmpeg"
|
|
|
|
"--with-freeimage"
|
|
|
|
"--with-libmediainfo"
|
|
|
|
"--with-libuv"
|
|
|
|
"--with-libzen"
|
|
|
|
"--with-pcre"
|
|
|
|
"--with-readline"
|
|
|
|
"--with-sodium"
|
|
|
|
"--with-termcap"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-21 11:36:09 +00:00
|
|
|
description = "MEGA Command Line Interactive and Scriptable Application";
|
2021-05-11 22:47:19 +01:00
|
|
|
homepage = "https://mega.nz/cmd";
|
|
|
|
license = with licenses; [ bsd2 gpl3Only ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ lunik1 ];
|
2020-01-21 11:36:09 +00:00
|
|
|
};
|
|
|
|
}
|