Skip to content

NPV 124

Philip Taron edited this page Feb 16, 2026 · 1 revision

NPV-124: Unresolvable path expression in Nix file

Description

A path expression in a pkgs/by-name Nix file could not be resolved on the filesystem. This typically means the referenced file or directory does not exist.

Error message

{relative_package_dir}: File {subpath} at line {line} contains the path expression "{text}" which cannot be resolved: {io_error}.

Example

If pkgs/by-name/fo/foo/package.nix references ./missing-file.nix but that file doesn't exist:

pkgs/by-name/fo/foo: File package.nix at line 3 contains the path expression "./missing-file.nix" which cannot be resolved: No such file or directory (os error 2).

How to fix

Ensure the referenced path exists. Either create the missing file, fix the path to point to the correct location, or remove the path reference.

Clone this wiki locally