1 cask "nvidia-nsight-systems" do
2 version "2025.1.1.103-3542797"
3 sha256 "9af04009a25c1c5a2a6e77a290354f194987f6b0f477582471a94512ad4ff8f4"
5 url "https://developer.nvidia.com/downloads/assets/tools/secure/nsight-systems/#{version.major_minor.dots_to_underscores}/NsightSystems-macos-public-#{version}.dmg"
6 name "NVIDIA Nsight Systems"
7 desc "System-wide performance analysis tool"
8 homepage "https://developer.nvidia.com/nsight-systems"
11 url "https://developer.nvidia.com/tools-downloads.json"
12 regex(/NsightSystems[._-]macos[._-]public[._-]v?(\d+(?:[.-]\d+)+)\.dmg/i)
13 strategy :json do |json, regex|
14 json["downloads"]&.map do |download|
15 next unless download["development_platform"]&.include?("osx")
17 download["files"]&.map do |file|
18 match = file["url"]&.match(regex)
27 depends_on macos: ">= :high_sierra"
29 app "NVIDIA Nsight Systems.app"
31 zap trash: "~/Library/Saved Application State/com.nvidia.devtools.QuadD.savedState"