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

32 lines
960 B
Nix
Raw Normal View History

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
};
buildInputs = [ pkgconfig glib fuse curl makeWrapper
gsettings_desktop_schemas ];
postInstall = ''
2014-11-30 17:07:44 +03: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-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
};
}