win2xcur icon indicating copy to clipboard operation
win2xcur copied to clipboard

Development environment with nix

Open danmur97 opened this issue 1 year ago • 4 comments

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.

danmur97 avatar Jul 01 '24 17:07 danmur97

Note that win2xcur is packaged in Nixpkgs.

Atemu avatar Aug 02 '24 02:08 Atemu

Yes, but not as a flake. The PR also includes a development environment via nix so that dev setup is very straight forward.

danmur97 avatar Aug 02 '24 03:08 danmur97

nix develop nixpkgs#win2xcur

Atemu avatar Aug 02 '24 04:08 Atemu

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 direnv approach since nix develop opens 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 mypy or pytests (I wonder if this can be set on nixpkgs, so that there are to versions: prod and dev)
  • And most importantly, the direnv hook auto setups the vscode config 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.

danmur97 avatar Aug 02 '24 15:08 danmur97

I will create a new issue regarding the development environment

danmur97 avatar Aug 07 '24 14:08 danmur97