nixpkgs/pkgs/tools/networking/megatools/default.nix

32 lines
979 B
Nix
Raw Normal View History

2014-11-30 14:07:44 +00:00
{ stdenv, fetchurl, pkgconfig, glib, fuse, curl, glib_networking, gsettings_desktop_schemas
, asciidoc, makeWrapper }:
2013-05-24 21:43:26 +00:00
stdenv.mkDerivation rec {
2014-11-30 14:07:44 +00:00
name = "megatools-${version}";
version = "1.9.98";
2013-05-24 21:43:26 +00:00
src = fetchurl {
url = "http://megatools.megous.com/builds/${name}.tar.gz";
sha256 = "0vx1farp0dpg4zwvxdbfdnzjk9qx3sn109p1r1zl3g3xsaj221cv";
2013-05-24 21:43:26 +00:00
};
buildInputs = [ pkgconfig glib fuse curl makeWrapper
gsettings_desktop_schemas asciidoc ];
postInstall = ''
2014-11-30 14:07:44 +00:00
for i in $(find $out/bin/ -type f); do
wrapProgram "$i" \
--prefix GIO_EXTRA_MODULES : "${glib_networking.out}/lib/gio/modules" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
done
'';
2013-05-24 21:43:26 +00:00
2014-11-30 14:07:44 +00:00
meta = with stdenv.lib; {
2013-05-24 21:43:26 +00: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 21:43:26 +00:00
};
}