Unverified Commit 3b413092 authored by Ulysses Zhan's avatar Ulysses Zhan
Browse files

megacmd: format; better coding style (avoid rec; avoid with lib)

parent 21e9e521
Loading
Loading
Loading
Loading
+38 −25
Original line number Diff line number Diff line
{ lib
, stdenv
, autoreconfHook
, c-ares
, cryptopp
, curl
, fetchFromGitHub
{
  lib,
  stdenv,
  autoreconfHook,
  c-ares,
  cryptopp,
  curl,
  fetchFromGitHub,
  # build fails with latest ffmpeg, see https://github.com/meganz/MEGAcmd/issues/523.
  # to be re-enabled when patch available
  # , ffmpeg
, gcc-unwrapped
, icu
, libmediainfo
, libraw
, libsodium
, libuv
, libzen
, pcre-cpp
, pkg-config
, readline
, sqlite
  # ffmpeg,
  gcc-unwrapped,
  icu,
  libmediainfo,
  libraw,
  libsodium,
  libuv,
  libzen,
  pcre-cpp,
  pkg-config,
  readline,
  sqlite,
}:

stdenv.mkDerivation rec {
let
  pname = "megacmd";
  version = "1.7.0";
in
stdenv.mkDerivation {
  inherit pname version;

  src = fetchFromGitHub {
    owner = "meganz";
@@ -34,7 +38,10 @@ stdenv.mkDerivation rec {
  };

  enableParallelBuilding = true;
  nativeBuildInputs = [ autoreconfHook pkg-config ];
  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  buildInputs = [
    c-ares
@@ -71,11 +78,17 @@ stdenv.mkDerivation rec {
    "--with-termcap"
  ];

  meta = with lib; {
  meta = {
    description = "MEGA Command Line Interactive and Scriptable Application";
    homepage = "https://mega.io/cmd";
    license = with licenses; [ bsd2 gpl3Only ];
    platforms = [ "i686-linux" "x86_64-linux" ];
    maintainers = with maintainers; [ lunik1 ];
    license = with lib.licenses; [
      bsd2
      gpl3Only
    ];
    platforms = [
      "i686-linux"
      "x86_64-linux"
    ];
    maintainers = with lib.maintainers; [ lunik1 ];
  };
}