2013-05-24 23:08:42 +01:00
|
|
|
{ stdenv, fetchurl, glib, curl, pkgconfig, fuse, glib_networking, makeWrapper
|
|
|
|
, gsettings_desktop_schemas }:
|
2013-05-24 22:43:26 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "megatools-1.9.91";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://megatools.megous.com/builds/${name}.tar.gz";
|
|
|
|
sha256 = "0hb83wqsn6mggcmk871hl8cski5x0hxz9dhaka42115s4mdfbl1i";
|
|
|
|
};
|
|
|
|
|
2013-05-24 23:08:42 +01:00
|
|
|
buildInputs = [ glib curl pkgconfig fuse makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for a in $out/bin/*; do
|
|
|
|
wrapProgram "$a" \
|
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
|
|
|
|
--prefix XDG_DATA_DIRS : "${gsettings_desktop_schemas}/share"
|
|
|
|
|
|
|
|
done
|
|
|
|
'';
|
2013-05-24 22:43:26 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Command line client for Mega.co.nz";
|
|
|
|
homepage = http://megatools.megous.com/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2013-05-24 22:43:26 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.viric ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|