mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
50d922a5ae
Fixes no Gsettings error when clicking Open or SaveAs. Following method mentioned in https://github.com/NixOS/nixpkgs/issues/16285
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ lib, mkDerivation, fetchurl, qtbase, qtscript, qtwebengine, qmake, zlib, pkg-config, poppler, wrapGAppsHook }:
|
|
|
|
mkDerivation rec {
|
|
pname = "texmaker";
|
|
version = "5.1.3";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.xm1math.net/texmaker/${pname}-${version}.tar.bz2";
|
|
sha256 = "0qczc2r01vhap11xmqizwbq21ggn4yjrxim8iqjxaq9w1rg2x9dz";
|
|
};
|
|
|
|
buildInputs = [ qtbase qtscript poppler zlib qtwebengine ];
|
|
nativeBuildInputs = [ pkg-config poppler qmake wrapGAppsHook ];
|
|
env.NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler";
|
|
|
|
qmakeFlags = [
|
|
"DESKTOPDIR=${placeholder "out"}/share/applications"
|
|
"ICONDIR=${placeholder "out"}/share/pixmaps"
|
|
"METAINFODIR=${placeholder "out"}/share/metainfo"
|
|
];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "TeX and LaTeX editor";
|
|
longDescription=''
|
|
This editor is a full fledged IDE for TeX and
|
|
LaTeX editing with completion, structure viewer, preview,
|
|
spell checking and support of any compilation chain.
|
|
'';
|
|
homepage = "http://www.xm1math.net/texmaker/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ cfouche markuskowa ];
|
|
};
|
|
}
|