texmaker: add wrapGAppsHook
Fixes no Gsettings error when clicking Open or SaveAs. Following method mentioned in https://github.com/NixOS/nixpkgs/issues/16285
This commit is contained in:
parent
fe35d03404
commit
50d922a5ae
|
@ -1,4 +1,4 @@
|
|||
{ lib, mkDerivation, fetchurl, qtbase, qtscript, qtwebengine, qmake, zlib, pkg-config, poppler }:
|
||||
{ lib, mkDerivation, fetchurl, qtbase, qtscript, qtwebengine, qmake, zlib, pkg-config, poppler, wrapGAppsHook }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "texmaker";
|
||||
|
@ -10,7 +10,7 @@ mkDerivation rec {
|
|||
};
|
||||
|
||||
buildInputs = [ qtbase qtscript poppler zlib qtwebengine ];
|
||||
nativeBuildInputs = [ pkg-config poppler qmake ];
|
||||
nativeBuildInputs = [ pkg-config poppler qmake wrapGAppsHook ];
|
||||
env.NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler";
|
||||
|
||||
qmakeFlags = [
|
||||
|
@ -19,6 +19,12 @@ mkDerivation rec {
|
|||
"METAINFODIR=${placeholder "out"}/share/metainfo"
|
||||
];
|
||||
|
||||
dontWrapGApps = true;
|
||||
|
||||
preFixup = ''
|
||||
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "TeX and LaTeX editor";
|
||||
longDescription=''
|
||||
|
|
Loading…
Reference in a new issue