nixpkgs/pkgs/applications/misc/megacmd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

81 lines
1.5 KiB
Nix
Raw Normal View History

2021-05-11 21:47:19 +00:00
{ lib
, stdenv
, autoreconfHook
2020-01-21 11:36:09 +00:00
, 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
2020-01-21 11:36:09 +00:00
, freeimage
, gcc-unwrapped
, libmediainfo
, libraw
, libsodium
, libuv
, libzen
, pcre-cpp
, pkg-config
2020-01-21 11:36:09 +00:00
, readline
, sqlite
}:
stdenv.mkDerivation rec {
pname = "megacmd";
2022-06-21 21:47:01 +00:00
version = "1.5.1";
2020-01-21 11:36:09 +00:00
src = fetchFromGitHub {
owner = "meganz";
repo = "MEGAcmd";
rev = "${version}_Linux";
2022-06-21 21:47:01 +00:00
sha256 = "sha256-qOXw/KGt3DyWQGBe/pbMujQITCMItHobxuK+1r00ZIs=";
2020-01-21 11:36:09 +00:00
fetchSubmodules = true;
};
enableParallelBuilding = true;
nativeBuildInputs = [ autoreconfHook pkg-config ];
2020-01-21 11:36:09 +00:00
buildInputs = [
c-ares
cryptopp
curl
# ffmpeg
2020-01-21 11:36:09 +00:00
freeimage
gcc-unwrapped
libmediainfo
libraw
libsodium
libuv
libzen
pcre-cpp
readline
sqlite
];
configureFlags = [
"--disable-curl-checks"
"--disable-examples"
"--with-cares"
"--with-cryptopp"
"--with-curl"
# "--with-ffmpeg"
2020-01-21 11:36:09 +00:00
"--with-freeimage"
"--with-libmediainfo"
"--with-libuv"
"--with-libzen"
"--with-pcre"
"--with-readline"
"--with-sodium"
"--with-termcap"
];
meta = with lib; {
2020-01-21 11:36:09 +00:00
description = "MEGA Command Line Interactive and Scriptable Application";
2022-01-31 19:43:14 +00:00
homepage = "https://mega.io/cmd";
2021-05-11 21:47:19 +00:00
license = with licenses; [ bsd2 gpl3Only ];
platforms = [ "i686-linux" "x86_64-linux" ];
maintainers = with maintainers; [ lunik1 ];
2020-01-21 11:36:09 +00:00
};
}