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