openbox-menu: migrate to pkgs/by-name #481086
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
guylamar2006
This pull request refactors the packaging of
openbox-menuto use the newby-namedirectory structure and updates its build environment for consistency and maintainability. The most important changes are:Migration and Refactoring:
The
openbox-menupackage has been moved frompkgs/applications/misc/openbox-menu/default.nixtopkgs/by-name/op/openbox-menu/package.nix, aligning it with the by-name packaging convention.Build Environment Updates:
The build environment is switched from
stdenvtogccStdenvthroughout the package definition, including all relevant references such aspostPatchandmakeFlags. This ensures the package consistently uses the GCC toolchain.The derivation is updated to use the lambda form (
gccStdenv.mkDerivation (finalAttrs: { ... })) instead of the legacyrecform, improving modern Nix code style.Hash and URL Standardization:
The
srcattribute now uses thefinalAttrs.versionvariable for the URL and updates the hash to the new format, ensuring reproducibility and correctness.Package Set Integration:
openbox-menuis removed frompkgs/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. -->
- [ ] x86_64-linux
- [ ] aarch64-linux
- [ ] x86_64-darwin
- [ ] aarch64-darwin
- [ ] [NixOS tests] in [nixos/tests].
- [ ] [Package tests] at
passthru.tests.- [ ] Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
nixpkgs-reviewon this PR. See [nixpkgs-review usage]../result/bin/.- [ ] Package update: when the change is major or breaking.
- [ ] Module addition: when adding a new NixOS module.
- [ ] Module update: when the change is significant.
[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