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

Make nix the only dependency? #57

Open
VanCoding opened this issue Nov 15, 2022 · 4 comments
Open

Make nix the only dependency? #57

VanCoding opened this issue Nov 15, 2022 · 4 comments

Comments

@VanCoding
Copy link

Devenv looks very interesting!

But what bugs me a bit is that devenv needs to be installed on the system before it can be used in a project.
That's an additional thing that co-workers have to install first, before they can start working. If they have nix already, it'd be cool if they wouldn't have to install anything first.

Could there be an option to install devenv as well when entering direnv? So that it's locked to a version and it's only available inside the project. Initializing a new project could then probably be done through "nix run github:cachix/devenv init"

@domenkozar
Copy link
Member

#25 would get rid of Nix dependency, which would simplify the installation by a lot.

I'm not sure how getting rid of devenv would work, how do you enter the shell without devenv?

@VanCoding
Copy link
Author

VanCoding commented Nov 15, 2022

I'm not sure how getting rid of devenv would work, how do you enter the shell without devenv?

The only idea I have would be through nix develop but that of course would require having a flake and the only thing that would be in there is devenv as input and its shell as output.

@manveru
Copy link

manveru commented Nov 15, 2022

nix run github:cachix/devenv shell also works for now.

@roberth
Copy link
Contributor

roberth commented Dec 22, 2022

A mode that uses the flake files instead of devenv.lock would allow the devenv command to be added to the flake devShell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants