From 4f676a08259e1bf8c6c2f5f56875caff2e74b79f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 11 May 2017 13:36:17 +0100 Subject: [PATCH] megatools: use wrapGAppsHook --- pkgs/tools/networking/megatools/default.nix | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/pkgs/tools/networking/megatools/default.nix b/pkgs/tools/networking/megatools/default.nix index f948ab8eb61..7c7c63ef230 100644 --- a/pkgs/tools/networking/megatools/default.nix +++ b/pkgs/tools/networking/megatools/default.nix @@ -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";