2022-05-23 23:59:44 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchgit
|
2022-05-23 23:59:54 +00:00
|
|
|
, asciidoc
|
|
|
|
, docbook_xml_dtd_45
|
|
|
|
, docbook2x
|
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
2022-05-23 23:59:44 +00:00
|
|
|
, pkg-config
|
2022-05-23 23:59:54 +00:00
|
|
|
, curl
|
2022-05-23 23:59:44 +00:00
|
|
|
, glib
|
|
|
|
, fuse
|
|
|
|
}:
|
2013-05-24 21:43:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "megatools";
|
2022-05-23 23:59:54 +00:00
|
|
|
version = "1.11.0";
|
2013-05-24 21:43:26 +00:00
|
|
|
|
2020-02-05 20:20:52 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://megous.com/git/megatools";
|
2022-05-23 23:59:54 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-Q9hMJBQBenufubbmeAw8Q8w+Oo+UcZLWathKNDwTv3s=";
|
2013-05-24 21:43:26 +00:00
|
|
|
};
|
|
|
|
|
2018-03-07 11:43:16 +00:00
|
|
|
nativeBuildInputs = [
|
2022-05-23 23:59:44 +00:00
|
|
|
asciidoc
|
|
|
|
docbook_xml_dtd_45
|
2022-05-23 23:59:54 +00:00
|
|
|
docbook2x
|
2022-05-23 23:59:44 +00:00
|
|
|
libxml2
|
2022-05-23 23:59:54 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2022-05-23 23:59:44 +00:00
|
|
|
pkg-config
|
2018-03-07 11:43:16 +00:00
|
|
|
];
|
2022-05-23 23:59:44 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
curl
|
|
|
|
glib
|
|
|
|
] ++ lib.optionals stdenv.isLinux [ fuse ];
|
2013-05-24 21:43:26 +00:00
|
|
|
|
2018-03-07 11:43:16 +00:00
|
|
|
enableParallelBuilding = true;
|
2022-05-23 23:59:54 +00:00
|
|
|
strictDeps = true;
|
2018-03-07 11:43:16 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-05-24 21:43:26 +00:00
|
|
|
description = "Command line client for Mega.co.nz";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://megatools.megous.com/";
|
2014-11-30 14:07:44 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2022-09-14 21:42:08 +00:00
|
|
|
maintainers = with maintainers; [ viric AndersonTorres ];
|
2020-02-05 20:20:52 +00:00
|
|
|
platforms = platforms.unix;
|
2013-05-24 21:43:26 +00:00
|
|
|
};
|
|
|
|
}
|