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

Fall back to nixpkgs from the flake registry if <nixpkgs> is unavailable #50

Open
figsoda opened this issue Mar 14, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@figsoda
Copy link
Member

figsoda commented Mar 14, 2023

No description provided.

@figsoda figsoda added the enhancement New feature or request label Mar 14, 2023
@pbsds
Copy link

pbsds commented Jun 19, 2023

A neat trick if you use direnv to enter the devShell:

If the flake outputs its inputs:

  outputs = { self, nixpkgs, ... } @ inputs : {
   inherit inputs;
   ...
  }

Then you can add this file:

.envrc

use flake
export NIX_PATH="nixpkgs=$(nix eval '.#inputs.nixpkgs.outPath' --raw)"

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

2 participants