Skip to content

nix-store --add-root --indirect --realise doesn't work properly when passed an output path instead of a drv path #68

Closed

Description

@shlevy

This realises the hello derivation and creates a 'hello' symlink to it:

$ nix-store --add-root hello --indirect -r $(nix-instantiate -A hello "<nixpkgs>")

This realises the hello derivation but does not create the hello symlink:

$ nix-store --add-root hello --indirect -r $(nix-store -q --outputs $(nix-instantiate -A hello "<nixpkgs>"))

Activity

  1. added a commit that references this issue on Aug 27, 2020
  2. added a commit that references this issue on Mar 5, 2025
  3. added a commit that references this issue on Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions