2020-01-21 11:36:09 +00:00
|
|
|
{ stdenv
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, c-ares
|
|
|
|
, cryptopp
|
|
|
|
, curl
|
|
|
|
, fetchFromGitHub
|
2020-06-07 13:39:09 +01:00
|
|
|
, ffmpeg_3
|
2020-01-21 11:36:09 +00:00
|
|
|
, freeimage
|
|
|
|
, gcc-unwrapped
|
|
|
|
, libmediainfo
|
|
|
|
, libraw
|
|
|
|
, libsodium
|
|
|
|
, libtool
|
|
|
|
, libuv
|
|
|
|
, libzen
|
|
|
|
, pcre-cpp
|
|
|
|
, pkgconfig
|
|
|
|
, readline
|
|
|
|
, sqlite
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "megacmd";
|
2020-04-11 18:49:38 +01:00
|
|
|
version = "1.2.0";
|
2020-01-21 11:36:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "meganz";
|
|
|
|
repo = "MEGAcmd";
|
|
|
|
rev = "${version}_Linux";
|
2020-04-11 18:49:38 +01:00
|
|
|
sha256 = "0czyhsms0a0237d6h9b21n9p4nm4zkjanhhbvw26k6266g6c1nyr";
|
2020-01-21 11:36:09 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
libtool
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
libtool
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "MEGA Command Line Interactive and Scriptable Application";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://mega.nz/";
|
2020-01-21 11:36:09 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
maintainers = [ maintainers.wedens ];
|
|
|
|
};
|
|
|
|
}
|