Advertisement
Guest User

Untitled

a guest
Mar 1st, 2020
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. let
  2. pkgs = import <nixpkgs> {};
  3. gcc7Stdenv = pkgs.gcc7Stdenv;
  4.  
  5. in gcc7Stdenv.mkDerivation (with pkgs; {
  6. name = "env";
  7. nativeBuildInputs = [
  8. cmake
  9. linuxPackages.nvidia_x11
  10. makeWrapper
  11. cudatoolkit
  12. cudnn
  13. ];
  14.  
  15. buildInputs = [
  16. libzip
  17. boost
  18. ];
  19.  
  20. shellHook = ''
  21. export CUDA_PATH=${pkgs.cudatoolkit}
  22. export EXTRA_LDFLAGS="-L/lib -L${pkgs.linuxPackages.nvidia_x11}/lib"
  23. export EXTRA_CCFLAGS="-I/usr/include"
  24. '';
  25. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement