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

Allow selecting nixpkgs source on devenv init #1383

Closed
pan93412 opened this issue Aug 14, 2024 · 1 comment
Closed

Allow selecting nixpkgs source on devenv init #1383

pan93412 opened this issue Aug 14, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@pan93412
Copy link

pan93412 commented Aug 14, 2024

Description

As cachix/devenv-nixpkgs has been lagging for 3 months (due to cachix/devenv-nixpkgs#2), I find myself needing to update the URL of the nixpkgs source to github:nixos/nixpkgs/nixpkgs-unstable whenever I initiate devenv.

It would be great to have the option to edit this field with an argument for devenv init.

Alternative Solution

I have tried override-inputs but it does not work.

devenv init -o nixpkgs github:nixos/nixpkgs/nixpkgs-unstable
@pan93412 pan93412 added the enhancement New feature or request label Aug 14, 2024
@pan93412
Copy link
Author

https://github.com/cachix/devenv/blob/main/devenv/init/devenv.yaml

Seems like it is hard-coded. override-inputs is not for devenv init. Just close it now since I can also write a simple script to sed it after devenv init, and it is not really important at all.

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

No branches or pull requests

1 participant