Skip to content

Portable nix store seems corrupted when trying to nix copy out of it #160

@nickecurran

Description

@nickecurran

I'm trying to use nix portable to bundle a script that invokes nix copy to copy the result of another derivation onto a remote system. The idea is to distribute to folks who don't necessarily have nix installed on their machines to enable them to update software on our embedded devices more easily.

The target derivation is a system-manager top level configuration. When I invoke the script via the bundle, nix copy errors out saying that there is no substituter available for the top level path I want to copy. The script that I'm bundling works fine when invoked via nix run.

I was able to track this down to an issue within the nix-portable launch script, where the line to invoke nix-store --load-db is commented out.

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