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

Use extra-nix-path to resolve nix-shell -p not working #270

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

Hoverbear
Copy link
Contributor

Description

This should address #234! After installing I tested:

ana@ubuntu-base:~/Downloads$ nix-shell -p
these 40 paths will be fetched (72.04 MiB download, 333.53 MiB unpacked):
  /nix/store/12wczkzi5db1ajbjp4hdyif3v9y5rbi5-xz-5.4.1-bin
  /nix/store/17pkxcz3js3549kn9dc3hhvp4adbwvs1-bzip2-1.0.8-bin
  /nix/store/1f44s1ddm915dn3kdaycabhf3a8xnfnb-gawk-5.2.1
  /nix/store/2a6yagz3pa8kiawg5mk2js70f8kwqzqd-bzip2-1.0.8
  /nix/store/35s126gfkfrwbiv49kv9kxqdpd9zvcvm-ncurses-6.4
  /nix/store/4grm35slwd5il8v9sfkibl164ays38hp-glibc-2.35-224-dev
  /nix/store/502zrfyc2agh928111zhwy6959bqd8m0-xz-5.4.1
  /nix/store/561wgc73s0x1250hrgp7jm22hhv7yfln-bash-5.2-p15
  /nix/store/72nvsslmgq8mp6ywxnl9i0rr8x174sjw-binutils-wrapper-2.40
  /nix/store/7w1s50i8yplw2gkpf9hpha6n9vci8g98-coreutils-9.1
  /nix/store/83q5sbysda8285svx8mjlpc17bd3n630-attr-2.5.1

Checklist
  • Formatted with cargo fmt
  • Built with nix build
  • Ran flake checks with nix flake check
  • Added or updated relevant tests (leave unchecked if not applicable)
  • Added or updated relevant documentation (leave unchecked if not applicable)
  • Linked to related issues (leave unchecked if not applicable)
Validating with install.determinate.systems

If a maintainer has added the upload to s3 label to this PR, it will become available for installation via install.determinate.systems:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix/pr/$PR_NUMBER | sh -s -- install

@Hoverbear
Copy link
Contributor Author

This may be impacted by NixOS/nix#7871

@Hoverbear Hoverbear marked this pull request as ready for review February 24, 2023 17:52
@Hoverbear Hoverbear self-assigned this Feb 24, 2023
@Hoverbear Hoverbear added this to the v0.3.1 milestone Feb 24, 2023
@Hoverbear Hoverbear merged commit 59abd1b into main Feb 24, 2023
@Hoverbear Hoverbear deleted the resolve-nix-shell-not-working branch February 24, 2023 20:28
antoineco added a commit to antoineco/dotfiles that referenced this pull request Sep 6, 2024
On a system which does not rely on channels, this allows resolving the
<nixpkgs> lookup path to the Nixpks flake. Without it, the following
error is thrown:

  nix-repl> <nixpkgs>
  warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist
  error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

References:
- https://nix.dev/manual/nix/2.24/release-notes/rl-2.13
- NixOS/nix#7026
- DeterminateSystems/nix-installer#270
antoineco added a commit to antoineco/dotfiles that referenced this pull request Sep 8, 2024
On a system which does not rely on channels, this allows resolving the
<nixpkgs> lookup path to the Nixpks flake. Without it, the following
error is thrown:

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

References:
- https://nix.dev/manual/nix/2.24/release-notes/rl-2.13
- NixOS/nix#7026
- DeterminateSystems/nix-installer#270
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

Successfully merging this pull request may close these issues.

2 participants