Skip to content

appmenu-glib-translator: init at 25.04 - #418435

Merged
JohnRTitor merged 2 commits into
NixOS:masterfrom
PerchunPak:appmenu-glib-translator
Jun 20, 2025
Merged

JohnRTitor merged 2 commits into
NixOS:masterfrom
PerchunPak:appmenu-glib-translator

Conversation

@PerchunPak

Copy link
Copy Markdown
Member

GTK Module than strips menus from all GTK programs, converts to MenuModel and sends to AppMenu
https://gitlab.com/vala-panel-project/vala-panel-appmenu/-/tree/25.04/subprojects/appmenu-gtk-module

Continuation of #374302 (see #374302 (comment) and #374302 (comment))
Partially unblocks #379994 (again, this is not a dependency)
This is required to unbreak astal.tray

Tested with hyprpanel, daily driving it since today (2025-06-20)

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other contributing documentation in corresponding paths.

Add a 👍 reaction to pull requests you find important.

PerchunPak added a commit to PerchunPak/nixos-dotfiles that referenced this pull request Jun 20, 2025
@PerchunPak
PerchunPak requested review from JohnRTitor and jtojnar June 20, 2025 12:59
@PerchunPak
PerchunPak force-pushed the appmenu-glib-translator branch from 3072bad to b89cac9 Compare June 20, 2025 13:02
@github-actions github-actions Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. labels Jun 20, 2025
@PerchunPak

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 418435
Commit: b89cac9a65b103f2fef97001244bc15e75507ab3


x86_64-linux

✅ 2 packages built:
  • appmenu-glib-translator
  • astal.tray

aarch64-linux

✅ 2 packages built:
  • appmenu-glib-translator
  • astal.tray

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
description = "GTK Module than strips menus from all GTK programs, converts to MenuModel and sends to AppMenu";
description = "GTK module that strips menus from all GTK programs, converts to MenuModel and sends to AppMenu";

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good catch!

@github-actions github-actions Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 20, 2025
@PerchunPak
PerchunPak force-pushed the appmenu-glib-translator branch from b89cac9 to a05c712 Compare June 20, 2025 19:21
@JohnRTitor
JohnRTitor merged commit b06f556 into NixOS:master Jun 20, 2025
@PerchunPak
PerchunPak deleted the appmenu-glib-translator branch June 20, 2025 19:42

buildInputs = [
glib
gobject-introspection

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should not this rather be in nativeBuildInputs?

ninja

pkg-config
wrapGAppsHook3

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There are no programs to wrap so this is redundant.


meta = {
description = "GTK module that strips menus from all GTK programs, converts to MenuModel and sends to AppMenu";
homepage = "https://gitlab.com/vala-panel-project/vala-panel-appmenu/-/tree/${finalAttrs.version}/subprojects/appmenu-gtk-module";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
homepage = "https://gitlab.com/vala-panel-project/vala-panel-appmenu/-/tree/${finalAttrs.version}/subprojects/appmenu-gtk-module";
homepage = "https://gitlab.com/vala-panel-project/vala-panel-appmenu/-/tree/${finalAttrs.version}/subprojects/appmenu-glib-translator";

];

meta = {
description = "GTK module that strips menus from all GTK programs, converts to MenuModel and sends to AppMenu";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is also talking about appmenu-gtk-module, there is no GTK module here. Maybe something like:

Library for translating from DBusMenu to GMenuModel

buildInputs = [
glib
gobject-introspection
gtk3

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

vala
];

buildInputs = [

@jtojnar jtojnar Jun 21, 2025 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Both GLib and gdk-pixbuf are in Requires field of the pkg-config file so they should go to propagatedBuildInputs.

Though gdk-pixbuf is only a private dependency so the pkg-config file should be fixed upstream, and then it can go back to buildInputs.

Edit: Actually, the code depending on gdk-pixbuf is commented/preprocessed out so the gdk-pixbuf dependency can be removed to no ill effect.

Edit 2: Implemented the former in https://gitlab.com/vala-panel-project/vala-panel-appmenu/-/merge_requests/272

@nixpkgs-ci

nixpkgs-ci Bot commented Jun 24, 2025

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-25.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants