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