NixOS/nix

Add builtins.canonicalPath

開放

#13,111 建立於 2025年4月29日

 (5 則留言) (1 個反應) (0 位負責人)C++ (1,293 個分叉)batch import
featuregood first issueidea approved

倉庫指標

星標
 (9,803 顆星)
PR 合併指標
 (平均合併 7天 11小時) (30 天內合併 83 個 PR)

描述

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.

貢獻者指南