NixOS/nix

Add builtins.canonicalPath

Open

#13.111 aperta il 29 apr 2025

Vedi su GitHub
 (5 commenti) (1 reazione) (0 assegnatari)C++ (1293 fork)batch import
featuregood first issueidea approved

Metriche repository

Star
 (9803 star)
Metriche merge PR
 (Merge medio 4g 12h) (86 PR mergiate in 30 g)

Descrizione

Is your feature request related to a problem?

Symlinks in nixpkgs lib.fileset are causing issues: https://github.com/NixOS/nixpkgs/issues/393845 and this function would help resolve it.

Proposed solution

Add a a builtins.canonicalPath with the same behavior as the realpath command, as suggested by @infinisil .

Alternative solutions

Additional context

Possibly somewhat related: https://github.com/NixOS/nix/issues/2109 (but this feature request would only expose a new nix function, not change anything else inside the nixcpp code itself.

Checklist


Add :+1: to issues you find important.

Guida contributor