cask "nvidia-nsight-systems" do arch arm: "-arm64" version "2025.3.1.90-3582212" sha256 arm: "c6f768a73fbf0bc52b5f17c5a916490deb7d1e8bac7684a3d4f14bd669ad894c", intel: "1c00ecd3397cf53775c0ae4eee9100912255a832cfdc2f06f824069419ca1d56" url "https://developer.nvidia.com/downloads/assets/tools/secure/nsight-systems/#{version.major_minor.dots_to_underscores}/NsightSystems-macos#{arch}-public-#{version}.dmg" name "NVIDIA Nsight Systems" desc "System-wide performance analysis tool" homepage "https://developer.nvidia.com/nsight-systems" livecheck do url "https://developer.nvidia.com/tools-downloads.json" regex(/NsightSystems[._-]macos#{arch}[._-]public[._-]v?(\d+(?:[.-]\d+)+)\.dmg/i) strategy :json do |json, regex| json["downloads"]&.map do |download| next unless download["development_platform"]&.include?("osx") download["files"]&.map do |file| match = file["url"]&.match(regex) next if match.blank? match[1] end end&.flatten end end no_autobump! because: :requires_manual_review depends_on macos: ">= :high_sierra" app "NVIDIA Nsight Systems.app" zap trash: "~/Library/Saved Application State/com.nvidia.devtools.QuadD.savedState" end