nix icon indicating copy to clipboard operation
nix copied to clipboard

exportReferencesGraph doesn't work in `nix-shell`

Open arianvp opened this issue 5 months ago • 3 comments

Describe the bug

I'd expect the references graph to be in TMPDIR but it's not

Steps To Reproduce

{
  cpio,
  runCommand,
  systemd,
}:
runCommand "initrd"
  {
    name = "initrd";

    exportReferencesGraph = [
      "systemd-graph"
      systemd
    ];

    # unsafeDiscardReferences.out = true;
  }
  ''
    ls .
  ''


Expected behavior

ls $TMPDIR

shows a systemd-graph file but it doesn't

Metadata

Additional context

Checklist


Add :+1: to issues you find important.

arianvp avatar May 31 '25 10:05 arianvp

This didn't work in the past to your knowledge did it? (Just trying to understand is this, strictly speaking, a feature request or a regression.)

Ericson2314 avatar Jun 11 '25 19:06 Ericson2314

Does this apply to both structuredAttrs and without?

roberth avatar Jun 11 '25 19:06 roberth

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2025-06-11-nix-team-meeting-minutes-231/65543/1

nixos-discourse avatar Jun 11 '25 20:06 nixos-discourse