Skip to content

Commit c095e3a

Browse files
authored
Fixing the impure flake devShell to be able to run python code. (#539)
1 parent 35fac69 commit c095e3a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

flake.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,11 @@
206206
openssl
207207
pkg-config
208208
cudaPackages.cudatoolkit
209+
python3Packages.python
210+
python3Packages.venvShellHook
209211
];
210-
LD_LIBRARY_PATH = "/run/opengl-driver/lib";
212+
venvDir = "./.venv";
213+
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib:/run/opengl-driver/lib";
211214
LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib:/run/opengl-driver/lib";
212215
CUDA_ROOT = "${pkgs.cudaPackages.cudatoolkit}";
213216
};

0 commit comments

Comments
 (0)