nix develop does not remove enough of output checks #997

Open
opened 2025-09-19 14:39:29 +00:00 by raito · 2 comments
Owner

Describe the bug

Output checks can prevent nix develop to run if you exclude things like bash.

Steps To Reproduce

  1. nix develop nixpkgs#systemd
  2. See disallowed reference error.

Expected behavior

No error.

nix --version output

2.94.0-dev-2025-09-11-191551-raito-edition

Additional context

Came up in the NixOS systemd room. I didn't notice because I use nix-shell which does not suffer from this limitation.

## Describe the bug Output checks can prevent `nix develop` to run if you exclude things like bash. ## Steps To Reproduce 1. nix develop nixpkgs#systemd 2. See disallowed reference error. ## Expected behavior No error. ## `nix --version` output 2.94.0-dev-2025-09-11-191551-raito-edition ## Additional context Came up in the NixOS systemd room. I didn't notice because I use `nix-shell` which does not suffer from this limitation.
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/4182 ("nix3/develop: support structured attrs-based output checks")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/4182", "number": 4182, "kind": "commit message"}], "cl_meta": {"4182": {"change_title": "nix3/develop: support structured attrs-based output checks"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/4182](https://gerrit.lix.systems/c/lix/+/4182) ("nix3/develop: support structured attrs-based output checks")
Owner

huh, i thought nix-shell had the same or similar bug but if it did it is my bad for not filing it. I've definitely hit this nix develop bug before though!

huh, i thought nix-shell had the same or similar bug but if it did it is my bad for not filing it. I've definitely hit this nix develop bug before though!
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#997
No description provided.