cask "flox" do arch arm: "aarch64", intel: "x86_64" version "1.3.4" sha256 arm: "57b82f46ed23f84de51169a1640db02158c601cee9e12f8dcc1989fc2336d406", intel: "d1bc9c651f4efb86696ac693ae7fa70c67e1f058fda86c7ea95dccd74c69be34" url "https://downloads.flox.dev/by-env/stable/osx/flox-#{version}.#{arch}-darwin.pkg" name "flox" desc "Manages environments across the software lifecycle" homepage "https://flox.dev/" livecheck do url "https://downloads.flox.dev/by-env/stable/LATEST_VERSION" regex(/^v?(\d+(?:\.\d+)+)$/i) end auto_updates true depends_on macos: ">= :catalina" pkg "flox-#{version}.#{arch}-darwin.pkg" uninstall launchctl: [ "org.nixos.darwin-store", "org.nixos.nix-daemon", ], quit: [ "org.nixos.darwin-store", "org.nixos.nix-daemon", ], script: { executable: "/usr/local/share/flox/scripts/uninstall", sudo: true, }, pkgutil: "com.floxdev.flox" zap script: { executable: "/usr/local/share/flox/scripts/uninstall_zap", args: ["--zap"], sudo: true, }, trash: [ "/etc/flox-version.update", "/etc/nix/nix.conf.bak", "/usr/local/share/flox/scripts/uninstall_zap", "~/.cache/flox", "~/.config/flox", ] end