Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import .nix file from input #833

Open
ankhers opened this issue Oct 3, 2023 · 1 comment
Open

Unable to import .nix file from input #833

ankhers opened this issue Oct 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ankhers
Copy link
Contributor

ankhers commented Oct 3, 2023

Describe the bug

According to the documentation, I should be able to setup an input and then import a specific file from that input. Something like

inputs:
  my_proj: ...
imports:
  - my_proj/foo.nix

However, when I try to do that I get an error saying that my_proj/foo.nix/devenv.nix is not found.

To reproduce

You can clone https://git.sr.ht/~ankhers/bar_service to see this happening. It is trying to import the service.nix file from https://git.sr.ht/~ankhers/foo_service

Version

❯ devenv version
devenv 1.0 (x86_64-linux)
@ankhers ankhers added the bug Something isn't working label Oct 3, 2023
@domenkozar
Copy link
Member

It will be possible after #745 using:

inputs:
  root:
    url: git+file://.
    flake: false
imports:
- root/foo_service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants