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 using nixpkgs from flake? #31

Open
KiaraGrouwstra opened this issue Nov 5, 2023 · 0 comments
Open

allow using nixpkgs from flake? #31

KiaraGrouwstra opened this issue Nov 5, 2023 · 0 comments

Comments

@KiaraGrouwstra
Copy link

to improve reproducibility i'm now using a nixpkgs pinned thru a flake rather than having a global one.
this seems to confuse nix-cached-shell:

cached-nix-shell: updating cache
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
error:
       … <borked>

         at «none»:0: (source not available)

       … while calling the 'import' builtin

         at «string»:1:18:

            1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (ruby) ]; } ""
             |                  ^

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

       at «none»:0: (source not available)
cached-nix-shell: nix-shell: exit status: 1

would it there be a way to have it use the flake one (or conversely, mark that as a 'global' channel) somehow?

KiaraGrouwstra added a commit to KiaraGrouwstra/cfg that referenced this issue Nov 28, 2023
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

1 participant