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: flake doesn't provide architecture attributes #29

Closed jademackay closed 1 year ago

jademackay commented 1 year ago

Hi GuangTao, this project looks really promising.

Can you help me get started? I have done the following:

nix shell nixpkgs#julia-bin
julia 
]activate .
]add Distributions
# C-d
nix run github:JuliaCN/Julia2Nix.jl#packages.x86_64-linux.julia2nix
nix flake init --template github:JuliaCN/Julia2Nix.jl#templates.devshell
git add .
nix develop

which yields

error: flake 'git+file:///home/jade/tmp/Nix/julia-nix' does not provide attribute 'devShells.x86_64-linux.devShell.x86_64-linux', 'packages.x86_64-linux.devShell.x86_64-linux', 'legacyPackages.x86_64-linux.devShell.x86_64-linux', 'devShell.x86_64-linux' or 'defaultPackage.x86_64-linux'

Many thanks

ocfox commented 1 year ago

I repeated your steps but did not get this error.

jademackay commented 1 year ago

@ocfox great thanks! Your report of success motivated me to retry with a newer version of the nix command:

nix shell nixpkgs#nix
nix --version
nix (Nix) 2.11.0

for which the above is successful. It seems my native nix version is 2.4.