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

32 lines
960 B
Nix
Raw Normal View History

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}";
version = "1.9.94";
2013-05-24 23:43:26 +02:00
src = fetchurl {
url = "http://megatools.megous.com/builds/${name}.tar.gz";
sha256 = "1kms0k652sszcbzmx5nmz07gc8zbqqiskh8hvmvf6xaga7y3lgrx";
2013-05-24 23:43:26 +02:00
};
buildInputs = [ pkgconfig glib fuse curl makeWrapper
gsettings_desktop_schemas ];
postInstall = ''
2014-11-30 15:07:44 +01: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 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
};
}