Skip to content

Packages (macOS): adds support for dram package manager - #2515

Open
spoodyz wants to merge 1 commit into
fastfetch-cli:devfrom
spoodyz:packages-dram
Open

Packages (macOS): adds support for dram package manager#2515
spoodyz wants to merge 1 commit into
fastfetch-cli:devfrom
spoodyz:packages-dram

Conversation

@spoodyz

@spoodyz spoodyz commented Aug 13, 2026

Copy link
Copy Markdown

Summary

Adds package counting for dram, a bottle-only Homebrew-compatible package manager for macOS written in Rust. dram installs homebrew-core bottles into its own prefix (~/.dram by default). Its Cellar layout has the same shape as Homebrew's (Cellar/<name>/<version>/), so counting is the same single directory scan used for brew.

Related issue (required for new logos for new distros)

N/A, no logo changes.

Changes

  • src/detection/packages/packages.h: dram count field
  • src/modules/packages/option.h: FF_PACKAGES_FLAG_DRAM_BIT (bit 37, picked up automatically by the CMake package-manager regex)
  • src/detection/packages/packages_apple.c: detection. Respects DRAM_PREFIX, defaults to ~/.dram, counts Cellar/ entries, mirroring the HOMEBREW_PREFIX/MACPORTS_PREFIX handling.
  • src/modules/packages/packages.c: display, format arg, disable parsing (both paths), JSON config generation, format doc entry
  • doc/json_schema.json: disabled enum entry, format arg list renumbered

Screenshots

fastfetch showing dram package count

Checklist

  • I have tested my changes locally.
    • default detection (~/.dram/Cellar)
    • DRAM_PREFIX override (missing prefix means no entry shown)
    • "disabled": ["dram"] JSON config
    • --format json reports the dram count
    • -DPACKAGES_REMOVE_DISABLED=ON -DPACKAGES_DISABLE_DRAM=ON builds cleanly and omits dram

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.

1 participant