Megatools: update to 1.9.93

This commit is contained in:
AndersonTorres 2014-11-30 12:07:44 -02:00
parent 74ed5eee41
commit 3af34aa2b1

View File

@ -1,30 +1,30 @@
{ stdenv, fetchurl, glib, curl, pkgconfig, fuse, glib_networking, makeWrapper { stdenv, fetchurl, pkgconfig, glib, fuse, curl, glib_networking, gsettings_desktop_schemas
, gsettings_desktop_schemas }: , makeWrapper }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "megatools-1.9.91"; name = "megatools-${version}";
version = "1.9.93";
src = fetchurl { src = fetchurl {
url = "http://megatools.megous.com/builds/${name}.tar.gz"; url = "http://megatools.megous.com/builds/${name}.tar.gz";
sha256 = "0hb83wqsn6mggcmk871hl8cski5x0hxz9dhaka42115s4mdfbl1i"; sha256 = "0xm57pgjvfifq1j5lyvrcs6x0vxhqzr399s7paj4g7nspj0dbll9";
}; };
buildInputs = [ glib curl pkgconfig fuse makeWrapper ]; buildInputs = [ pkgconfig glib fuse curl makeWrapper ];
postInstall = '' postInstall = ''
for a in $out/bin/*; do for i in $(find $out/bin/ -type f); do
wrapProgram "$a" \ wrapProgram "$i" \
--prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \ --prefix GIO_EXTRA_MODULES : "${glib_networking}/lib/gio/modules" \
--prefix XDG_DATA_DIRS : "${gsettings_desktop_schemas}/share" --prefix XDG_DATA_DIRS : "${gsettings_desktop_schemas}/share"
done done
''; '';
meta = { meta = with stdenv.lib; {
description = "Command line client for Mega.co.nz"; description = "Command line client for Mega.co.nz";
homepage = http://megatools.megous.com/; homepage = http://megatools.megous.com/;
license = stdenv.lib.licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.viric ]; maintainers = [ maintainers.viric maintainers.AndersonTorres ];
platforms = stdenv.lib.platforms.linux; platforms = platforms.linux;
}; };
} }