summary refs log tree commit diff
path: root/pkgs/tools/networking/megatools
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-05-11 13:36:17 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-05-11 20:34:32 +0100
commit4f676a08259e1bf8c6c2f5f56875caff2e74b79f (patch)
tree6ec9f7fd5084e844d13db695b8d1c18a40a8726b /pkgs/tools/networking/megatools
parentc58aa3a508538d367a169d4ae09458ce2ac98440 (diff)
downloadnixpkgs-4f676a08259e1bf8c6c2f5f56875caff2e74b79f.tar
nixpkgs-4f676a08259e1bf8c6c2f5f56875caff2e74b79f.tar.gz
nixpkgs-4f676a08259e1bf8c6c2f5f56875caff2e74b79f.tar.bz2
nixpkgs-4f676a08259e1bf8c6c2f5f56875caff2e74b79f.tar.lz
nixpkgs-4f676a08259e1bf8c6c2f5f56875caff2e74b79f.tar.xz
nixpkgs-4f676a08259e1bf8c6c2f5f56875caff2e74b79f.tar.zst
nixpkgs-4f676a08259e1bf8c6c2f5f56875caff2e74b79f.zip
megatools: use wrapGAppsHook
Diffstat (limited to 'pkgs/tools/networking/megatools')
-rw-r--r--pkgs/tools/networking/megatools/default.nix16
1 files 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";