rio: 0.0.36 -> 0.0.37
[NixPkgs.git] / pkgs / applications / misc / megacmd / default.nix
blob4a4d9a70fdabde058006231414dcb980251cc98a
1 { lib
2 , stdenv
3 , autoreconfHook
4 , c-ares
5 , cryptopp
6 , curl
7 , fetchFromGitHub
8   # build fails with latest ffmpeg, see https://github.com/meganz/MEGAcmd/issues/523.
9   # to be re-enabled when patch available
10   # , ffmpeg
11 , gcc-unwrapped
12 , libmediainfo
13 , libraw
14 , libsodium
15 , libuv
16 , libzen
17 , pcre-cpp
18 , pkg-config
19 , readline
20 , sqlite
23 stdenv.mkDerivation rec {
24   pname = "megacmd";
25   version = "1.6.3";
27   src = fetchFromGitHub {
28     owner = "meganz";
29     repo = "MEGAcmd";
30     rev = "${version}_Linux";
31     sha256 = "sha256-JnxfFbM+NyeUrEMok62zlsQIxjrUvLLg4tUTiKPDZFc=";
32     fetchSubmodules = true;
33   };
35   enableParallelBuilding = true;
36   nativeBuildInputs = [ autoreconfHook pkg-config ];
38   buildInputs = [
39     c-ares
40     cryptopp
41     curl
42     # ffmpeg
43     gcc-unwrapped
44     libmediainfo
45     libraw
46     libsodium
47     libuv
48     libzen
49     pcre-cpp
50     readline
51     sqlite
52   ];
54   configureFlags = [
55     "--disable-curl-checks"
56     "--disable-examples"
57     "--with-cares"
58     "--with-cryptopp"
59     "--with-curl"
60     # "--with-ffmpeg"
61     "--without-freeimage" # disabled as freeimage is insecure
62     "--with-libmediainfo"
63     "--with-libuv"
64     "--with-libzen"
65     "--with-pcre"
66     "--with-readline"
67     "--with-sodium"
68     "--with-termcap"
69   ];
71   meta = with lib; {
72     description = "MEGA Command Line Interactive and Scriptable Application";
73     homepage = "https://mega.io/cmd";
74     license = with licenses; [ bsd2 gpl3Only ];
75     platforms = [ "i686-linux" "x86_64-linux" ];
76     maintainers = with maintainers; [ lunik1 ];
77   };