From afd35a40e70a0f6ad635c72d10254f54068dd00a Mon Sep 17 00:00:00 2001 From: Pranay Sashank Date: Thu, 16 Mar 2023 13:10:07 +0530 Subject: [PATCH] insomnia: Add gappsWrapperArgs to wrapProgram Without wrapping insomnia with `gappsWrapperArgs`, importing from file crashes the application with an error about gsettings-desktop-schemas. In an earlier attempt, I unset the variable `dontWrapGApps = true` but that caused insomnia to be wrapped twice because of the usage of `wrapProgram` in `preFixup`. --- pkgs/development/web/insomnia/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/web/insomnia/default.nix b/pkgs/development/web/insomnia/default.nix index 8c6c2c73c2ca..ada97c3efbc6 100644 --- a/pkgs/development/web/insomnia/default.nix +++ b/pkgs/development/web/insomnia/default.nix @@ -81,7 +81,7 @@ in stdenv.mkDerivation rec { ''; preFixup = '' - wrapProgram "$out/bin/insomnia" --prefix LD_LIBRARY_PATH : ${runtimeLibs} + wrapProgram "$out/bin/insomnia" "''${gappsWrapperArgs[@]}" --prefix LD_LIBRARY_PATH : ${runtimeLibs} ''; meta = with lib; {