{ lib, rustPlatform, pkg-config, openssl, texlab-src, }: rustPlatform.buildRustPackage { pname = "texlab"; version = "5.25.1-patched"; src = texlab-src; cargoLock.lockFile = "${texlab-src}/Cargo.lock"; patches = [ ./patches/subfile-diagnostics.patch ]; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ]; meta = { description = "Texlab with subfile diagnostic fix"; mainProgram = "texlab"; license = lib.licenses.mit; platforms = lib.platforms.all; }; }