Skip to content

chore(homebrew): move droid from brews to casks - #302

Merged
shunkakinoki merged 1 commit into
mainfrom
chore/homebrew-droid-relocation
Oct 18, 2025
Merged

chore(homebrew): move droid from brews to casks#302
shunkakinoki merged 1 commit into
mainfrom
chore/homebrew-droid-relocation

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Oct 18, 2025

Copy link
Copy Markdown
Owner

Summary

  • Move droid from brews list to casks list in nix-darwin/homebrew.nix
  • Reorder casks list to maintain alphabetical organization

Summary by cubic

Moved droid from Homebrew brews to casks in nix-darwin to install the correct package type and maintain alphabetical order.

Copilot AI review requested due to automatic review settings October 18, 2025 09:42
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @shunkakinoki, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the Homebrew configuration by correcting the categorization of the 'droid' package. It ensures that 'droid' is installed as a cask rather than a brew, aligning with its nature as an application rather than a command-line tool, and maintains the alphabetical integrity of the package lists.

Highlights

  • Package Categorization: The 'droid' package has been reclassified and moved from the list of Homebrew 'brews' to the list of Homebrew 'casks'.
  • Alphabetical Ordering: The 'casks' list has been reordered to maintain alphabetical organization after the addition of 'droid'.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai

coderabbitai Bot commented Oct 18, 2025

Copy link
Copy Markdown
📝 Walkthrough

Summary by CodeRabbit

  • Chore
    • Reclassified package dependency installation method to improve consistency with system configuration management.

Walkthrough

The change reclassifies the "droid" package from Homebrew brews to casks in the nix-darwin configuration. The package is removed from one list and added to another, with no modifications to configuration logic or structure.

Changes

Cohort / File(s) Summary
Homebrew Configuration
nix-darwin/config/homebrew.nix
Moved "droid" from the brews list to the casks list, reclassifying its installation method.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A droid once brewed in morning light,
Now sipped as cask—a tasty bite!
From tap to glass, our friend takes flight,
Configuration set just right! ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed The pull request title "chore(homebrew): move droid from brews to casks" directly and accurately summarizes the main change in the changeset. The title clearly identifies the specific action taken (moving droid) and the scope affected (homebrew configuration), matching the actual modification of removing "droid" from the brews list and adding it to the casks list in the nix-darwin/config/homebrew.nix file. The title is concise, specific, and uses appropriate conventional commit formatting without unnecessary noise.
Description Check ✅ Passed The pull request description is directly related to the changeset and provides relevant context. It accurately describes the main action of moving droid from the brews list to the casks list in nix-darwin/homebrew.nix and mentions the secondary objective of reordering the casks list to maintain alphabetical organization. The description contains sufficient detail and is clearly connected to the actual changes being made, meeting the lenient requirements for this check.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/homebrew-droid-relocation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Refactors homebrew package management by moving the "droid" package from the brews list to the casks list, reflecting its proper categorization as a GUI application rather than a command-line tool.

  • Move "droid" from brews to casks list
  • Maintain alphabetical ordering in the casks list

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly moves the droid package from the brews list to the casks list in the Homebrew configuration. This is the appropriate change as droid is a GUI application. The alphabetical order of the casks list has been correctly maintained after the addition. The changes are straightforward and look good.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 0c702e0 and f19c368.

📒 Files selected for processing (1)
  • nix-darwin/config/homebrew.nix (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.nix

📄 CodeRabbit inference engine (CLAUDE.md)

Format all Nix files with nixfmt

**/*.nix: Nix: Use 2 spaces for indentation
Nix: Keep line length under 100 characters
Nix: Sort attribute sets alphabetically
Nix: Use consistent spacing around operators
Nix: Format lists and sets consistently

Follow the Nix expression language style guide

Files:

  • nix-darwin/config/homebrew.nix
nix-darwin/**

📄 CodeRabbit inference engine (CLAUDE.md)

Use Homebrew only for macOS-specific applications within nix-darwin configs

Keep Darwin-specific configurations under nix-darwin/

Files:

  • nix-darwin/config/homebrew.nix
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: shunkakinoki/dotfiles#0
File: CLAUDE.md:0-0
Timestamp: 2025-09-28T16:25:07.125Z
Learning: Applies to nix-darwin/** : Use Homebrew only for macOS-specific applications within nix-darwin configs
📚 Learning: 2025-09-28T16:25:07.125Z
Learnt from: CR
PR: shunkakinoki/dotfiles#0
File: CLAUDE.md:0-0
Timestamp: 2025-09-28T16:25:07.125Z
Learning: Applies to nix-darwin/** : Use Homebrew only for macOS-specific applications within nix-darwin configs

Applied to files:

  • nix-darwin/config/homebrew.nix
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: cubic · AI code reviewer
  • GitHub Check: nix-linux
  • GitHub Check: nix-darwin
  • GitHub Check: nix-nixos
  • GitHub Check: e2e-run (Ubuntu, ubuntu-latest)
  • GitHub Check: e2e-run (MacOS, macos-latest)
  • GitHub Check: e2e-run (NixOS, ubuntu-latest)
  • GitHub Check: docker-build-push (linux/amd64, -amd64, amd64)

"cursor"
"discord"
"docker-desktop"
"droid"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify "droid" is distributed as a Homebrew cask.

The reclassification from brew to cask implies "droid" is a GUI application rather than a CLI tool. Please confirm that "droid" is actually available as a Homebrew cask and is macOS-specific (per the coding guidelines for nix-darwin configs).

Run the following script to verify "droid" exists as a Homebrew cask:

Additionally, you may want to search the web to confirm the correct Homebrew distribution method for "droid":

Based on learnings.


🏁 Script executed:

#!/bin/bash
# Description: Verify "droid" is available as a Homebrew cask and check its description

# Check if "droid" exists as a cask
brew info --cask droid 2>/dev/null || echo "ERROR: 'droid' cask not found"

# Also check if it might still exist as a formula (brew)
echo "---"
echo "Checking if 'droid' exists as a formula:"
brew info droid 2>/dev/null || echo "INFO: 'droid' formula not found (expected)"

Length of output: 117


🌐 Web query:

Homebrew droid cask

💡 Result:

Do you mean:

  • installing the F‑Droid client or fdroidserver via Homebrew,
  • a Homebrew Cask named “droid” (a font or app),
  • or something else (e.g., Android SDK / Droid tools)?

Tell me which and I’ll give exact brew commands and links.


Remove or correct "droid"—it does not exist as a Homebrew cask.

Verification confirms that "droid" is not available as a Homebrew cask or formula. Adding it to the casks list will cause nix-darwin activation to fail. Either remove this line or clarify the intended package (e.g., F-Droid, fdroidserver, or Android SDK tools).

🤖 Prompt for AI Agents
In nix-darwin/config/homebrew.nix around line 48, the cask entry "droid" is
invalid and will break activation; remove that line or replace it with the
correct Homebrew cask/formula name (e.g., the intended package such as
android-platform-tools, android-sdk, fdroidserver, or another exact nixpkgs
package), then verify the chosen name exists via brew search or nixpkgs and
re-run nix-darwin activation to confirm the error is resolved.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@shunkakinoki
shunkakinoki merged commit f247617 into main Oct 18, 2025
23 checks passed
@shunkakinoki
shunkakinoki deleted the chore/homebrew-droid-relocation branch October 18, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants