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

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

Open
usmcamp0811 opened this issue Feb 10, 2024 · 1 comment

Comments

@usmcamp0811
Copy link

What am I doing wrong here? or is this a bug?

╰─🚧 nix run github:JuliaCN/Julia2Nix.jl\#packages.x86_64-linux.julia2nix    
  Activating project at `/nix/store/nddhsbqkrppixfwr5vcwvy217mn6xgs3-incl`
[ Info: Fetching registries...
Failed to run cmd:
`nix-prefetch '    let pkgs = import "/nix/store/cwr7p465zbfp60hg3jng1cfkmq14ka49-source" { };
    in with pkgs; pkgs.fetchzip
' --hash-algo sha256 --output raw --name registry-General --no-stripRoot --url 'https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/6ae0a924102c812ef7f3dc1ce135c92589797952#registry.tar.gz'`
Error:


┌ Error: Fetcher failed: nix-prefetch pkgs.fetchzip --hash-algo sha256 --output raw --name registry-General --no-stripRoot --url https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/6ae0a924102c812ef7f3dc1ce135c92589797952#registry.tar.gz
│ failed process: Process(`nix-prefetch '    let pkgs = import "/nix/store/cwr7p465zbfp60hg3jng1cfkmq14ka49-source" { };
│     in with pkgs; pkgs.fetchzip
│ ' --hash-algo sha256 --output raw --name registry-General --no-stripRoot --url 'https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/6ae0a924102c812ef7f3dc1ce135c92589797952#registry.tar.gz'`, ProcessExited(1)) [1]
│ 
│ Stacktrace:
│  [1] select_fetcher(fetchers::Vector{Julia2Nix.JuNix.Fetcher}, opts::Julia2Nix.JuNix.Options)
│    @ Julia2Nix.JuNix /nix/store/nddhsbqkrppixfwr5vcwvy217mn6xgs3-incl/src/JuNix/fetch.jl:219
│  [2] macro expansion
│    @ /nix/store/nddhsbqkrppixfwr5vcwvy217mn6xgs3-incl/src/JuNix/fetch.jl:170 [inlined]
│  [3] (::Julia2Nix.JuNix.var"#12#14"{Julia2Nix.JuNix.Options, Channel{Tuple{Julia2Nix.JuNix.RegistryInfo, Union{Nothing, Julia2Nix.JuNix.Fetcher}}}, Channel{Tuple{Julia2Nix.JuNix.RegistryInfo, Vector{Julia2Nix.JuNix.Fetcher}}}})()
│    @ Julia2Nix.JuNix ./task.jl:514
└ @ Julia2Nix.JuNix /nix/store/nddhsbqkrppixfwr5vcwvy217mn6xgs3-incl/src/JuNix/fetch.jl:220
Failed to run cmd:
`nix-prefetch '    let pkgs = import "/nix/store/cwr7p465zbfp60hg3jng1cfkmq14ka49-source" { };
    in with pkgs; pkgs.fetchzip
' --hash-algo sha256 --output raw --name registry-General --no-stripRoot --url 'https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/6ae0a924102c812ef7f3dc1ce135c92589797952#registry.tar.gz'`
Error:

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

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


┌ Error: Fetcher failed: nix-prefetch pkgs.fetchzip --hash-algo sha256 --output raw --name registry-General --no-stripRoot --url https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/6ae0a924102c812ef7f3dc1ce135c92589797952#registry.tar.gz
│ failed process: Process(`nix-prefetch '    let pkgs = import "/nix/store/cwr7p465zbfp60hg3jng1cfkmq14ka49-source" { };
│     in with pkgs; pkgs.fetchzip
│ ' --hash-algo sha256 --output raw --name registry-General --no-stripRoot --url 'https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/6ae0a924102c812ef7f3dc1ce135c92589797952#registry.tar.gz'`, ProcessExited(1)) [1]
│ 
│ Stacktrace:
│  [1] select_fetcher(fetchers::Vector{Julia2Nix.JuNix.Fetcher}, opts::Julia2Nix.JuNix.Options)
│    @ Julia2Nix.JuNix /nix/store/nddhsbqkrppixfwr5vcwvy217mn6xgs3-incl/src/JuNix/fetch.jl:219
│  [2] macro expansion
│    @ /nix/store/nddhsbqkrppixfwr5vcwvy217mn6xgs3-incl/src/JuNix/fetch.jl:170 [inlined]
│  [3] (::Julia2Nix.JuNix.var"#12#14"{Julia2Nix.JuNix.Options, Channel{Tuple{Julia2Nix.JuNix.RegistryInfo, Union{Nothing, Julia2Nix.JuNix.Fetcher}}}, Channel{Tuple{Julia2Nix.JuNix.RegistryInfo, Vector{Julia2Nix.JuNix.Fetcher}}}})()
│    @ Julia2Nix.JuNix ./task.jl:514
└ @ Julia2Nix.JuNix /nix/store/nddhsbqkrppixfwr5vcwvy217mn6xgs3-incl/src/JuNix/fetch.jl:220
@GTrunSec
Copy link
Collaborator

please see #62; the nix-prefetch will be deprecated on the next commit.

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

2 participants