Python + Qt woes

… which I’m discovering, slowly and painfully, over here.

What is the future of the old nix-shell (and friends) once the new CLI is here? I’m sort of trying (slowly) to transition to using flakes and the new CLI for everything I do, and moving away from the old stuff. Is that an exercise in masochism that’s just asking for trouble? Can your shell.nix example somehow be shoehorned into a flake? (Or should I not even try?)

Incidentally, I’m trying to use your shell.nix sample with direnv and zsh. I think I can manage the zsh part (though it would be nice not to have it bound to a specific choice of shell, and I don’t know how to do that), but direnv seems not to be picking up the python version at all; whereas an explicit nix-shell does. (I’ve triple-checked that my .envrc contains use nix rather than use flake.)

I trust that there’s nothing deep about

   pkgs = with import ./. {};

and that I can just replace that with whatever version of nixpkgs I happen to be pinning.

[Aside, the shell.nix from which I extracted the problem I posted, Just Worked, until I switched from Nixos 20.03 to 20.09.]