Skip to content

Override input throws .devenv.flake.nix not found #1801

@dejanr

Description

@dejanr

Having a non flake input, and trying to override it via --override-input throws an error:

λ devenv build --override-input non-flake "git+file://home/../non-flake"
error:
       … while updating the lock file of flake 'git+file:///project'while updating the flake input 'non-flake'

       error:
       error: '/project/non-flake/.devenv.flake.nix' does not exist
Error:   × Command `/nix/store/f0yj40kxp6b92vf6nbmg7bgr1cdhymrm-nix-2.24-devenv/bin/nix --show-trace
  │ --extra-experimental-features nix-command --extra-experimental-features flakes --option
  │ warn-dirty false --keep-going --max-jobs 16 --option eval-cache false eval --json .#build
  │ -vv --log-format internal-json` failed with with exit code 1

Not really sure if this should work. Grateful if someone could show me a working example of override-input.

My use case is that i have a repo as an input, and while working locally i want to override that input with local copy of that repo, so that i could work easily on up-streaming some changes to input dependency repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions