2014-11-30 14:07:44 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, fuse, curl, glib_networking, gsettings_desktop_schemas
|
|
|
|
, makeWrapper }:
|
2013-05-24 22:43:26 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-30 14:07:44 +00:00
|
|
|
name = "megatools-${version}";
|
2015-01-20 11:48:37 +00:00
|
|
|
version = "1.9.94";
|
2013-05-24 22:43:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://megatools.megous.com/builds/${name}.tar.gz";
|
2015-01-20 11:48:37 +00:00
|
|
|
sha256 = "1kms0k652sszcbzmx5nmz07gc8zbqqiskh8hvmvf6xaga7y3lgrx";
|
2013-05-24 22:43:26 +01:00
|
|
|
};
|
|
|
|
|
2015-01-20 11:48:37 +00:00
|
|
|
buildInputs = [ pkgconfig glib fuse curl makeWrapper
|
|
|
|
gsettings_desktop_schemas ];
|
2013-05-24 23:08:42 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2014-11-30 14:07:44 +00:00
|
|
|
for i in $(find $out/bin/ -type f); do
|
|
|
|
wrapProgram "$i" \
|
2013-05-24 23:08:42 +01:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
|
2015-01-20 11:48:37 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
2013-05-24 23:08:42 +01:00
|
|
|
done
|
|
|
|
'';
|
2013-05-24 22:43:26 +01:00
|
|
|
|
2014-11-30 14:07:44 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-05-24 22:43:26 +01:00
|
|
|
description = "Command line client for Mega.co.nz";
|
|
|
|
homepage = http://megatools.megous.com/;
|
2014-11-30 14:07:44 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.viric maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2013-05-24 22:43:26 +01:00
|
|
|
};
|
|
|
|
}
|