Merge pull request #200213 from Homebrew/bump-tidelift-1.14.0
[Homebrew/homebrew-cask.git] / Casks / n / nvidia-nsight-systems.rb
blobf6d8c1a1dd48c62be20eb583b3be1a9b44823c10
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"
10   livecheck do
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)
19           next if match.blank?
21           match[1]
22         end
23       end&.flatten
24     end
25   end
27   depends_on macos: ">= :high_sierra"
29   app "NVIDIA Nsight Systems.app"
31   zap trash: "~/Library/Saved Application State/com.nvidia.devtools.QuadD.savedState"
33   caveats do
34     requires_rosetta
35   end
36 end