megatools: use wrapGAppsHook
This commit is contained in:
parent
c58aa3a508
commit
4f676a0825
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue