about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/megatools/default.nix
blob: b729e9961857a69029b6e66b773fac9d781d3c6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchgit, autoreconfHook, pkg-config, glib, fuse, curl, glib-networking
, asciidoc, libxml2, docbook_xsl, docbook_xml_dtd_45, libxslt, wrapGAppsHook }:

stdenv.mkDerivation rec {
  pname = "megatools";
  version = "1.10.3";

  src = fetchgit {
    url = "https://megous.com/git/megatools";
    rev = "5581d06e447b84d0101d36dc96ab72920eec1017";
    sha256 = "1fh456kjsmdvpmvklkpi06h720yvhahd4rxa6cm5x818pl44p1r4";
  };

  nativeBuildInputs = [
    autoreconfHook pkg-config wrapGAppsHook asciidoc libxml2
    docbook_xsl docbook_xml_dtd_45 libxslt
  ];
  buildInputs = [ glib glib-networking curl ]
  ++ stdenv.lib.optionals stdenv.isLinux [ fuse ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "Command line client for Mega.co.nz";
    homepage = "https://megatools.megous.com/";
    license = licenses.gpl2Plus;
    maintainers = [ maintainers.viric maintainers.AndersonTorres ];
    platforms = platforms.unix;
  };
}