Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. with import <nixos> {};
  2. {
  3. repositoryName = stdenv.mkDerivation {
  4. name = "repositoryName";
  5. buildInputs = [
  6. julia_10
  7. # Any other dependency you need
  8. #python36Packages.matplotlib
  9. python36Packages.jupyter
  10. openblas
  11. gfortran7
  12. ];
  13.  
  14. SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt";
  15. GIT_SSL_CAINFO="/etc/ssl/certs/ca-certificates.crt";
  16.  
  17. # First important part: Add here the dependencies the packages you want to install need
  18. LD_LIBRARY_PATH="${glfw}/lib:${mesa_noglu}/lib:${freetype}/lib:${imagemagick}/lib:${portaudio}/lib:${libsndfile.out}/lib:${libxml2.out}/lib:${expat.out}/lib:${cairo.out}/lib:${pango.out}/lib:${gettext.out}/lib:${glib.out}/lib:${gtk3.out}/lib:${gdk_pixbuf.out}/lib:${cairo.out}:${tk.out}/lib:${tcl.out}/lib:${pkgs.sqlite.out}/lib:${pkgs.zlib}/lib:${openblas}/lib:${gfortran7}/lib";
  19. shellHook = ''
  20. unset http_proxy
  21. # This is the seconnd important part. Set a relative julia_pkgdir path so that they are specific to this
  22. # Nix env environment and are not global
  23. export JULIA_PKGDIR=$(realpath ./.julia_pkgs)
  24. mkdir -p $JULIA_PKGDIR
  25. # You could also call julia -e "Pkg.init()" # and if you want install the packages you need
  26. '';
  27. };
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement