Ok, i quoted the commands now, discourse was mangling it. sorry!
you machine has a ‘per user’ channel, which usually trips people when they are new users.
So it’s quite possible and normal for different users to have different channels.
if you channels look like this
nix-channel --list
unstable https://nixos.org/channels/nixos-unstable
you can run a shell.nix
{ pkgs ? import <unstable> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.python39Packages.netcdf4
];
}
beware you’ll have to login and logout to get $NIX_PATH updated!
using channels it’s a little hard to express simply as the mapping of channels vs imports isn’t great IMHO.
Flakes make this a little easier , as you basically define everything with a single flake.nix and don’t have all these imperative steps like nix-channels.
however, hydra-check is showing that the package has been built successfully by hydra!
I’m sorry that this is so confusing, this why imperative channels need to go!