megatools: use wrapGAppsHook

This commit is contained in:
Jörg Thalheim 2017-05-11 13:36:17 +01:00
parent c58aa3a508
commit 4f676a0825
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, glib, fuse, curl, glib_networking, gsettings_desktop_schemas
, asciidoc, makeWrapper }:
{ stdenv, fetchurl, pkgconfig, glib, fuse, curl, glib_networking
, asciidoc, wrapGAppsHook }:
stdenv.mkDerivation rec {
name = "megatools-${version}";
@ -10,16 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "0vx1farp0dpg4zwvxdbfdnzjk9qx3sn109p1r1zl3g3xsaj221cv";
};
buildInputs = [ pkgconfig glib fuse curl makeWrapper
gsettings_desktop_schemas asciidoc ];
postInstall = ''
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
'';
nativeBuildInputs = [ pkgconfig wrapGAppsHook asciidoc ];
buildInputs = [ glib glib_networking fuse curl ];
meta = with stdenv.lib; {
description = "Command line client for Mega.co.nz";