Skip to content

Commit

Permalink
flox: prevent update from uninstalling or breaking Nix Store
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Bereknyei committed Jun 6, 2024
1 parent d1290ac commit 0c46d05
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions Casks/f/flox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,28 @@
pkg "flox-#{version}.#{arch}-darwin.pkg"

uninstall early_script: {
executable: "/usr/bin/killall",
args: ["-9", "pkgdb"],
sudo: true,
},
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"
executable: "/usr/bin/killall",
args: ["-9", "pkgdb"],
sudo: true,
must_succeed: false,
},
delete: ["/usr/local/bin/flox"]

zap trash: [
"~/.cache/flox",
"~/.config/flox",
]
],
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"
end

0 comments on commit 0c46d05

Please sign in to comment.