Skip to content

v3 is missing an equivalent for nix-shell -p #12867

@NobbZ

Description

@NobbZ

Is your feature request related to a problem?

With the v2 interface I can create fully functional dev shells from a single command without the necessity of declaring them in a file:

$ nix-shell -p pkg-config openssl --run 'pkg-config --libs openssl'
-L/nix/store/954l60hahqvr0hbs7ww6lmgkxvk8akdf-openssl-3.4.1/lib -lssl -lcrypto

There is no way known to me (and many other people I have asked) to reproduce this behavior with the v3 CLI.

Proposed solution

Provide a flag for nix develop that is capable of mimicking the nix-shell -p behavior.

Alternative solutions

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature request or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions