Skip to content

Added support for package detection for CRUX linux - #2561

Merged
CarterLi merged 1 commit into
fastfetch-cli:devfrom
mhoush:crux-package-support
Sep 4, 2026
Merged

Added support for package detection for CRUX linux#2561
CarterLi merged 1 commit into
fastfetch-cli:devfrom
mhoush:crux-package-support

Conversation

@mhoush

@mhoush mhoush commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR adds support for detection of installed packages on a CRUX linux systems.

Related issue (required for new logos for new distros)

No related issue, not a new logo.

Changes

  • doc/json_schema.json: added crux entries to packagesFormat and disabled enum
  • src/detection/packages/packages.h: added crux to FFPackagesResult struct
  • src/detection/packages/packages_linux.c: added parsing of the CRUX package database
  • src/modules/packages/option.h: added CRUX FF_PACKAGES_FLAG_CRUX_BIT
  • src/modules/packages/packages.c: added CRUX FF_PRINT_PACKAGE, FF_ARG, FF_TEST_PACKAGE_NAME, FF_APPEND_PACKAGE_COUNT, and FF_FORMAT_ARG_LIST entries

Screenshots

No visual change, just adds CRUX package output, for example: Packages: 937 (crux)

Checklist

  • I have tested my changes locally.

@mhoush
mhoush marked this pull request as ready for review September 3, 2026 20:50
@mhoush

mhoush commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

This is the first time I've looked at the fastfetch codebase so if I've done this incorrectly or missed something please let me know. Thanks!

@TimB87

TimB87 commented Sep 3, 2026

Copy link
Copy Markdown

fwiw, I tested this patch and it works for me as well

@CarterLi
CarterLi merged commit 4e78f1b into fastfetch-cli:dev Sep 4, 2026
24 of 25 checks passed
@mhoush

mhoush commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Thanks!

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.

3 participants