lol
1{ lib
2, stdenv
3, fetchgit
4, asciidoc
5, docbook_xml_dtd_45
6, docbook2x
7, libxml2
8, meson
9, ninja
10, pkg-config
11, curl
12, glib
13, fuse
14}:
15
16stdenv.mkDerivation rec {
17 pname = "megatools";
18 version = "1.11.0";
19
20 src = fetchgit {
21 url = "https://megous.com/git/megatools";
22 rev = version;
23 sha256 = "sha256-Q9hMJBQBenufubbmeAw8Q8w+Oo+UcZLWathKNDwTv3s=";
24 };
25
26 nativeBuildInputs = [
27 asciidoc
28 docbook_xml_dtd_45
29 docbook2x
30 libxml2
31 meson
32 ninja
33 pkg-config
34 ];
35
36 buildInputs = [
37 curl
38 glib
39 ] ++ lib.optionals stdenv.isLinux [ fuse ];
40
41 enableParallelBuilding = true;
42 strictDeps = true;
43
44 meta = with lib; {
45 description = "Command line client for Mega.co.nz";
46 homepage = "https://megatools.megous.com/";
47 license = licenses.gpl2Plus;
48 maintainers = with maintainers; [ viric AndersonTorres ];
49 platforms = platforms.unix;
50 };
51}