JuliaCN / Julia2Nix.jl

The Nix interface to Julia Ecosystem [maintainer=@GTrunSec]
http://cn.julialang.org/Julia2Nix.jl/
MIT License
37 stars 8 forks source link

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

Open usmcamp0811 opened 7 months ago

usmcamp0811 commented 7 months ago

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 commented 6 months ago

please see https://github.com/JuliaCN/Julia2Nix.jl/issues/62; the nix-prefetch will be deprecated on the next commit.