Development environment with nix
Hi, I am using NixOS and want to use win2xcur. The installation step with pip is not a very nix-way of installing things, so a nix flake build support will be wonderful.
Note that win2xcur is packaged in Nixpkgs.
Yes, but not as a flake. The PR also includes a development environment via nix so that dev setup is very straight forward.
nix develop nixpkgs#win2xcur
Awesome, thanks @Atemu, I do not know that's the way I could install from nixpkgs via flakes. About the develop environment:
- I would prefer a
direnvapproach sincenix developopens a bash like shell and I prefer other shells (that can be the case for others) - The nix develop environment does not include test dependencies like
mypyorpytests(I wonder if this can be set on nixpkgs, so that there are to versions: prod and dev) - And most importantly, the
direnvhook auto setups thevscodeconfig for making the IDE recognize the nix generated python env. With nix develop an additional manual step has to be done to setup the IDE. (also I do not know if this can be possible using nix develop)
For now, I will adjust the issue regarding the development environment instead of the nix install support.
I will create a new issue regarding the development environment