Open roberth opened 6 months ago
I'm still inspecting how it works, but paths returned from lib.getExe
seem to reproduce this issue reliably.
Here is a single-line reproducer based on Nixpkgs:
nix-build --no-out-link -E "let lib = import ./lib; pkgs = import ./. { }; path = lib.getExe pkgs.hello; in pkgs.runCommandLocal ''reference-graph-structured'' { __structuredAttrs = true; nativeBuildInputs = [ pkgs.buildPackages.jq ]; exportReferencesGraph.graph = [ path ]; } ''jq . \$NIX_ATTRS_JSON_FILE | tee \$out''"
Here is the initial discussion: https://github.com/NixOS/nixpkgs/issues/316652#issuecomment-2145130636
Priorities
Add :+1: to issues you find important.