← Back to Pull requests

openbox-menu: migrate to pkgs/by-name #481086

Closed
unknown closed this pull request without merging on Jan 17, 2026 18:21 UTC
View on GitHub
unknown unknown commented on Jan 17, 2026 16:37 UTC
Author

This pull request refactors the packaging of openbox-menu to use the new by-name directory structure and updates its build environment for consistency and maintainability. The most important changes are:

Migration and Refactoring:

The openbox-menu package has been moved from pkgs/applications/misc/openbox-menu/default.nix to pkgs/by-name/op/openbox-menu/package.nix, aligning it with the by-name packaging convention.

Build Environment Updates:

The build environment is switched from stdenv to gccStdenv throughout the package definition, including all relevant references such as postPatch and makeFlags. This ensures the package consistently uses the GCC toolchain.

The derivation is updated to use the lambda form (gccStdenv.mkDerivation (finalAttrs: { ... })) instead of the legacy rec form, improving modern Nix code style.

Hash and URL Standardization:

The src attribute now uses the finalAttrs.version variable for the URL and updates the hash to the new format, ensuring reproducibility and correctness.

Package Set Integration:

  • The reference to openbox-menu is removed from pkgs/top-level/all-packages.nix, as the package is now managed via the by-name mechanism.

  • <!--
    ^ Please summarise the changes you have done and explain why they are necessary here ^

    For package updates please link to a changelog or describe changes, this helps your fellow maintainers discover breaking updates.
    For new packages please briefly describe the package or provide a link to its homepage.
    -->

    Things done

    <!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. -->

  • Built on platform:

  • - [ ] x86_64-linux
    - [ ] aarch64-linux
    - [ ] x86_64-darwin
    - [ ] aarch64-darwin
  • Tested, as applicable:

  • - [ ] [NixOS tests] in [nixos/tests].
    - [ ] [Package tests] at passthru.tests.
    - [ ] Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
  • Ran nixpkgs-review on this PR. See [nixpkgs-review usage].

  • Tested basic functionality of all binary files, usually in ./result/bin/.

  • Nixpkgs Release Notes

  • - [ ] Package update: when the change is major or breaking.
  • NixOS Release Notes

  • - [ ] Module addition: when adding a new NixOS module.
    - [ ] Module update: when the change is significant.
  • Fits [CONTRIBUTING.md], [pkgs/README.md], [maintainers/README.md] and other READMEs.
  • [NixOS tests]: https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests
    [Package tests]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests
    [nixpkgs-review usage]: https://github.com/Mic92/nixpkgs-review#usage

    [CONTRIBUTING.md]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md
    [lib/tests]: https://github.com/NixOS/nixpkgs/blob/master/lib/tests
    [maintainers/README.md]: https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md
    [nixos/tests]: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests
    [pkgs/README.md]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md
    [pkgs/test]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/test

    ---

    Add a :+1: [reaction] to [pull requests you find important].

    [reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
    [pull requests you find important]: https://github.com/NixOS/nixpkgs/pulls?q=is%3Aopen+sort%3Areactions-%2B1-desc

    Diff: 438 lines (+328 / -110) across 5 files Reviewer: guylamar2006 Review duration: 103m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.68) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.68 · 438 lines diff across 5 files
    0.68
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    57%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.364
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.068
    Real PR Conversation Timeline
    1 comments
    "Review active on #481086"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 58.0% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 68.4% (HIGH) · Higher = larger blast radius
    68.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 58.0% · Lower = rushed or shallow review
    58.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 28.7% · Safe to merge
    28.7%
    Repository