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