SHARE
TWEET

Untitled

a guest Apr 20th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. { pkgs ? import <nixpkgs> {}}:
  2.  
  3. let
  4. fhs = pkgs.buildFHSUserEnv {
  5.   name = "julia-fhs";
  6.   targetPkgs = pkgs: with pkgs;
  7.     [
  8.       git
  9.       gitRepo
  10.       gnupg
  11.       autoconf
  12.       curl
  13.       procps
  14.       gnumake
  15.       utillinux
  16.       m4
  17.       gperf
  18.       unzip
  19.       cudatoolkit
  20.       linuxPackages.nvidia_x11
  21.       libGLU_combined
  22.       xorg.libXi xorg.libXmu freeglut
  23.       xorg.libXext xorg.libX11 xorg.libXv xorg.libXrandr zlib
  24.       ncurses5
  25.       stdenv.cc
  26.       binutils
  27.  
  28.       julia_11
  29.       atom
  30.       arpack
  31.  
  32.       # IJulia.jl
  33.       mbedtls
  34.       zeromq3
  35.       # ImageMagick.jl
  36.       imagemagickBig
  37.       # HDF5.jl
  38.       hdf5
  39.       # Cairo.jl
  40.       cairo
  41.       gettext
  42.       pango.out
  43.       glib.out
  44.       # Gtk.jl
  45.       gtk3
  46.       gdk_pixbuf
  47.       # GZip.jl # Required by DataFrames.jl
  48.       gzip
  49.       zlib
  50.       # GR.jl # Runs even without Xrender and Xext, but cannot save files, so those are required
  51.       xorg.libXt
  52.       xorg.libX11
  53.       xorg.libXrender
  54.       xorg.libXext
  55.       glfw
  56.       freetype
  57.     ];
  58.   multiPkgs = pkgs: with pkgs; [ zlib ];
  59.   runScript = "bash";
  60.   profile = ''
  61.     export CUDA_PATH=${pkgs.cudatoolkit}
  62.     # export LD_LIBRARY_PATH=${pkgs.linuxPackages.nvidia_x11}/lib
  63.     export EXTRA_LDFLAGS="-L/lib -L${pkgs.linuxPackages.nvidia_x11}/lib"
  64.     export EXTRA_CCFLAGS="-I/usr/include"
  65.     '';
  66.   };
  67.  
  68. in pkgs.stdenv.mkDerivation {
  69.   name = "julia-shell";
  70.   nativeBuildInputs = [fhs];
  71.   shellHook = "exec julia-fhs";
  72. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top