diff options
Diffstat (limited to 'cuda/nix-python-devenv/devenv.nix')
-rw-r--r-- | cuda/nix-python-devenv/devenv.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cuda/nix-python-devenv/devenv.nix b/cuda/nix-python-devenv/devenv.nix new file mode 100644 index 0000000..5bfedfb --- /dev/null +++ b/cuda/nix-python-devenv/devenv.nix @@ -0,0 +1,32 @@ +{ + pkgs, + lib, + ... +}: +let + buildInputs = with pkgs; [ + stdenv.cc.cc + libuv + zlib + ]; +in +{ + env = { + LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}"; + }; + + languages.python = { + enable = true; + uv = { + enable = true; + sync.enable = true; + }; + }; + + scripts.hello.exec = "uv run python hello.py"; + + enterShell = '' + . .devenv/state/venv/bin/activate + hello + ''; +} |