-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b155c42
commit ee07d15
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ config, lib, pkgs, ... }: | ||
{ | ||
description = "Python 3.9 development environment"; | ||
outputs = { self, nixpkgs }: | ||
let | ||
system = "aarch64-linux"; | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
config.allowUnfree = true; | ||
config.cudaSupport = true; | ||
}; | ||
in { | ||
devShells.${system}.default = pkgs.mkShell { | ||
buildInputs = with pkgs; [ | ||
cudatoolkit linuxPackages.nvidia_x11 | ||
cudaPackages.cudnn | ||
libGLU libGL | ||
xorg.libXi xorg.libXmu freeglut | ||
xorg.libXext xorg.libX11 xorg.libXv xorg.libXrandr zlib | ||
ncurses5 stdenv.cc binutils | ||
ffmpeg | ||
python39 | ||
python39Packages.pip | ||
python39Packages.numpy | ||
python39Packages.pytorch-bin | ||
python39Packages.virtualenv | ||
]; | ||
|
||
shellHook = '' | ||
export LD_LIBRARY_PATH="${pkgs.linuxPackages.nvidia_x11}/lib" | ||
''; | ||
}; | ||
}; | ||
} |