Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 61 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 wrapQtAppsHook, 8 hunspell, 9 poppler, 10 qt5compat, 11 qttools, 12 qtwayland, 13 withLua ? true, 14 lua, 15 withPython ? true, 16 python3, 17}: 18 19stdenv.mkDerivation rec { 20 pname = "texworks"; 21 version = "0.6.10"; 22 23 src = fetchFromGitHub { 24 owner = "TeXworks"; 25 repo = "texworks"; 26 rev = "release-${version}"; 27 sha256 = "sha256-tC3ADD35yrmwBJQ8JaXdr8trVf6WLt1r2/euzt0mvN8="; 28 }; 29 30 nativeBuildInputs = [ 31 cmake 32 pkg-config 33 wrapQtAppsHook 34 ]; 35 36 buildInputs = [ 37 hunspell 38 poppler 39 qt5compat 40 qttools 41 ] 42 ++ lib.optional withLua lua 43 ++ lib.optional withPython python3 44 ++ lib.optional stdenv.hostPlatform.isLinux qtwayland; 45 46 cmakeFlags = [ 47 "-DQT_DEFAULT_MAJOR_VERSION=6" 48 ] 49 ++ lib.optional withLua "-DWITH_LUA=ON" 50 ++ lib.optional withPython "-DWITH_PYTHON=ON"; 51 52 meta = with lib; { 53 changelog = "https://github.com/TeXworks/texworks/blob/${src.rev}/NEWS"; 54 description = "Simple TeX front-end program inspired by TeXShop"; 55 homepage = "http://www.tug.org/texworks/"; 56 license = licenses.gpl2Plus; 57 maintainers = with maintainers; [ dotlambda ]; 58 platforms = with platforms; linux; 59 mainProgram = "texworks"; 60 }; 61}