2
2
Fork
You've already forked nix-command-utils
0

Use lib.getExe for xdg-utils #3

Open
opened 2026年01月24日 05:49:04 +01:00 by expede · 0 comments

Problem

Using lib.getExe xdg-open produces a deprecation warning:

evaluation warning: getExe: Package "xdg-utils-1.2.1" does not have
the meta.mainProgram attribute...

xdg-utils is a multi-binary package without a main program.

Fix

In lib/rust.nix and lib/wasm.nix, change:

# from:
lib.getExe xdg-open
# to:
lib.getExe' xdg-open "xdg-open"

This explicitly names the binary instead of relying on meta.mainProgram.

## Problem Using `lib.getExe xdg-open` produces a deprecation warning: evaluation warning: getExe: Package "xdg-utils-1.2.1" does not have the meta.mainProgram attribute... `xdg-utils` is a multi-binary package without a main program. ## Fix In `lib/rust.nix` and `lib/wasm.nix`, change: ```nix # from: lib.getExe xdg-open # to: lib.getExe' xdg-open "xdg-open" ``` This explicitly names the binary instead of relying on meta.mainProgram.
expede changed title from (削除) Use lib.getExe' for xdg-utils` (削除ここまで) to Use lib.getExe for xdg-utils 2026年01月24日 06:01:34 +01:00
Sign in to join this conversation.
No Branch/Tag specified
main
help-text
v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
expede/nix-command-utils#3
Reference in a new issue
expede/nix-command-utils
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?