depot/third_party/nixpkgs/pkgs/applications/editors/texstudio/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

55 lines
1.4 KiB
Nix

{ stdenv, lib, fetchFromGitHub, cmake, qtbase, qttools, qtsvg, qt5compat, quazip
, qtwayland
, hunspell
, wrapQtAppsHook, poppler, zlib, pkg-config }:
stdenv.mkDerivation (finalAttrs: {
pname = "texstudio";
version = "4.7.2";
src = fetchFromGitHub {
owner = "texstudio-org";
repo = "texstudio";
rev = finalAttrs.version;
hash = "sha256-Q4/aoLIxFssti3Dto1JwRRAQ+D3DHlH9JgDrHBVKg4M=";
};
nativeBuildInputs = [
cmake
wrapQtAppsHook
pkg-config
];
buildInputs = [
hunspell
poppler
qt5compat
qtbase
qtsvg
qttools
quazip
zlib
] ++ lib.optionals stdenv.isLinux [
qtwayland
];
postInstall = lib.optionalString stdenv.isDarwin ''
mkdir -p "$out/Applications"
mv "$out/bin/texstudio.app" "$out/Applications"
rm -d "$out/bin"
'';
meta = with lib; {
description = "TeX and LaTeX editor";
longDescription=''
Fork of TeXMaker, this editor is a full fledged IDE for
LaTeX editing with completion, structure viewer, preview,
spell checking and support of any compilation chain.
'';
homepage = "https://texstudio.org";
changelog = "https://github.com/texstudio-org/texstudio/blob/${version}/utilities/manual/CHANGELOG.txt";
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ ajs124 cfouche ];
mainProgram = "texstudio";
};
})