Skip to content

Commit

Permalink
rambox: fix crash when native filesystem dialogs are created
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Oct 30, 2018
1 parent be08e69 commit ac8acb2
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions pkgs/applications/networking/instant-messengers/rambox/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ stdenv, newScope, makeWrapper, electron, xdg_utils, makeDesktopItem
{ stdenv, newScope, makeWrapper
, wrapGAppsHook, gnome3, glib
, electron, xdg_utils, makeDesktopItem
, auth0ClientID ? "0spuNKfIGeLAQ_Iki9t3fGxbfJl3k8SU"
, auth0Domain ? "nixpkgs.auth0.com" }:

Expand Down Expand Up @@ -26,16 +28,25 @@ with self;
stdenv.mkDerivation {
name = "rambox-${rambox-bare.version}";

nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];

buildInputs = [ glib gnome3.gsettings_desktop_schemas ];
unpackPhase = ":";

dontWrapGApps = true; # we only want $gappsWrapperArgs here

installPhase = ''
runHook preInstall
mkdir -p $out/share/applications
ln -s ${desktopItem}/share/applications/* $out/share/applications
runHook postInstall
'';

postFixup = ''
makeWrapper ${electron}/bin/electron $out/bin/rambox \
--add-flags "${rambox-bare} --without-update" \
"''${gappsWrapperArgs[@]}" \
--prefix PATH : ${xdg_utils}/bin
mkdir -p $out/share/applications
ln -s ${desktopItem}/share/applications/* $out/share/applications
'';

inherit (rambox-bare.meta // {
Expand Down

0 comments on commit ac8acb2

Please sign in to comment.